.logs-panel {
    height: 20%;
    min-height: 100px;
    max-height: 70%;
    display: flex;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.95);
    flex-shrink: 0;
}

.logs-header {
    padding: 0.5rem 1rem;
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.logs-header h3 {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.logs-container {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.5);
    font-family: 'Courier New', monospace;
    font-size: 0.8125rem;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: rgba(17, 24, 39, 0.98);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.5rem;
    width: 90%;
    max-width: 28rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.5);
}

.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #60a5fa;
    font-size: 1.125rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: #f87171;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body label {
    display: block;
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.modal-input {
    width: 100%;
    padding: 0.625rem;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #e0e0e0;
    outline: none;
    transition: border-color 0.2s;
}

.modal-input:focus {
    border-color: #3b82f6;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

::-webkit-scrollbar {
    width: 0.5rem;
    height: 0.5rem;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}

.CodeMirror {
    height: 100% !important;
    font-family: 'Fira Code', 'Courier New', monospace !important;
    font-size: 0.875rem !important;
    line-height: 1.6 !important;
    background: transparent !important;
}

.CodeMirror-gutters {
    background: rgba(15, 23, 42, 0.95) !important;
    border-right: 1px solid rgba(59, 130, 246, 0.1) !important;
}

.CodeMirror-linenumber {
    color: #64748b !important;
    padding: 0 0.5rem !important;
}

.CodeMirror-cursor {
    border-left: 2px solid #60a5fa !important;
}

.CodeMirror-selected {
    background: rgba(59, 130, 246, 0.2) !important;
}

.cm-s-dracula.CodeMirror {
    background: rgba(15, 23, 42, 0.8) !important;
    color: #e0e7ff !important;
}


.cm-s-dracula .cm-keyword-red {
    color: #ff6188 !important;
    font-weight: bold !important;
}

.cm-s-dracula .cm-keyword-purple {
    color: #ab9df2 !important;
    font-weight: 600 !important;
}

.cm-s-dracula .cm-keyword-blue {
    color: #78dce8 !important;
    font-weight: bold !important;
}

.cm-s-dracula .cm-keyword-pink {
    color: #ff6188 !important;
    font-weight: bold !important;
}

.cm-s-dracula .cm-type-cyan {
    color: #78dce8 !important;
    font-weight: 600 !important;
}

.cm-s-dracula .cm-builtin-yellow {
    color: #ffd866 !important;
    font-weight: 600 !important;
}

.cm-s-dracula .cm-atom-orange {
    color: #fc9867 !important;
    font-weight: bold !important;
}

.cm-s-dracula .cm-def-green {
    color: #a9dc76 !important;
    font-weight: 600 !important;
}

.cm-s-dracula .cm-function-yellow {
    color: #ffd866 !important;
    font-weight: 600 !important;
}

.cm-s-dracula .cm-variable-white {
    color: #fcfcfa !important;
}

.cm-s-dracula .cm-bracket-yellow {
    color: #ffd866 !important;
    font-weight: bold !important;
}

.cm-s-dracula .cm-operator-white {
    color: #fcfcfa !important;
}

.cm-s-dracula .cm-punctuation-gray {
    color: #939293 !important;
}

.cm-s-dracula .cm-string {
    color: #ffd866 !important;
}

.cm-s-dracula .cm-number {
    color: #fc9867 !important;
    font-weight: 500 !important;
}

.cm-s-dracula .cm-comment {
    color: #727072 !important;
    font-style: italic !important;
}

.cm-s-dracula .cm-keyword {
    color: #78dce8 !important;
    font-weight: bold !important;
}

.cm-s-dracula .cm-builtin {
    color: #ffd866 !important;
    font-weight: 600 !important;
}

.cm-s-dracula .cm-variable {
    color: #fcfcfa !important;
}

.cm-s-dracula .cm-variable-2 {
    color: #78dce8 !important;
    font-weight: 600 !important;
}

.cm-s-dracula .cm-bracket {
    color: #ffd866 !important;
    font-weight: bold !important;
}

.cm-s-dracula .cm-operator {
    color: #fcfcfa !important;
}

.cm-s-dracula .cm-punctuation {
    color: #939293 !important;
}

.cm-s-dracula .cm-keyword.cm-js-keyword {
    color: #c678dd !important;
    font-weight: bold !important;
}

.cm-s-dracula .cm-builtin.cm-js-builtin {
    color: #e5c07b !important;
    font-weight: 600 !important;
}

.cm-s-dracula .cm-variable.cm-js-variable {
    color: #61afef !important;
}

.cm-s-dracula .cm-property {
    color: #56b6c2 !important;
}

.cm-s-dracula .cm-def {
    color: #98c379 !important;
    font-weight: 600 !important;
}

.cm-s-dracula .cm-variable-2.cm-js-this {
    color: #e06c75 !important;
    font-weight: bold !important;
}

.cm-s-dracula .cm-string.cm-js-string {
    color: #98c379 !important;
}

.cm-s-dracula .cm-number.cm-js-number {
    color: #d19a66 !important;
}

.cm-s-dracula .cm-atom {
    color: #d19a66 !important;
    font-weight: bold !important;
}

.cm-s-dracula .cm-comment.cm-js-comment {
    color: #5c6370 !important;
    font-style: italic !important;
}

.cm-s-dracula .CodeMirror-activeline-background {
    background: rgba(59, 130, 246, 0.05) !important;
}

.cm-s-dracula .CodeMirror-matchingbracket {
    color: #ffd700 !important;
    background: rgba(255, 215, 0, 0.2) !important;
    border: 1px solid #ffd700 !important;
}

.CodeMirror-hints {
    background: rgba(17, 24, 39, 0.98) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
    font-family: 'Fira Code', 'Courier New', monospace !important;
    font-size: 0.875rem !important;
    max-height: 20rem !important;
    overflow-y: auto !important;
}

.CodeMirror-hint {
    color: #94a3b8 !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 0.25rem !important;
    cursor: pointer !important;
}

.CodeMirror-hint-active {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #60a5fa !important;
}



.CodeMirror-lint-marker-error {
    background: none !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6) !important;
}

.CodeMirror-lint-marker-error::after {
    content: '✕' !important;
    color: white !important;
    font-weight: bold !important;
    font-size: 0.75rem !important;
}

.CodeMirror-lint-marker-warning {
    background: none !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.6) !important;
}

.CodeMirror-lint-marker-warning::after {
    content: '⚠' !important;
    color: #0f172a !important;
    font-weight: bold !important;
    font-size: 0.75rem !important;
}

.CodeMirror-lint-tooltip {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    border-radius: 0.5rem !important;
    color: #e0e0e0 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.8125rem !important;
    padding: 0.75rem 1rem !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
    max-width: 400px !important;
    backdrop-filter: blur(10px) !important;
}

.CodeMirror-lint-mark-error {
    background: none !important;
    border-bottom: 2px solid #ef4444 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 4'%3E%3Cpath stroke='%23ef4444' stroke-width='1' d='M0 3L2 1 4 3'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: bottom;
    background-size: 4px 4px;
}

.CodeMirror-lint-mark-warning {
    background: none !important;
    background-image: none !important;
    text-decoration: none !important;
    border-bottom: 3px wavy #fbbf24 !important;
    padding-bottom: 2px !important;
}

.CodeMirror-errorline {
    background: rgba(239, 68, 68, 0.1) !important;
    border-left: 3px solid #ef4444 !important;
}

.CodeMirror-warningline {
    background: rgba(251, 191, 36, 0.1) !important;
    border-left: 3px solid #fbbf24 !important;
}

.drag-over-folder {
    background: rgba(96, 165, 250, 0.2) !important;
    border: 1px solid rgba(96, 165, 250, 0.5);
    border-radius: 0.25rem;
}

@keyframes copySuccess {
    0% {
        background: rgba(74, 222, 128, 0.3);
    }
    100% {
        background: transparent;
    }
}

.copy-btn.copied {
    animation: copySuccess 0.5s ease-out;
}

@media (max-width: 1440px) {
    .sidebar-panel {
        width: 16rem;
    }
}

@media (max-width: 1024px) {
    .sidebar-panel {
        width: 14rem;
    }
    
    .vertical-tabs {
        width: 3rem;
    }
}

@media (max-width: 768px) {
    .ide-interface {
        height: 98vh;
    }
    
    .ide-header {
        padding: 0 1rem;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .sidebar-panel {
        width: 12rem;
    }
    
    .vertical-tabs {
        width: 2.5rem;
    }
    
    .vertical-tab {
        height: 2.5rem;
    }
    
    .vertical-tab svg {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .wallet-section-header {
        gap: 0.5rem;
    }
    
    .wallet-connect-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .wallet-info-header {
        padding: 0.375rem 0.75rem;
        gap: 0.5rem;
    }
}

w3m-modal {
    --w3m-z-index: 10000;
}

w3m-modal::part(modal) {
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.5rem;
}

w3m-modal::part(overlay) {
    background: rgba(0, 0, 0, 0.75);
}

.file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
} 

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background: #0f0f23;
    color: #e0e0e0;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-gradient {
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(15, 23, 42, 0), rgba(15, 23, 42, 0)), 
        url('https://i.ibb.co/ynMfnR0w/hexagon-5552082-1920.png') center/cover no-repeat;
}

.background-grid {
    display: none;
}

.main-container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 1rem;
}

.ide-interface {
    width: 100%;
    max-width: 1920px;
    height: 96vh;
    background: rgba(177, 177, 177, 0.95);
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(71, 85, 105, 0.3);
    backdrop-filter: blur(10px);
}

.ide-header {
    height: 3.5rem;
    background: rgba(35, 41, 56, 0.95);
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #60a5fa;
}

.version {
    font-size: 0.75rem;
    color: #94a3b8;
    background: rgba(59, 130, 246, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.wallet-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wallet-connect-btn {
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.9);
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wallet-connect-btn:hover {
    background: rgba(59, 130, 246, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.wallet-connect-btn svg {
    width: 1rem;
    height: 1rem;
}

.wallet-info-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(30, 41, 59, 0.6);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid rgba(71, 85, 105, 0.4);
}

.wallet-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
    animation: pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.wallet-details {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.wallet-address-short {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #60a5fa;
    font-weight: 500;
}

.wallet-balance-short {
    font-size: 0.7rem;
    font-weight: 600;
    color: #4ade80;
}

.wallet-disconnect-btn {
    width: 2rem;
    height: 2rem;
    padding: 0.375rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.375rem;
    color: #f87171;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wallet-disconnect-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-1px);
}

.wallet-disconnect-btn svg {
    width: 1rem;
    height: 1rem;
}

.ide-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.vertical-tabs {
    width: 3.5rem;
    background: rgba(15, 23, 42, 0.95);
    border-right: 1px solid rgba(59, 130, 246, 0.15);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 0.25rem;
}

.vertical-tab {
    width: 100%;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #64748b;
    position: relative;
    background: transparent;
}

.vertical-tab:hover {
    background: rgba(30, 41, 59, 0.6);
    color: #94a3b8;
}

.vertical-tab.active {
    background: rgba(30, 41, 59, 0.8);
    color: #60a5fa;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3);
}

.vertical-tab svg {
    width: 1.5rem;
    height: 1.5rem;
}

.sidebar-panel {
    width: 18rem;
    background: rgba(15, 23, 42, 0.98);
    border-right: 1px solid rgba(71, 85, 105, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-content {
    display: none;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.panel-content.active {
    display: flex;
}

.panel-header {
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h3 {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.clear-logs-btn {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-logs-btn:hover {
    background: rgba(239, 68, 68, 0.3);
}

.panel-toolbar {
    padding: 0.5rem;
    background: rgba(15, 23, 42, 0.5);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    display: flex;
    gap: 0.5rem;
}

.toolbar-btn {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 0.25rem;
    color: #60a5fa;
    cursor: pointer;
    transition: all 0.2s;
}

.toolbar-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

.toolbar-btn svg {
    width: 1rem;
    height: 1rem;
}

.panel-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.file-tree {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.file-item, .folder-item {
    padding: 0.5rem;
    margin-bottom: 0.25rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    position: relative;
}

.file-item:hover, .folder-item:hover {
    background: rgba(59, 130, 246, 0.1);
}



.file-item svg, .folder-item svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.folder-container {
    margin-bottom: 0.25rem;
}

.folder-item {
    color: #fbbf24;
}

.folder-item:hover {
    background: rgba(251, 191, 36, 0.15);
}

.folder-icon {
    transition: transform 0.2s ease;
}

.folder-children {
    margin-top: 0.25rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(251, 191, 36, 0.3);
    background: rgba(251, 191, 36, 0.03);
    border-radius: 0 0.25rem 0.25rem 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
}

.folder-container.expanded .folder-children {
    max-height: 2000px;
}

.folder-container:not(.expanded) .folder-children {
    padding: 0;
    margin: 0;
}

.context-menu {
    position: fixed;
    background: rgba(17, 24, 39, 0.98);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.375rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    padding: 0.375rem;
    min-width: 180px;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #94a3b8;
    font-size: 0.875rem;
}

.context-menu-item svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.context-menu-item:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.context-menu-delete:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.context-menu-divider {
    height: 1px;
    background: rgba(71, 85, 105, 0.3);
    margin: 0.375rem 0;
}

.delete-btn {
    opacity: 0;
    margin-left: auto;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.file-item:hover .delete-btn,
.folder-item:hover .delete-btn {
    opacity: 1;
}

.delete-btn:hover {
    background: rgba(239, 68, 68, 0.4);
}

.settings-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.settings-group label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
}

.select-input, .input-field {
    width: 100%;
    padding: 0.5rem;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #e0e0e0;
    outline: none;
    transition: border-color 0.2s;
}

.select-input:focus, .input-field:focus {
    border-color: #3b82f6;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    color: #94a3b8;
}

.checkbox-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
    accent-color: #3b82f6;
}

.btn-primary, .btn-secondary {
    padding: 0.625rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-primary {
    background: rgba(59, 130, 246, 0.9);
    color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
    background: rgba(59, 130, 246, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:disabled {
    background: rgba(59, 130, 246, 0.3);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-secondary {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.btn-secondary:hover {
    background: rgba(100, 116, 139, 0.3);
}

.btn-full {
    width: 100%;
}

.btn-primary .icon, .btn-secondary .icon {
    width: 1rem;
    height: 1rem;
}

.hidden {
    display: none !important;
}

.compilation-result {
    margin-top: 1rem;
}

.compiled-box {
    margin-top: 1rem;
}

.compiled-data {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.compilation-success {
    background: rgba(74, 222, 128, 0.1);
    border-radius: 0.375rem;
    overflow: hidden;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.success-header {
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    border-bottom: 1px solid rgba(74, 222, 128, 0.3);
}

.success-header svg {
    width: 1.25rem;
    height: 1.25rem;
}

.compilation-errors {
    background: rgba(239, 68, 68, 0.1);
    border-radius: 0.375rem;
    overflow: hidden;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.error-header {
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border-bottom: 1px solid rgba(239, 68, 68, 0.3);
}

.error-header svg {
    width: 1.25rem;
    height: 1.25rem;
}

.error-list {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.error-item {
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    align-items: flex-start;
}



.error-item.warning {
    border-left: 3px solid #fbbf24;
}

.error-type-badge {
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.error-item.error .error-type-badge {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.error-item.warning .error-type-badge {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.error-message {
    color: #94a3b8;
    line-height: 1.5;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.compiled-data {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.compiled-data-item {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 0.25rem;
    padding: 0.75rem;
    border: 1px solid rgba(71, 85, 105, 0.3);
}

.compiled-data-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.compiled-data-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.copy-data-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 0.25rem;
    color: #60a5fa;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-data-btn:hover {
    background: rgba(59, 130, 246, 0.2);
}

.copy-data-btn svg {
    width: 0.875rem;
    height: 0.875rem;
}

.compiled-code-preview {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.8);
    padding: 0.5rem;
    border-radius: 0.25rem;
    overflow-x: auto;
    white-space: nowrap;
}

.contracts-section {
    margin-top: 1rem;
}

.section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 0.75rem;
}

.contract-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contract-item {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: slideInFromTop 0.3s ease-out;
}

.contract-item:hover {
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contract-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
}

.contract-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contract-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #60a5fa;
}

.contract-name {
    font-size: 1rem;
    font-weight: 600;
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
}

.contract-env-badge {
    font-size: 0.625rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.env-vm {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(168, 85, 247, 0.3) 100%);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.env-injected {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(74, 222, 128, 0.3) 100%);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.contract-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.contract-detail-row {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.detail-label {
    font-size: 0.625rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 0.375rem;
    border: 1px solid rgba(71, 85, 105, 0.3);
}

.detail-value code {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #60a5fa;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.copy-btn {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
}

.copy-btn svg {
    width: 1rem;
    height: 1rem;
}

.editor-tab {
    padding: 0.75rem 1.25rem;
    background: transparent;
    color: #94a3b8;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border-right: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.2s;
    white-space: nowrap;
    user-select: none;
    position: relative;
}

.editor-tab.active {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border-bottom: 2px solid #3b82f6;
}

.editor-tab:hover:not(.active) {
    background: rgba(59, 130, 246, 0.05);
}

.editor-tab.dragging {
    opacity: 0.5;
}

.editor-tab.drag-over {
    border-left: 2px solid #3b82f6;
}

.editor-tab svg {
    width: 1rem;
    height: 1rem;
}

.editor-tab .close-tab {
    margin-left: 0.5rem;
    opacity: 0;
    color: #94a3b8;
    font-size: 1.125rem;
    line-height: 1;
    transition: opacity 0.2s;
}

.editor-tab:hover .close-tab {
    opacity: 1;
}

.editor-tab .close-tab:hover {
    color: #f87171;
}

.log-entry {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem;
    margin-bottom: 0.25rem;
    border-radius: 0.25rem;
    transition: background 0.2s;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.log-entry:hover {
    background: rgba(59, 130, 246, 0.05);
}

.log-message {
    color: #94a3b8;
}

.log-info .log-message {
    color: #60a5fa;
}

.log-success .log-message {
    color: #4ade80;
}

.log-error .log-message {
    color: #f87171;
}

.log-warning .log-message {
    color: #fbbf24;
}

.log-welcome {
    padding: 0.75rem;
    color: #94a3b8;
    font-size: 0.75rem;
    line-height: 1.5;
}

.log-welcome-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 0.5rem;
}

.log-welcome-text {
    color: #94a3b8;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
}

.log-welcome-section {
    margin-bottom: 0.75rem;
}

.log-welcome-subtitle {
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 0.375rem;
    font-size: 0.75rem;
}

.log-welcome-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.log-welcome-list li {
    padding: 0.25rem 0;
    padding-left: 1rem;
    position: relative;
    color: #94a3b8;
    font-size: 0.7rem;
}

.log-welcome-list li:before {
    content: "•";
    position: absolute;
    left: 0.25rem;
    color: #60a5fa;
    font-weight: bold;
}

.log-highlight {
    color: #60a5fa;
    font-weight: 500;
}

.log-welcome-footer {
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(71, 85, 105, 0.3);
    color: #94a3b8;
    font-style: italic;
    font-size: 0.7rem;
}

.editor-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.95);
    overflow: hidden;
}

.editor-tabs {
    background: rgba(30, 41, 59, 0.5);
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    flex-shrink: 0;
}

.editor-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.8);
    min-height: 200px;
}

.resizer {
    height: 8px;
    background: rgba(30, 41, 59, 0.9);
    border-top: 1px solid rgba(71, 85, 105, 0.4);
    border-bottom: 1px solid rgba(71, 85, 105, 0.4);
    cursor: ns-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    transition: background 0.2s;
    flex-shrink: 0;
}

.resizer:hover {
    background: rgba(59, 130, 246, 0.25);
}

.resizer-handle {
    width: 80px;
    height: 3px;
    background: rgba(100, 116, 139, 0.6);
    border-radius: 3px;
    transition: all 0.2s;
}

.resizer:hover .resizer-handle {
    background: rgba(59, 130, 246, 0.7);
    width: 100px;
}

.resizer.dragging {
    background: rgba(59, 130, 246, 0.35);
}

.resizer.dragging .resizer-handle {
    background: rgba(59, 130, 246, 0.9);
    width: 100px;
}

.compiler-info {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 0.25rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.compiler-info small {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.select-input optgroup {
    background: rgba(15, 23, 42, 0.95);
    color: #60a5fa;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.5rem 0.25rem;
}

.select-input option {
    background: rgba(30, 41, 59, 0.9);
    color: #e0e0e0;
    padding: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.8125rem;
}

.select-input option:hover {
    background: rgba(59, 130, 246, 0.2);
}

.settings-group + .settings-group {
    margin-top: 1rem;
}



.compiled-links-row {
    display: flex;
    gap: 1.5rem;
    padding: 0.75rem;
    justify-content: center;
    align-items: center;
}

.compiled-link-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.compiled-link-item:hover {
    background: rgba(59, 130, 246, 0.1);
}

.compiled-link-text {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #60a5fa;
    font-weight: 500;
    transition: color 0.2s;
}

.compiled-link-item:hover .compiled-link-text {
    color: #93c5fd;
}

.compiled-link-icon {
    width: 0.875rem;
    height: 0.875rem;
    color: #60a5fa;
    transition: color 0.2s;
    flex-shrink: 0;
}

.compiled-link-item:hover .compiled-link-icon {
    color: #93c5fd;
}

.compiled-link-item.copied {
    background: rgba(74, 222, 128, 0.15);
}

.compiled-link-item.copied .compiled-link-text,
.compiled-link-item.copied .compiled-link-icon {
    color: #4ade80;
}

@keyframes copyFlash {
    0% {
        background: rgba(74, 222, 128, 0.25);
    }
    100% {
        background: transparent;
    }
}

.compiled-link-item.copied {
    animation: copyFlash 1s ease-out;
}



.deployed-contract-remix {
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
}

.deployed-contract-remix:hover {
    border-color: rgba(96, 165, 250, 0.4);
}



.remix-contract-header:hover {
    background: rgba(59, 130, 246, 0.05);
}

.remix-contract-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0; 
}

.remix-copy-address.copied {
    color: #4ade80;
}

.remix-pin-contract.pinned {
    color: #3b82f6;
}

.remix-pin-contract.pinned svg {
    fill: currentColor;
}

.remix-contract-body {
    display: none;
    padding: 0 0.875rem 0.875rem 0.875rem;
    border-top: 1px solid rgba(71, 85, 105, 0.2);
}

.deployed-contract-remix.expanded .remix-contract-body {
    display: block;
}

.remix-functions {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding-top: 0.5rem;
}

.remix-function-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.remix-func-header {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.remix-func-btn {
    flex: 1;
    padding: 0.4rem 0.625rem;
    border: 1px solid;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.6875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.remix-func-view {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.remix-func-view:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
}

.remix-func-write {
    background: rgba(251, 146, 60, 0.1);
    border-color: rgba(251, 146, 60, 0.3);
    color: #fb923c;
}

.remix-func-write:hover {
    background: rgba(251, 146, 60, 0.2);
    border-color: rgba(251, 146, 60, 0.5);
}

.remix-func-payable {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.remix-func-payable:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

.remix-func-toggle {
    width: 1.75rem;
    height: 1.75rem;
    background: rgba(100, 116, 139, 0.1);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 0.25rem;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.remix-func-toggle:hover {
    background: rgba(100, 116, 139, 0.2);
    color: #cbd5e1;
}

.remix-toggle-arrow {
    width: 0.875rem;
    height: 0.875rem;
    transition: transform 0.2s;
}

.remix-func-params {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-left: 0.5rem;
}

.remix-func-input {
    padding: 0.375rem 0.5rem;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 0.25rem;
    font-size: 0.6875rem;
    font-family: 'Courier New', monospace;
    color: #e0e0e0;
    outline: none;
    transition: border-color 0.2s;
}

.remix-func-input:focus {
    border-color: #60a5fa;
}

.remix-func-input::placeholder {
    color: #64748b;
    font-style: italic;
}

.remix-func-result {
    padding-left: 0.5rem;
    font-size: 0.6875rem;
    margin-top: 0.25rem;
}

.remix-loading {
    font-size: 12px;
    color: #6b7280;
    padding: 4px 8px;
    font-style: italic;
}

.remix-result-success,
.remix-result-error,
.remix-result-pending {
    display: none; 
}

.remix-result-success {
    padding: 0.375rem 0.5rem;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 0.25rem;
    color: #4ade80;
    font-family: 'Courier New', monospace;
}

.remix-result-pending {
    padding: 0.375rem 0.5rem;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 0.25rem;
    color: #fbbf24;
    font-family: 'Courier New', monospace;
}

.remix-result-error {
    padding: 0.375rem 0.5rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.25rem;
    color: #f87171;
    font-family: 'Courier New', monospace;
}

.remix-result-success strong,
.remix-result-pending strong,
.remix-result-error strong {
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
}

.remix-delete-contract {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.25rem;
}

.remix-delete-contract:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.remix-delete-contract svg {
    width: 0.75rem;
    height: 0.75rem;
}

#contractSelect {
    font-family: 'Courier New', monospace;
    font-size: 0.8125rem;
}

#contractSelect option {
    padding: 0.5rem;
}

.compile-success-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPulse 0.5s ease-out;
}

.compile-success-badge svg {
    width: 10px;
    height: 10px;
    stroke: white;
}

@keyframes successPulse {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.remix-pin-contract {
    padding: 0.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remix-pin-contract svg {
    width: 16px;
    height: 16px;
}

.remix-pin-contract:hover {
    color: #3b82f6;
    transform: scale(1.1);
}

.remix-pin-contract.pinned {
    color: #3b82f6;
}

.remix-pin-contract.pinned svg {
    fill: currentColor;
}

.vertical-tab img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin: auto;
}

.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-notification.hiding {
    transform: translateX(400px);
    opacity: 0;
}

.toast-notification.error {
    background: #ef4444;
}

.toast-notification.warning {
    background: #f59e0b;
}

.toast-notification svg {
    width: 18px;
    height: 18px;
}

.toast-success {
    background: #10b981;
}

.toast-info {
    background: #3b82f6;
}

.toast-warning {
    background: #f59e0b;
}

.toast-error {
    background: #ef4444;
}

.network-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: white;
    margin-left: 8px;
}

.remix-func-input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #374151;
    border-radius: 4px;
    background: #1f2937;
    color: white;
    font-size: 12px;
    margin-bottom: 4px;
}

.remix-func-input:focus {
    outline: none;
    border-color: #60a5fa;
}

.remix-func-input::placeholder {
    color: #9ca3af;
}


.remix-result-success {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    padding: 8px;
    border-radius: 4px;
    margin-top: 8px;
    font-size: 12px;
}

.remix-result-error {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
    padding: 8px;
    border-radius: 4px;
    margin-top: 8px;
    font-size: 12px;
}

.remix-result-pending {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    padding: 8px;
    border-radius: 4px;
    margin-top: 8px;
    font-size: 12px;
}

.contract-balance {
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: white;
    margin-left: 8px;
}

.remix-contract-header {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid rgba(71, 85, 105, 0.1);
}

.remix-contract-main-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.remix-contract-secondary-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: space-between;
}

.remix-arrow {
    width: 0.875rem;
    height: 0.875rem;
    color: #60a5fa;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.remix-contract-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.remix-contract-name {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #e0e0e0;
    font-size: 0.8rem;
    flex-shrink: 0;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remix-address-short {
    font-family: 'Courier New', monospace;
    color: #94a3b8;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.remix-balance-network {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.contract-balance {
    font-weight: 600;
    color: #4ade80;
}


.remix-contract-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.contract-full-address {
    font-family: 'Courier New', monospace;
    color: #64748b;
    font-size: 0.7rem;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remix-contract-actions {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

.remix-copy-address,
.remix-delete-contract {
    width: 1.5rem;
    height: 1.5rem;
    padding: 0.25rem;
    background: transparent;
    border: none;
    border-radius: 0.25rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.remix-copy-address:hover {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
}

.remix-delete-contract:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.remix-copy-address svg,
.remix-delete-contract svg {
    width: 0.75rem;
    height: 0.75rem;
}

@media (max-width: 768px) {
    .remix-contract-header {
        padding: 0.375rem 0.5rem;
    }
    
    .remix-contract-main-row {
        gap: 0.25rem;
    }
    
    .remix-contract-secondary-row {
        gap: 0.25rem;
    }
    
    .remix-contract-name {
        max-width: 100px;
        font-size: 0.75rem;
    }
    
    .remix-address-short {
        font-size: 0.7rem;
    }
    
    .contract-balance {
        font-size: 0.65rem;
    }
    
    .network-badge {
        font-size: 0.6rem;
        padding: 0.125rem 0.25rem;
    }
    
    .contract-full-address {
        font-size: 0.65rem;
    }
    
    .remix-contract-actions {
        gap: 0.125rem;
    }
    
    .remix-copy-address,
    .remix-delete-contract {
        width: 1.25rem;
        height: 1.25rem;
        padding: 0.125rem;
    }
}

.deployed-contract-remix.expanded .remix-arrow {
    transform: rotate(90deg);
}

