* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', 'Fira Code', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, monospace;
    background: #002b36;
    color: #839496;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.header {
    background: #073642;
    border-bottom: 1px solid #586e75;
    padding: 1.5rem 2rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* User Menu Styles */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.user-avatar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(147, 161, 161, 0.1);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(147, 161, 161, 0.2);
}

.user-avatar:hover {
    background: rgba(147, 161, 161, 0.15);
    transform: translateY(-1px);
}

.avatar-icon {
    font-size: 1.2rem;
    color: #93a1a1;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: #93a1a1;
}

.user-avatar.active .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: #073642;
    border: 1px solid #586e75;
    border-radius: 8px;
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: #839496;
}

.dropdown-item:hover {
    background: rgba(88, 110, 117, 0.3);
}

.dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

.dropdown-item.user-info {
    cursor: default;
    background: rgba(42, 161, 152, 0.1);
    border-bottom: 1px solid #586e75;
}

.dropdown-item.user-info:hover {
    background: rgba(42, 161, 152, 0.1);
}

.dropdown-divider {
    height: 1px;
    background: #586e75;
    margin: 0.25rem 0;
}

.item-icon, .user-icon {
    font-size: 1rem;
}

.item-label, .user-label {
    font-size: 0.9rem;
    font-weight: 500;
}

.user-label {
    color: #2aa198;
    font-weight: 600;
}

/* Packages Tab Styles */
.packages-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-section {
    background: rgba(88, 110, 117, 0.1);
    border: 1px solid #586e75;
    border-radius: 8px;
    padding: 1rem;
}

.info-section h4 {
    color: #2aa198;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.info-section p {
    color: #93a1a1;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.code-example {
    background: #073642;
    border: 1px solid #586e75;
    border-radius: 6px;
    overflow: hidden;
}

.code-header {
    background: #586e75;
    color: #fdf6e3;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.code-example pre {
    margin: 0;
    padding: 1rem;
    background: transparent;
    color: #839496;
    font-size: 0.8rem;
    line-height: 1.4;
}

.current-packages, .installed-packages {
    min-height: 2rem;
}

.no-packages, .loading {
    color: #586e75;
    font-style: italic;
    font-size: 0.85rem;
    text-align: center;
    padding: 1rem;
}

.package-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.package-tag {
    background: rgba(42, 161, 152, 0.2);
    color: #2aa198;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    border: 1px solid rgba(42, 161, 152, 0.3);
}

.package-tag.installing {
    background: rgba(181, 137, 0, 0.2);
    color: #b58900;
    border-color: rgba(181, 137, 0, 0.3);
}

.package-tag.error {
    background: rgba(220, 50, 47, 0.2);
    color: #dc322f;
    border-color: rgba(220, 50, 47, 0.3);
}

.install-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.package-input {
    flex: 1;
    background: #073642;
    border: 1px solid #586e75;
    color: #839496;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    outline: none;
}

.package-input:focus {
    border-color: #2aa198;
    box-shadow: 0 0 0 2px rgba(42, 161, 152, 0.2);
}

.install-btn {
    background: #2aa198;
    color: #fdf6e3;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.install-btn:hover {
    background: #268bd2;
    transform: translateY(-1px);
}

.install-btn:disabled {
    background: #586e75;
    cursor: not-allowed;
    transform: none;
}

.install-status {
    font-size: 0.8rem;
    padding: 0.5rem;
    border-radius: 4px;
    display: none;
}

.install-status.success {
    background: rgba(42, 161, 152, 0.1);
    color: #2aa198;
    border: 1px solid rgba(42, 161, 152, 0.3);
    display: block;
}

.install-status.error {
    background: rgba(220, 50, 47, 0.1);
    color: #dc322f;
    border: 1px solid rgba(220, 50, 47, 0.3);
    display: block;
}

.function-name-input {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex: 1;
    max-width: 400px;
}

.function-name-input input {
    flex: 1;
}

.cancel-btn {
    background: #586e75 !important;
    color: #fdf6e3 !important;
    border: 1px solid #93a1a1 !important;
    padding: 0.75rem !important;
    border-radius: 4px !important;
    cursor: pointer;
    font-size: 0.8rem !important;
    font-family: 'JetBrains Mono', monospace !important;
    transition: all 0.3s ease;
    width: auto !important;
    min-width: auto !important;
}

.cancel-btn:hover {
    background: #657b83 !important;
    transform: none !important;
    box-shadow: none !important;
}

.actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.header h1 {
    color: #268bd2;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.header input, .header select {
    background: #073642;
    border: 1px solid #586e75;
    color: #839496;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s ease;
    outline: none;
}

.header input:focus, .header select:focus {
    border-color: #268bd2;
    box-shadow: 0 0 0 2px rgba(38, 139, 210, 0.3);
    background: #002b36;
}

.header button {
    background: #268bd2;
    color: #fdf6e3;
    border: 1px solid #586e75;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.header button:hover {
    background: #2aa198;
    border-color: #93a1a1;
}

.header button:active {
    transform: translateY(0);
}

.header button.delete {
    background: #dc322f;
    border-color: #586e75;
}

.header button.delete:hover {
    background: #cb4b16;
}

.header button.secondary {
    background: #586e75;
    border-color: #93a1a1;
}

.header button.secondary:hover {
    background: #657b83;
}

.api-info {
    background: #073642;
    padding: 1rem 2rem;
    border-bottom: 1px solid #586e75;
    font-size: 0.85rem;
    color: #93a1a1;
    font-family: 'JetBrains Mono', monospace;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.api-info code {
    background: #002b36;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    border: 1px solid #586e75;
    color: #2aa198;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
}

.api-info button {
    background: #859900;
    color: #fdf6e3;
    border: 1px solid #586e75;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    transition: all 0.3s ease;
}

.api-info button:hover {
    background: #b58900;
}

.main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.sidebar {
    width: 250px;
    background: #073642;
    border-right: 1px solid #586e75;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    padding: 1rem;
    background: #002b36;
    border-bottom: 1px solid #586e75;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header h3 {
    color: #93a1a1;
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.new-function-btn {
    background: transparent;
    border: 1px solid #586e75;
    color: #93a1a1;
    padding: 0.3rem 0.5rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.2s ease;
}

.new-function-btn:hover {
    background: #586e75;
    color: #fdf6e3;
}

.function-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.function-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.function-item:hover {
    background: #002b36;
    border-left-color: #268bd2;
}

.function-item.active {
    background: #002b36;
    border-left-color: #268bd2;
    color: #268bd2;
}

.function-item.new-function {
    color: #586e75;
    font-style: italic;
}

.function-item.new-function:hover {
    color: #93a1a1;
}

.function-icon {
    margin-right: 0.5rem;
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}

.function-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #839496;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.function-item.active .function-name {
    color: #268bd2;
}

.new-function-input {
    padding: 0.5rem 1rem;
    margin: 0.5rem 0;
}

.new-function-input input {
    width: 100%;
    background: #002b36;
    border: 1px solid #268bd2;
    color: #839496;
    padding: 0.5rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    outline: none;
    box-shadow: 0 0 0 2px rgba(38, 139, 210, 0.3);
}

.new-function-input input::placeholder {
    color: #586e75;
    font-style: italic;
}

.sidebar-actions {
    border-top: 1px solid #586e75;
    padding: 0.5rem;
    background: #002b36;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 3px;
    color: #839496;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.sidebar-btn:hover {
    background: #073642;
    border-color: #586e75;
    color: #93a1a1;
}

.sidebar-btn:active {
    background: #002b36;
    border-color: #268bd2;
}

.sidebar-btn.save-btn:hover {
    color: #859900;
    border-color: #859900;
}

.sidebar-btn.delete-btn:hover {
    color: #dc322f;
    border-color: #dc322f;
}

.sidebar-btn.refresh-btn:hover {
    color: #268bd2;
    border-color: #268bd2;
}

.btn-icon {
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.btn-text {
    flex: 1;
    font-weight: 500;
}

.content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.editor-panel {
    flex: 2;
    display: flex;
    flex-direction: column;
    background: #002b36;
    border-right: 1px solid #586e75;
    overflow: hidden;
}

.editor-container {
    flex: 1;
    position: relative;
}

.editor-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: #586e75;
    z-index: 10;
}

.execute-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #073642;
    overflow: hidden;
}

.execute-header {
    padding: 1.5rem 2rem;
    background: #002b36;
    border-bottom: 1px solid #586e75;
}

.execute-header h3 {
    color: #268bd2;
    font-weight: 600;
    font-size: 1.1rem;
    font-family: 'JetBrains Mono', monospace;
}

.execute-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.input-section, .output-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.input-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-header {
    padding: 1rem 2rem;
    background: #073642;
    border-bottom: 1px solid #586e75;
    font-weight: 600;
    font-size: 0.9rem;
    color: #93a1a1;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-textarea, .output-content {
    flex: 1;
    background: #002b36;
    color: #839496;
    border: none;
    padding: 1.5rem 2rem;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 0.9rem;
    resize: none;
    outline: none;
    line-height: 1.6;
}

.input-textarea {
    background: #073642;
    border: 1px solid #586e75;
}

.input-textarea:focus {
    background: #002b36;
    border-color: #268bd2;
    box-shadow: 0 0 0 2px rgba(38, 139, 210, 0.3);
}

.output-content {
    background: #002b36;
    white-space: pre-wrap;
    overflow-y: auto;
    color: #93a1a1;
    border: 1px solid #586e75;
}

.execute-btn {
    background: #859900;
    color: #fdf6e3;
    border: 1px solid #586e75;
    padding: 1rem 2rem;
    margin: 1.5rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.execute-btn:hover {
    background: #b58900;
    border-color: #93a1a1;
}

.execute-btn:active {
    background: #859900;
}

.execute-btn:disabled {
    background: #586e75;
    color: #93a1a1;
    cursor: not-allowed;
    border-color: #657b83;
}

.status {
    padding: 1rem 2rem;
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
    border-top: 1px solid #586e75;
    font-weight: 500;
}

.status.success {
    background: #073642;
    color: #2aa198;
    border-top-color: #2aa198;
}

.status.error {
    background: #073642;
    color: #dc322f;
    border-top-color: #dc322f;
}

#apiDocs {
    background: #073642;
    border-bottom: 1px solid #586e75;
    color: #839496;
}

#apiDocs h3 {
    color: #268bd2;
    font-family: 'JetBrains Mono', monospace;
}

#apiDocs h4 {
    color: #b58900;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

#apiDocs pre {
    background: #002b36 !important;
    border: 1px solid #586e75;
    border-radius: 4px;
}

#apiDocs code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    color: #2aa198;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #073642;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #586e75;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #657b83;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header, .api-info {
    animation: slideIn 0.6s ease-out;
}

.main {
    animation: slideIn 0.8s ease-out;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .main {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: 200px;
        border-right: none;
        border-bottom: 1px solid #586e75;
    }
    
    .content {
        flex-direction: column;
    }
    
    .header {
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .api-info {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    #apiDocs {
        padding: 1rem;
    }
    
    #apiDocs > div {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .execute-btn {
        margin: 1rem;
        padding: 0.875rem 1.5rem;
    }
    
    .section-header, .execute-header {
        padding: 1rem;
    }
    
    .input-textarea, .output-content {
        padding: 1rem;
    }
}

/* Solarized Dark theme enhancements */
.header {
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #268bd2;
    opacity: 0.3;
}

/* Right Sidebar with Tabs */
.right-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #073642;
    overflow: hidden;
}

.sidebar-tabs {
    display: flex;
    background: #002b36;
    border-bottom: 1px solid #586e75;
}

.tab-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 0.5rem;
    background: transparent;
    border: none;
    border-right: 1px solid #586e75;
    color: #839496;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.tab-btn:last-child {
    border-right: none;
}

.tab-btn:hover {
    background: #073642;
    color: #93a1a1;
}

.tab-btn.active {
    background: #073642;
    color: #268bd2;
    border-bottom: 2px solid #268bd2;
}

.tab-icon {
    font-size: 1rem;
}

.tab-label {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tab-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tab-panel {
    display: none;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
}

.tab-panel.active {
    display: flex;
}

.panel-header {
    padding: 1.5rem 2rem;
    background: #002b36;
    border-bottom: 1px solid #586e75;
}

.panel-header h3 {
    color: #268bd2;
    font-weight: 600;
    font-size: 1.1rem;
    font-family: 'JetBrains Mono', monospace;
}

.panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
}

/* Settings Tab Styles */
.setting-group {
    margin-bottom: 1.5rem;
}

.setting-group label {
    display: block;
    color: #93a1a1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.setting-group .function-name-input {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.setting-group .function-name-input input {
    flex: 1;
    background: #002b36;
    border: 1px solid #586e75;
    color: #839496;
    padding: 0.75rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.setting-group .function-name-input input:focus {
    border-color: #268bd2;
    box-shadow: 0 0 0 2px rgba(38, 139, 210, 0.3);
}

.setting-group .cancel-btn {
    padding: 0.75rem;
    font-size: 0.8rem;
}

.current-function, .api-endpoints, .storage-info, .input-structure, .timeout-info {
    background: #002b36;
    border: 1px solid #586e75;
    border-radius: 4px;
    padding: 0.75rem;
}

.current-function code, .api-endpoints code, .storage-info code, .input-structure code, .timeout-info code {
    color: #2aa198;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

#functionNamePlaceholder {
    color: #93a1a1;
    font-style: italic;
}

/* API Tab Styles */
.api-examples {
    padding: 0;
}

.language-selector {
    margin-bottom: 1.5rem;
}

.language-selector label {
    display: block;
    color: #93a1a1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.language-selector select {
    width: 100%;
    background: #002b36;
    border: 1px solid #586e75;
    color: #839496;
    padding: 0.75rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.language-selector select:focus {
    border-color: #268bd2;
    box-shadow: 0 0 0 2px rgba(38, 139, 210, 0.3);
}

.example-container {
    position: relative;
}

.example-content {
    display: none;
}

.example-content.active {
    display: block;
}

.example-header {
    margin-bottom: 1.5rem;
}

.example-header h4 {
    color: #268bd2;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.example-description {
    color: #93a1a1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-style: italic;
}

.code-block {
    margin-bottom: 1.5rem;
}

.code-header {
    background: #073642;
    border: 1px solid #586e75;
    color: #b58900;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 4px 4px 0 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copy-btn {
    background: #002b36;
    border: 1px solid #586e75;
    color: #839496;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    font-family: inherit;
    text-transform: none;
    letter-spacing: normal;
}

.copy-btn:hover {
    background: #586e75;
    color: #fdf6e3;
    border-color: #93a1a1;
}

.copy-btn:active {
    background: #268bd2;
    color: #fdf6e3;
    border-color: #268bd2;
}

.copy-btn.copied {
    background: #859900;
    color: #fdf6e3;
    border-color: #859900;
}

.code-block pre {
    background: #002b36;
    border: 1px solid #586e75;
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 1rem;
    margin: 0;
    overflow-x: auto;
}

.code-block code {
    color: #2aa198;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.5;
}

.pro-tips {
    background: #073642;
    border: 1px solid #586e75;
    border-radius: 4px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.tips-header {
    color: #859900;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.tip-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    background: #002b36;
    border: 1px solid #586e75;
    border-radius: 4px;
}

.tip-item strong {
    color: #268bd2;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
}

.tip-item span {
    color: #839496;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    line-height: 1.4;
}

.tip-item code {
    background: #073642;
    border: 1px solid #586e75;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    color: #2aa198;
    font-size: 0.7rem;
}

/* Mobile responsive updates for tabs */
@media (max-width: 768px) {
    .tab-btn {
        padding: 0.5rem 0.25rem;
        font-size: 0.6rem;
    }
    
    .tab-icon {
        font-size: 0.9rem;
    }
    
    .panel-header {
        padding: 1rem;
    }
    
    .panel-content {
        padding: 0.75rem;
    }
    
    .example-section pre {
        padding: 0.75rem;
        font-size: 0.7rem;
    }
}

/* Agent Chat Styles */
#agent-panel .panel-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: visible;
}

.chat-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 300px;
    max-height: 600px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #002b36;
    border: 1px solid #586e75;
    border-radius: 4px;
    margin-bottom: 1rem;
    max-height: 400px;
    min-height: 200px;
}

.message {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #073642;
    border: 1px solid #586e75;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.agent-message .message-avatar {
    background: #268bd2;
    border-color: #268bd2;
    color: #fdf6e3;
}

.user-message .message-avatar {
    background: #859900;
    border-color: #859900;
    color: #fdf6e3;
}

.message-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.message-text {
    background: #073642;
    border: 1px solid #586e75;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #839496;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
}

.agent-message .message-text {
    background: #073642;
    border-color: #268bd2;
}

.user-message .message-text {
    background: #002b36;
    border-color: #859900;
}

.message-text ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.message-text li {
    margin: 0.25rem 0;
    color: #93a1a1;
}

.message-time {
    font-size: 0.7rem;
    color: #586e75;
    font-family: 'JetBrains Mono', monospace;
    font-style: italic;
}

.chat-input-container {
    border-top: 1px solid #586e75;
    padding-top: 1rem;
}

.chat-input-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.chat-input {
    flex: 1;
    background: #002b36;
    border: 1px solid #586e75;
    color: #839496;
    padding: 0.75rem;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    resize: none;
    outline: none;
    transition: all 0.3s ease;
    min-height: 40px;
    max-height: 120px;
}

.chat-input:focus {
    border-color: #268bd2;
    box-shadow: 0 0 0 2px rgba(38, 139, 210, 0.3);
    background: #073642;
}

.chat-input::placeholder {
    color: #586e75;
    font-style: italic;
}

.chat-send-btn {
    background: #268bd2;
    border: 1px solid #268bd2;
    color: #fdf6e3;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.chat-send-btn:hover {
    background: #2aa198;
    border-color: #2aa198;
}

.chat-send-btn:active {
    background: #268bd2;
    transform: scale(0.95);
}

.chat-send-btn:disabled {
    background: #586e75;
    border-color: #586e75;
    cursor: not-allowed;
    opacity: 0.6;
}

.send-icon {
    font-size: 0.9rem;
}

.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.suggestion-btn {
    background: #073642;
    border: 1px solid #586e75;
    color: #839496;
    padding: 0.5rem 0.75rem;
    border-radius: 16px;
    cursor: pointer;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.suggestion-btn:hover {
    background: #586e75;
    color: #fdf6e3;
    border-color: #93a1a1;
}

.suggestion-btn:active {
    background: #268bd2;
    border-color: #268bd2;
    color: #fdf6e3;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #586e75;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-style: italic;
    padding: 0.5rem 0;
}

.typing-dots {
    display: flex;
    gap: 0.25rem;
}

.typing-dot {
    width: 4px;
    height: 4px;
    background: #586e75;
    border-radius: 50%;
    animation: typingDot 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingDot {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    40% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile responsive for chat */
@media (max-width: 768px) {
    .chat-messages {
        max-height: 300px;
        padding: 0.75rem;
    }
    
    .message-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .message-text {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .chat-input {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    .chat-send-btn {
        padding: 0.5rem;
        min-width: 36px;
        height: 36px;
    }
    
    .suggestion-btn {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }
}