/* Select lists */
#source-columns,
#test-variables,
#group-label {
    background-color: #fff;
    color: #1e293b;
    border-color: #ccc;
    scrollbar-color: #e0e7ef #fff; /* thumb, track */
    scrollbar-width: thin;
}
body.dark-mode #source-columns,
body.dark-mode #test-variables,
body.dark-mode #group-label {
    background-color: #23272e;
    color: #f1f1f1;
    border-color: #444;
    scrollbar-color: #3b82f6 #23272e; /* thumb, track */
    scrollbar-width: thin;
}

/* Disabled select lists */
#source-columns:disabled,
#test-variables:disabled,
#group-label:disabled {
    background-color: #f1f5f9;
    color: #888;
}
body.dark-mode #source-columns:disabled,
body.dark-mode #test-variables:disabled,
body.dark-mode #group-label:disabled {
    background-color: #2c2f36;
    color: #888;
}

/* Select options */
#source-columns option,
#test-variables option,
#group-label option {
    background-color: #fff;
    color: #1e293b;
}
body.dark-mode #source-columns option,
body.dark-mode #test-variables option,
body.dark-mode #group-label option {
    background-color: #23272e;
    color: #f1f1f1;
}

/* Disabled select options */
#source-columns option:disabled,
#test-variables option:disabled,
#group-label option:disabled {
    background-color: #f1f5f9;
    color: #888;
}
body.dark-mode #source-columns option:disabled,
body.dark-mode #test-variables option:disabled,
body.dark-mode #group-label option:disabled {
    background-color: #2c2f36;
    color: #888;
}

/* Custom scrollbar for select lists (Webkit browsers) */
#source-columns::-webkit-scrollbar,
#test-variables::-webkit-scrollbar,
#group-label::-webkit-scrollbar {
    width: 10px;
    background: #fff;
}
body.dark-mode #source-columns::-webkit-scrollbar,
body.dark-mode #test-variables::-webkit-scrollbar,
body.dark-mode #group-label::-webkit-scrollbar {
    width: 10px;
    background: #23272e;
}
#source-columns::-webkit-scrollbar-thumb,
#test-variables::-webkit-scrollbar-thumb,
#group-label::-webkit-scrollbar-thumb {
    background: #e0e7ef;
    border-radius: 6px;
}
body.dark-mode #source-columns::-webkit-scrollbar-thumb,
body.dark-mode #test-variables::-webkit-scrollbar-thumb,
body.dark-mode #group-label::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 6px;
}
#source-columns::-webkit-scrollbar-thumb:hover,
#test-variables::-webkit-scrollbar-thumb:hover,
#group-label::-webkit-scrollbar-thumb:hover {
    background: #60a5fa;
}
body.dark-mode #source-columns::-webkit-scrollbar-thumb:hover,
body.dark-mode #test-variables::-webkit-scrollbar-thumb:hover,
body.dark-mode #group-label::-webkit-scrollbar-thumb:hover {
    background: #60a5fa;
}
/* Restored panel styles for input/output panels */
.panel-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.panel {
    overflow: hidden;
    transition: height 0.3s ease;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}

.panel-header {
    height: 30px;
    background-color: var(--accent-light, #e0f2fe);
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    user-select: none;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s;
    z-index: 10;
    border-radius: 4px 4px 0 0;
}

.panel-header:hover {
    background-color: var(--accent-color, #3b82f6);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.panel-content {
    flex: 1;
    overflow: auto;
    padding: 15px;
    background-color: var(--bg-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.panel-content#outputPanel {
    background-color: white;
}

body.dark-mode .panel-content#outputPanel {
    background-color: var(--bg-primary, #0f172a);
}

/* Output panel content styling */
#outputPanel .panel-content {
    font-family: 'Consolas', 'Monaco', 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace;
    text-align: left;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 10px;
    overflow-y: auto;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

#outputPanel .panel-content div {
    width: 100%;
    margin-bottom: 2px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.panel-divider {
    height: 8px;
    background-color: #cbd5e1;
    cursor: row-resize;
    position: relative;
    transition: background-color 0.2s;
    z-index: 20;
}

body.dark-mode .panel-divider {
    background-color: #334155;
}

.panel-divider:hover {
    background-color: #3b82f6;
}

body.dark-mode .panel-divider:hover {
    background-color: #60a5fa;
}

.panel-divider::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background-color: #64748b;
    border-radius: 2px;
}

body.dark-mode .panel-divider::before {
    background-color: #64748b;
}
:root {
    /* Light theme variables */
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --header-bg: #486B95;
    --footer-bg: #e2e8f0;
    --accent-color: #3b82f6;
    --accent-light: #e0f2fe;
    --tab-active: #60a5fa;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --dropdown-bg: #ffffff;
    --toolbar-hover: #f1f5f9;
    --menu-hover: #eff6ff;
    --border-color: rgba(0,0,0,0.1);
    --bg-input: #ffffff;
}

.dark-mode {
    /* Dark theme variables */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --footer-bg: #1e293b;
    --accent-light: #1e40af;
    --tab-active: #3b82f6;
    --shadow: 0 4px 12px rgba(0,0,0,0.4);
    --dropdown-bg: #1e293b;
    --toolbar-hover: #334155;
    --menu-hover: #1e40af;
    --border-color: rgba(255,255,255,0.1);
    --bg-input: #0f172a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow: hidden;
}

/* Header styles */
header {
    height: 30px;
    background-color: var(--header-bg);
    padding: 0 20px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    z-index: 100;
}

.logo {
    height: 24px;
    filter: brightness(0) invert(1);
}

/* Tabs container */
.tabs-container {
    display: flex;
    background-color: var(--bg-secondary);
    padding: 0 15px;
    position: relative;
    flex-shrink: 0;
    box-shadow: var(--shadow);
    z-index: 90;
}

.tabs {
    display: flex;
    flex-grow: 1;
}

.tab {
    padding: 12px 20px;
    cursor: pointer;
    position: relative;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab:hover {
    color: var(--text-primary);
}

.tab.active {
    color: var(--accent-color);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 70%;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 3px 3px 0 0;
}

.mode-toggle {
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: all 0.3s;
    width: 40px;
}

.mode-toggle:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* Toolbar with dropdowns */
.toolbar {
    padding: 8px 15px;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
    flex-shrink: 0;
    z-index: 80;
}

.dropdown {
    position: relative;
}

.dropbtn {
    background-color: transparent;
    color: var(--text-primary);
    padding: 8px 16px;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.dropbtn:hover {
    background-color: var(--toolbar-hover);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--dropdown-bg);
    min-width: 220px;
    box-shadow: var(--shadow);
    border-radius: 6px;
    z-index: 100;
    top: 100%;
    left: 0;
    overflow: hidden;
    transform: translateY(4px);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    border: 1px solid var(--border-color);
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text-primary);
    gap: 12px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: var(--menu-hover);
}

.item-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
}

/* Main panel styles */
.main-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.content-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--text-secondary);
}

.content-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.7;
    color: var(--accent-color);
}

.content-placeholder h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.content-placeholder p {
    font-size: 1rem;
    max-width: 400px;
}

/* Footer styles */
footer {
    height: 50px;
    background-color: var(--footer-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    flex-shrink: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.divider {
    height: 16px;
    width: 1px;
    background-color: var(--text-secondary);
    opacity: 0.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tab {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .tab i {
        display: none;
    }
    
    .toolbar {
        gap: 4px;
        padding: 6px 8px;
    }
    
    .dropbtn {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    .panel-header {
        padding: 0 10px;
        font-size: 0.9rem;
    }
    
    .panel-header i {
        margin-right: 8px;
    }
    
    .content-placeholder i {
        font-size: 2.5rem;
    }
    
    .content-placeholder h3 {
        font-size: 1.3rem;
    }
    
    footer {
        padding: 0 15px;
        font-size: 0.8rem;
    }
}

