/* static/css/style.css */

:root {
    --bg-color: #000000;
    --text-color: #c9d1d9;
    --heading-color: #ffffff;
    --primary-color: #4a90e2;
    --primary-color-rgb: 74, 144, 226;
    --secondary-color: #8a63d2;
    --card-bg-color: rgba(8, 8, 8, 0.9);
    --border-color: rgba(255, 255, 255, 0.08);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'Fira Code', 'Monaco', 'Consolas', monospace;
    --success-color: #28a745;
    --warning-color: #ff9800;
    --error-color: #f44336;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.7;
    overflow-x: hidden;
}

#smoke-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Place it behind content but above the bg color */
    pointer-events: none;
}

main {
    position: relative;
    z-index: 2; /* Ensure main content is above canvas */
}

/* --- Header & Navigation --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--heading-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.logo i {
    color: var(--primary-color);
}

.main-header nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    margin-left: 1.5rem;
}

.main-header nav a:hover {
    color: var(--heading-color);
}

.nav-button {
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1.2rem;
    border-radius: 5px;
}

.nav-button:hover {
    background-color: var(--primary-color);
    color: #fff !important;
}

/* Dropdown Navigation */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    /* display: none; */
    opacity: 0; /* Start hidden */
    visibility: hidden; /* Start hidden */
    transform: translateY(-10px); /* Initial state for slide-down effect */
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease; /* Transition properties */
    transition-delay: 0s, 0.5s, 0.5s; /* Delay visibility and transform change on hover OFF */
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    margin-top: 5px;
    /* animation: dropdownFadeIn 0.2s ease-out; */
}

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

.dropdown:hover .dropdown-content, .dropdown.active .dropdown-content {
    /* display: block; */
    opacity: 1; /* Show */
    visibility: visible; /* Show */
    transform: translateY(0); /* Final state for slide-down effect */
    transition-delay: 0s, 0s, 0s; /* No delay on hover ON */
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin: 0;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.85rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--heading-color);
}
.dropdown-content a i { width: 16px; color: var(--primary-color); }

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.dropdown-toggle::after {
    content: "▼";
    font-size: 0.7em;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after, .dropdown.active .dropdown-toggle::after {
    transform: rotate(180deg);
}


/* --- Page Sections & Layout --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    background-color: transparent;
}

.hero-content { max-width: 800px; }
.hero-title {
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 700;
    color: var(--heading-color);
    letter-spacing: -3px;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}
.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 300;
    margin-top: 1rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; }

.features-section, .comparison-section, .minecollab-section, .install-section, .andy-4-section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--bg-color);
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
    font-size: 1.1rem;
}

/* Andy API Page Layout */
.andy-page { min-height: 100vh; padding-top: 80px; }
.andy-container { max-width: 1400px; margin: 0 auto; padding: 20px; position: relative; z-index: 2; }
.andy-header { text-align: center; margin-bottom: 40px; padding: 40px 0; }
.andy-title {
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.andy-title i { color: var(--primary-color); }
.andy-subtitle { font-size: 1.1rem; color: var(--text-color); opacity: 0.8; }

/* --- Buttons --- */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    border: 1px solid transparent;
    cursor: pointer;
}
.btn-primary { background-color: var(--primary-color); color: #fff; }
.btn-primary:hover { background-color: #fff; color: var(--primary-color); border-color: var(--primary-color); }
.btn-secondary { background-color: transparent; color: #fff; border-color: #fff; }
.btn-secondary:hover { background-color: #fff; color: var(--bg-color); }

.refresh-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.refresh-btn:hover { background: #3a7bd5; }

/* --- Cards & Grids --- */
.features-grid, .minecollab-grid, .model-grid, .andy-stats-grid, .metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card, .minecollab-card, .model-card, .andy-card, .andy-stat-card, .metric-card {
    background-color: var(--card-bg-color);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
}

.feature-card:hover, .minecollab-card:hover, .model-card:hover, .andy-card:hover, .andy-stat-card:hover, .metric-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(74, 144, 226, 0.5);
}

.feature-card i, .minecollab-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}
.feature-card h3, .minecollab-card h3, .model-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
    text-align: center;
}

/* --- Tables --- */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 1.25rem 1.5rem; text-align: left; border-bottom: 1px solid var(--border-color); }
th { background-color: rgba(255, 255, 255, 0.05); color: var(--heading-color); font-weight: 600; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background-color: rgba(255, 255, 255, 0.03); }

.comparison-table-wrapper, .parameter-table {
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(5px);
}
.parameter-table th, .parameter-table td { padding: 12px 15px; }

/* --- Code & Install Steps --- */
pre {
    background: #000;
    color: var(--text-color);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-top: 1rem;
    border: 1px solid #333;
    font-family: var(--font-mono);
}
.install-steps { display: flex; flex-direction: column; gap: 2rem; }
.step {
    display: flex;
    align-items: flex-start;
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    gap: 2rem;
    backdrop-filter: blur(5px);
}
.step-number { font-size: 2.5rem; font-weight: 700; color: var(--primary-color); line-height: 1; margin-top: 0.25rem; }
.step-content h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--heading-color); }

/* --- Footer --- */
.main-footer { text-align: center; padding: 3rem 2rem; margin-top: 4rem; border-top: 1px solid var(--border-color); background: var(--bg-color); }
.footer-links { margin-bottom: 1rem; }
.footer-links a { color: var(--text-color); margin: 0 1rem; text-decoration: none; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--heading-color); }

/* --- Animations & Misc --- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.scroll-down-arrow { position: absolute; bottom: 3rem; font-size: 1.5rem; color: rgba(255, 255, 255, 0.5); animation: bounce 2s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-20px); } 60% { transform: translateY(-10px); } }

/* --- Andy Docs Page --- */
.docs-container { max-width: 1000px; margin: 0 auto; padding: 120px 20px 40px 20px; }
.docs-header { text-align: center; margin-bottom: 60px; }
.docs-title {
    font-size: 3rem; font-weight: 700; color: var(--heading-color); margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), #00d4ff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.docs-subtitle { font-size: 1.2rem; color: var(--text-color); opacity: 0.8; max-width: 600px; margin: 0 auto; line-height: 1.6; }
.docs-nav { background: var(--card-bg-color); border-radius: 15px; padding: 30px; margin-bottom: 40px; backdrop-filter: blur(10px); border: 1px solid var(--border-color); }
.docs-nav h3 { color: var(--heading-color); margin-bottom: 20px; font-size: 1.3rem; }
.nav-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
.nav-link { background: rgba(255, 255, 255, 0.03); border-radius: 10px; padding: 15px 20px; text-decoration: none; color: var(--text-color); transition: all 0.3s ease; border: 1px solid transparent; display: flex; align-items: center; gap: 12px; }
.nav-link:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--primary-color); transform: translateY(-2px); }
.nav-link i { color: var(--primary-color); font-size: 1.2rem; }
.docs-section { background: var(--card-bg-color); border-radius: 15px; padding: 40px; margin-bottom: 30px; backdrop-filter: blur(10px); border: 1px solid var(--border-color); }
.docs-section h2 { color: var(--heading-color); font-size: 2rem; margin-bottom: 20px; display: flex; align-items: center; gap: 15px; }
.docs-section h3 { color: var(--heading-color); font-size: 1.5rem; margin: 30px 0 15px 0; border-bottom: 2px solid var(--primary-color); padding-bottom: 8px; }
.code-block { background: #020202; border-radius: 10px; padding: 20px; margin: 20px 0; border: 1px solid var(--border-color); position: relative; overflow-x: auto; }
.code-block pre { margin: 0; color: #e6e6e6; font-family: var(--font-mono); font-size: 0.9rem; line-height: 1.5; }
.copy-btn { position: absolute; top: 15px; right: 15px; background: var(--primary-color); color: white; border: none; border-radius: 6px; padding: 8px 12px; cursor: pointer; font-size: 0.8rem; transition: all 0.3s ease; display: flex; align-items: center; gap: 6px; }
.copy-btn:hover { background: #0066cc; transform: scale(1.05); }
.copy-btn.copied { background: var(--success-color); }
.copy-all-btn { background: var(--primary-color); color: white; border: none; border-radius: 10px; padding: 15px 30px; cursor: pointer; font-size: 1rem; font-weight: 600; transition: all 0.3s ease; display: flex; align-items: center; gap: 10px; margin: 30px auto; box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3); }
.copy-all-btn:hover { background: #0066cc; transform: translateY(-2px); box-shadow: 0 6px 25px rgba(0, 123, 255, 0.4); }
.copy-all-btn.copied { background: var(--success-color); }
.endpoint-card { background: rgba(255, 255, 255, 0.02); border-radius: 10px; padding: 20px; margin: 15px 0; border-left: 4px solid var(--primary-color); }
.endpoint-method { display: inline-block; color: white; padding: 4px 12px; border-radius: 4px; font-weight: bold; font-size: 0.8rem; margin-right: 10px; }
.endpoint-method.get { background: var(--success-color); }
.endpoint-method.post { background: var(--primary-color); }
.endpoint-url { font-family: var(--font-mono); color: var(--heading-color); font-weight: 600; }

/* --- Andy Chat Page --- */
.chat-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; padding: 20px; background: var(--card-bg-color); border-radius: 12px; border: 1px solid var(--border-color); }
.control-group { display: flex; flex-direction: column; gap: 8px; }
.control-label { font-weight: 600; color: var(--heading-color); font-size: 0.9em; }
.control-input { padding: 10px 12px; border: 1px solid var(--border-color); background: rgba(255, 255, 255, 0.05); color: var(--text-color); border-radius: 8px; font-size: 0.9em; }
.control-input:focus { border-color: var(--primary-color); outline: none; }
.chat-messages { height: 400px; overflow-y: auto; border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; margin-bottom: 20px; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(10px); }
.message { margin-bottom: 15px; padding: 12px 16px; border-radius: 12px; max-width: 80%; word-wrap: break-word; }
.message.user { background: var(--primary-color); color: white; margin-left: auto; text-align: right; }
.message.assistant { background: var(--card-bg-color); border: 1px solid var(--border-color); color: var(--text-color); margin-right: auto; }
.message.system { background: var(--warning-color); color: white; text-align: center; margin: 0 auto; max-width: 90%; font-size: 0.9rem; }
.message .timestamp { font-size: 0.8rem; opacity: 0.7; margin-top: 6px; }
.chat-input-area { display: flex; gap: 12px; align-items: flex-end; }
.chat-input { flex: 1; min-height: 80px; padding: 12px 16px; border: 1px solid var(--border-color); background: rgba(255, 255, 255, 0.05); color: var(--text-color); border-radius: 12px; resize: vertical; font-family: inherit; font-size: 0.95em; }
.chat-input:focus { border-color: var(--primary-color); outline: none; }
.send-button { padding: 12px 20px; background: var(--primary-color); color: white; border: none; border-radius: 12px; cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 8px; transition: all 0.3s ease; }
.send-button:hover { background: #3a7bd5; transform: translateY(-1px); }
.send-button:disabled { background: #666; cursor: not-allowed; transform: none; }
.status-indicator { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--card-bg-color); border-radius: 8px; font-size: 0.85em; margin-bottom: 15px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success-color); }
.status-dot.connecting { background: var(--warning-color); animation: pulse 2s infinite; }
.status-dot.error { background: var(--error-color); }

/* --- Admin Page --- */
.admin-container { max-width: 900px; margin: 20px auto; background: var(--card-bg-color); padding: 30px; border-radius: 12px; border: 1px solid var(--border-color); }
.admin-container h1, .admin-container h2 { color: var(--heading-color); border-bottom: 2px solid var(--border-color); padding-bottom: 10px; }
.admin-container table { margin-top: 20px; }
.admin-container th { background-color: var(--card-bg-color); }
.admin-container tr:hover { background-color: rgba(255, 255, 255, 0.02); }
.form-section { margin-top: 30px; padding: 20px; background-color: rgba(0,0,0,0.5); border: 1px solid var(--border-color); border-radius: 5px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; }
.form-group input { width: 100%; padding: 10px; border: 1px solid var(--border-color); border-radius: 4px; box-sizing: border-box; background: rgba(0,0,0,0.6); color: var(--text-color); }
.alert { padding: 15px; background-color: rgba(248, 215, 218, 0.1); color: #f8d7da; border: 1px solid #f5c6cb; border-radius: 4px; margin-bottom: 20px; }

/* --- Andy Pool Page --- */
.host-status { padding: 5px 10px; border-radius: 15px; font-size: 0.8em; font-weight: bold; color: white; }
.status-active { background: var(--primary-color); }
.status-inactive { background: var(--error-color); }
.status-busy { background: var(--warning-color); }
.host-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 15px; }
.info-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border-color); }
.info-item:last-child { border-bottom: none; }
.models-list { margin-top: 15px; }
.model-item { background: var(--card-bg-color); border-radius: 8px; padding: 12px; margin: 8px 0; display: flex; justify-content: space-between; align-items: center; }
.model-name { font-weight: 600; color: var(--heading-color); }
.model-details { font-size: 0.85em; color: var(--text-color); opacity: 0.8; }
.auto-refresh { display: flex; align-items: center; gap: 8px; color: var(--text-color); }
.load-bar { width: 100%; height: 8px; background: var(--card-bg-color); border-radius: 4px; overflow: hidden; margin-top: 10px; }
.load-fill { height: 100%; background: linear-gradient(90deg, var(--primary-color), var(--warning-color), var(--error-color)); transition: width 0.3s ease; border-radius: 4px; }
.header-controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 1rem; }

/* --- Andy Metrics Page --- */
.andy-stat-value { font-size: 2.5em; font-weight: 700; color: var(--primary-color); margin-bottom: 8px; }
.andy-stat-label { font-size: 0.9em; color: var(--heading-color); opacity: 0.9; font-weight: 600; }
.metric-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.metric-title { font-size: 1.1em; font-weight: 600; display: flex; align-items: center; gap: 10px; color: var(--heading-color); }
.metric-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.2em; background: var(--primary-color); color: white; }
.chart-container { width: 100%; height: 300px; margin-top: 20px; background: var(--card-bg-color); padding: 20px; border-radius: 12px; border: 1px solid var(--border-color); }
.chart-card { background: var(--card-bg-color); border: 1px solid var(--border-color); border-radius: 12px; padding: 24px; margin-bottom: 20px; }
.chart-header { margin-bottom: 20px; }
.chart-title { font-size: 1.2em; font-weight: 600; color: var(--heading-color); margin-bottom: 8px; }
.chart-subtitle { font-size: 0.9em; color: var(--text-color); opacity: 0.7; }
.hosts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 20px; margin-bottom: 30px; }
.vram-bar { width: 100%; height: 6px; background: var(--card-bg-color); border-radius: 3px; overflow: hidden; }
.vram-fill { height: 100%; background: var(--secondary-color); transition: width 0.3s ease; }
.refresh-btn { 
    background: var(--primary-color); 
    color: white; 
    border: none; 
    padding: 10px 20px; 
    border-radius: 8px; 
    cursor: pointer; 
    font-weight: 600; 
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.refresh-btn:hover { 
    background: #3a7bd5; 
    transform: translateY(-1px); 
}
.auto-refresh {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--heading-color);
    font-weight: 500;
    cursor: pointer;
}
.auto-refresh input[type="checkbox"] {
    accent-color: var(--primary-color);
}

/* --- Andy Models Page --- */
.model-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.model-status { padding: 5px 12px; border-radius: 15px; font-size: 0.8rem; font-weight: bold; color: white; }
.status-available { background: var(--success-color); }
.status-offline { background: var(--error-color); }
.detail-item { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.9rem; }
.variants-section { margin: 20px 0; }
.variant-item { display: flex; justify-content: space-between; align-items: center; background: var(--card-bg-color); padding: 10px 15px; border-radius: 8px; margin-top: 8px; }
.model-actions { display: flex; gap: 10px; margin-top: 20px; }
.model-btn { flex: 1; padding: 10px; border-radius: 8px; border: 1px solid var(--border-color); background: transparent; color: var(--text-color); cursor: pointer; transition: all 0.3s ease; }
.model-btn:hover { background: var(--primary-color); color: white; border-color: var(--primary-color); }
.test-results { margin-top: 15px; padding: 10px; border-radius: 8px; font-size: 0.9rem; display: none; }
.test-results.visible { display: block; }
.test-success { background: rgba(40, 167, 69, 0.2); color: var(--success-color); border-left: 3px solid var(--success-color); padding: 10px; }
.test-error { background: rgba(220, 53, 69, 0.2); color: var(--error-color); border-left: 3px solid var(--error-color); padding: 10px; }

/* --- Authentication Styles --- */
.auth-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 500px;
}

.auth-card h1 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--heading-color);
    font-size: 1.8rem;
}

.auth-form {
    margin-bottom: 30px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--heading-color);
    font-weight: 500;
}

.auth-form small {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.control-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.control-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
}

.control-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.auth-btn {
    width: 100%;
    margin-top: 10px;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links p {
    margin: 10px 0;
    color: var(--text-color);
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

.security-section {
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.security-section h3 {
    margin: 0 0 15px 0;
    color: var(--heading-color);
    font-size: 1.2rem;
}

.security-section p {
    margin: 0 0 20px 0;
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Alert Messages */
.alert {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
}

.alert-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #f5c6cb;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #d4edda;
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    border: 1px solid rgba(23, 162, 184, 0.3);
    color: #bee5eb;
}

/* User Info Section */
.user-info {
    text-align: center;
    margin-bottom: 30px;
}

.user-info h1 {
    color: var(--heading-color);
    margin-bottom: 10px;
}

.user-info p {
    color: var(--text-color);
    font-size: 1.1rem;
}

/* API Key Display */
.api-key-display {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin-right: 10px;
}

.copy-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.3s ease;
}

.copy-btn:hover {
    background: #3a7bd5;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 5px;
}

.btn-small {
    padding: 5px 8px;
    font-size: 0.8rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

/* Admin Container */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-success {
    background: #28a745;
}

.toast-error {
    background: #dc3545;
}

.toast-info {
    background: #17a2b8;
}

/* --- Custom Select Dropdown Styling for Dark Mode --- */
select,
.control-input[type="select"] {
    background: var(--card-bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 1em;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.3s;
}

select:focus {
    border-color: var(--primary-color);
    outline: none;
}

option {
    background: var(--card-bg-color);
    color: var(--text-color);
}

/* For Firefox: force option background on focus/hover */
select option:checked, select option:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Responsive Design for Auth */
@media (max-width: 768px) {
    .auth-container {
        padding: 20px 15px;
    }
    
    .auth-card {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .admin-container {
        padding: 20px 15px;
    }
    
    .comparison-table-wrapper {
        overflow-x: auto;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 3px;
    }
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .main-header { padding: 1rem 5%; }
    .main-header nav { display: none; }
    .step { flex-direction: column; align-items: center; text-align: center; }
    .dropdown-content { right: 0; left: auto; min-width: 180px; }
    .andy-title { font-size: 2rem; flex-direction: column; gap: 10px; }
    .andy-container { padding: 15px; }
    .chat-controls { grid-template-columns: 1fr; }
    .chat-input-area { flex-direction: column; gap: 10px; }
    .message { max-width: 95%; }
}

/* --- Andy-4 Family Image --- */
.andy-family-image {
    max-width: 1280px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 2rem auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

/* --- Andy Docs Page --- */
.docs-container { max-width: 1000px; margin: 0 auto; padding: 120px 20px 40px 20px; }
.docs-header { text-align: center; margin-bottom: 60px; }
.docs-title {
    font-size: 3rem; font-weight: 700; color: var(--heading-color); margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), #00d4ff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.docs-subtitle { font-size: 1.2rem; color: var(--text-color); opacity: 0.8; max-width: 600px; margin: 0 auto; line-height: 1.6; }
.docs-nav { background: var(--card-bg-color); border-radius: 15px; padding: 30px; margin-bottom: 40px; backdrop-filter: blur(10px); border: 1px solid var(--border-color); }
.docs-nav h3 { color: var(--heading-color); margin-bottom: 20px; font-size: 1.3rem; }
.nav-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
.nav-link { background: rgba(255, 255, 255, 0.03); border-radius: 10px; padding: 15px 20px; text-decoration: none; color: var(--text-color); transition: all 0.3s ease; border: 1px solid transparent; display: flex; align-items: center; gap: 12px; }
.nav-link:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--primary-color); transform: translateY(-2px); }
.nav-link i { color: var(--primary-color); font-size: 1.2rem; }
.docs-section { background: var(--card-bg-color); border-radius: 15px; padding: 40px; margin-bottom: 30px; backdrop-filter: blur(10px); border: 1px solid var(--border-color); }
.docs-section h2 { color: var(--heading-color); font-size: 2rem; margin-bottom: 20px; display: flex; align-items: center; gap: 15px; }
.docs-section h3 { color: var(--heading-color); font-size: 1.5rem; margin: 30px 0 15px 0; border-bottom: 2px solid var(--primary-color); padding-bottom: 8px; }
.code-block { background: #020202; border-radius: 10px; padding: 20px; margin: 20px 0; border: 1px solid var(--border-color); position: relative; overflow-x: auto; }
.code-block pre { margin: 0; color: #e6e6e6; font-family: var(--font-mono); font-size: 0.9rem; line-height: 1.5; }
.copy-btn { position: absolute; top: 15px; right: 15px; background: var(--primary-color); color: white; border: none; border-radius: 6px; padding: 8px 12px; cursor: pointer; font-size: 0.8rem; transition: all 0.3s ease; display: flex; align-items: center; gap: 6px; }
.copy-btn:hover { background: #0066cc; transform: scale(1.05); }
.copy-btn.copied { background: var(--success-color); }
.copy-all-btn { background: var(--primary-color); color: white; border: none; border-radius: 10px; padding: 15px 30px; cursor: pointer; font-size: 1rem; font-weight: 600; transition: all 0.3s ease; display: flex; align-items: center; gap: 10px; margin: 30px auto; box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3); }
.copy-all-btn:hover { background: #0066cc; transform: translateY(-2px); box-shadow: 0 6px 25px rgba(0, 123, 255, 0.4); }
.copy-all-btn.copied { background: var(--success-color); }
.endpoint-card { background: rgba(255, 255, 255, 0.02); border-radius: 10px; padding: 20px; margin: 15px 0; border-left: 4px solid var(--primary-color); }
.endpoint-method { display: inline-block; color: white; padding: 4px 12px; border-radius: 4px; font-weight: bold; font-size: 0.8rem; margin-right: 10px; }
.endpoint-method.get { background: var(--success-color); }
.endpoint-method.post { background: var(--primary-color); }
.endpoint-url { font-family: var(--font-mono); color: var(--heading-color); font-weight: 600; }

/* --- Andy Chat Page --- */
.chat-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; padding: 20px; background: var(--card-bg-color); border-radius: 12px; border: 1px solid var(--border-color); }
.control-group { display: flex; flex-direction: column; gap: 8px; }
.control-label { font-weight: 600; color: var(--heading-color); font-size: 0.9em; }
.control-input { padding: 10px 12px; border: 1px solid var(--border-color); background: rgba(255, 255, 255, 0.05); color: var(--text-color); border-radius: 8px; font-size: 0.9em; }
.control-input:focus { border-color: var(--primary-color); outline: none; }
.chat-messages { height: 400px; overflow-y: auto; border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; margin-bottom: 20px; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(10px); }
.message { margin-bottom: 15px; padding: 12px 16px; border-radius: 12px; max-width: 80%; word-wrap: break-word; }
.message.user { background: var(--primary-color); color: white; margin-left: auto; text-align: right; }
.message.assistant { background: var(--card-bg-color); border: 1px solid var(--border-color); color: var(--text-color); margin-right: auto; }
.message.system { background: var(--warning-color); color: white; text-align: center; margin: 0 auto; max-width: 90%; font-size: 0.9rem; }
.message .timestamp { font-size: 0.8rem; opacity: 0.7; margin-top: 6px; }
.chat-input-area { display: flex; gap: 12px; align-items: flex-end; }
.chat-input { flex: 1; min-height: 80px; padding: 12px 16px; border: 1px solid var(--border-color); background: rgba(255, 255, 255, 0.05); color: var(--text-color); border-radius: 12px; resize: vertical; font-family: inherit; font-size: 0.95em; }
.chat-input:focus { border-color: var(--primary-color); outline: none; }
.send-button { padding: 12px 20px; background: var(--primary-color); color: white; border: none; border-radius: 12px; cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 8px; transition: all 0.3s ease; }
.send-button:hover { background: #3a7bd5; transform: translateY(-1px); }
.send-button:disabled { background: #666; cursor: not-allowed; transform: none; }
.status-indicator { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--card-bg-color); border-radius: 8px; font-size: 0.85em; margin-bottom: 15px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success-color); }
.status-dot.connecting { background: var(--warning-color); animation: pulse 2s infinite; }
.status-dot.error { background: var(--error-color); }

/* --- Admin Page --- */
.admin-container { max-width: 900px; margin: 20px auto; background: var(--card-bg-color); padding: 30px; border-radius: 12px; border: 1px solid var(--border-color); }
.admin-container h1, .admin-container h2 { color: var(--heading-color); border-bottom: 2px solid var(--border-color); padding-bottom: 10px; }
.admin-container table { margin-top: 20px; }
.admin-container th { background-color: var(--card-bg-color); }
.admin-container tr:hover { background-color: rgba(255, 255, 255, 0.02); }
.form-section { margin-top: 30px; padding: 20px; background-color: rgba(0,0,0,0.5); border: 1px solid var(--border-color); border-radius: 5px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; }
.form-group input { width: 100%; padding: 10px; border: 1px solid var(--border-color); border-radius: 4px; box-sizing: border-box; background: rgba(0,0,0,0.6); color: var(--text-color); }
.alert { padding: 15px; background-color: rgba(248, 215, 218, 0.1); color: #f8d7da; border: 1px solid #f5c6cb; border-radius: 4px; margin-bottom: 20px; }

/* --- Andy Pool Page --- */
.host-status { padding: 5px 10px; border-radius: 15px; font-size: 0.8em; font-weight: bold; color: white; }
.status-active { background: var(--primary-color); }
.status-inactive { background: var(--error-color); }
.status-busy { background: var(--warning-color); }
.host-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 15px; }
.info-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border-color); }
.info-item:last-child { border-bottom: none; }
.models-list { margin-top: 15px; }
.model-item { background: var(--card-bg-color); border-radius: 8px; padding: 12px; margin: 8px 0; display: flex; justify-content: space-between; align-items: center; }
.model-name { font-weight: 600; color: var(--heading-color); }
.model-details { font-size: 0.85em; color: var(--text-color); opacity: 0.8; }
.auto-refresh { display: flex; align-items: center; gap: 8px; color: var(--text-color); }
.load-bar { width: 100%; height: 8px; background: var(--card-bg-color); border-radius: 4px; overflow: hidden; margin-top: 10px; }
.load-fill { height: 100%; background: linear-gradient(90deg, var(--primary-color), var(--warning-color), var(--error-color)); transition: width 0.3s ease; border-radius: 4px; }
.header-controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 1rem; }

/* --- Andy Metrics Page --- */
.andy-stat-value { font-size: 2.5em; font-weight: 700; color: var(--primary-color); margin-bottom: 8px; }
.andy-stat-label { font-size: 0.9em; color: var(--heading-color); opacity: 0.9; font-weight: 600; }
.metric-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.metric-title { font-size: 1.1em; font-weight: 600; display: flex; align-items: center; gap: 10px; color: var(--heading-color); }
.metric-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.2em; background: var(--primary-color); color: white; }
.chart-container { width: 100%; height: 300px; margin-top: 20px; background: var(--card-bg-color); padding: 20px; border-radius: 12px; border: 1px solid var(--border-color); }
.chart-card { background: var(--card-bg-color); border: 1px solid var(--border-color); border-radius: 12px; padding: 24px; margin-bottom: 20px; }
.chart-header { margin-bottom: 20px; }
.chart-title { font-size: 1.2em; font-weight: 600; color: var(--heading-color); margin-bottom: 8px; }
.chart-subtitle { font-size: 0.9em; color: var(--text-color); opacity: 0.7; }
.hosts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 20px; margin-bottom: 30px; }
.vram-bar { width: 100%; height: 6px; background: var(--card-bg-color); border-radius: 3px; overflow: hidden; }
.vram-fill { height: 100%; background: var(--secondary-color); transition: width 0.3s ease; }
.refresh-btn { 
    background: var(--primary-color); 
    color: white; 
    border: none; 
    padding: 10px 20px; 
    border-radius: 8px; 
    cursor: pointer; 
    font-weight: 600; 
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.refresh-btn:hover { 
    background: #3a7bd5; 
    transform: translateY(-1px); 
}
.auto-refresh {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--heading-color);
    font-weight: 500;
    cursor: pointer;
}
.auto-refresh input[type="checkbox"] {
    accent-color: var(--primary-color);
}

/* --- Andy Models Page --- */
.model-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.model-status { padding: 5px 12px; border-radius: 15px; font-size: 0.8rem; font-weight: bold; color: white; }
.status-available { background: var(--success-color); }
.status-offline { background: var(--error-color); }
.detail-item { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.9rem; }
.variants-section { margin: 20px 0; }
.variant-item { display: flex; justify-content: space-between; align-items: center; background: var(--card-bg-color); padding: 10px 15px; border-radius: 8px; margin-top: 8px; }
.model-actions { display: flex; gap: 10px; margin-top: 20px; }
.model-btn { flex: 1; padding: 10px; border-radius: 8px; border: 1px solid var(--border-color); background: transparent; color: var(--text-color); cursor: pointer; transition: all 0.3s ease; }
.model-btn:hover { background: var(--primary-color); color: white; border-color: var(--primary-color); }
.test-results { margin-top: 15px; padding: 10px; border-radius: 8px; font-size: 0.9rem; display: none; }
.test-results.visible { display: block; }
.test-success { background: rgba(40, 167, 69, 0.2); color: var(--success-color); border-left: 3px solid var(--success-color); padding: 10px; }
.test-error { background: rgba(220, 53, 69, 0.2); color: var(--error-color); border-left: 3px solid var(--error-color); padding: 10px; }

/* --- Authentication Styles --- */
.auth-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 500px;
}

.auth-card h1 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--heading-color);
    font-size: 1.8rem;
}

.auth-form {
    margin-bottom: 30px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--heading-color);
    font-weight: 500;
}

.auth-form small {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.control-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.control-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
}

.control-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.auth-btn {
    width: 100%;
    margin-top: 10px;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links p {
    margin: 10px 0;
    color: var(--text-color);
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

.security-section {
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.security-section h3 {
    margin: 0 0 15px 0;
    color: var(--heading-color);
    font-size: 1.2rem;
}

.security-section p {
    margin: 0 0 20px 0;
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Alert Messages */
.alert {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
}

.alert-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #f5c6cb;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #d4edda;
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    border: 1px solid rgba(23, 162, 184, 0.3);
    color: #bee5eb;
}

/* User Info Section */
.user-info {
    text-align: center;
    margin-bottom: 30px;
}

.user-info h1 {
    color: var(--heading-color);
    margin-bottom: 10px;
}

.user-info p {
    color: var(--text-color);
    font-size: 1.1rem;
}

/* API Key Display */
.api-key-display {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin-right: 10px;
}

.copy-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.3s ease;
}

.copy-btn:hover {
    background: #3a7bd5;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 5px;
}

.btn-small {
    padding: 5px 8px;
    font-size: 0.8rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

/* Admin Container */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-success {
    background: #28a745;
}

.toast-error {
    background: #dc3545;
}

.toast-info {
    background: #17a2b8;
}

/* --- Custom Select Dropdown Styling for Dark Mode --- */
select,
.control-input[type="select"] {
    background: var(--card-bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 1em;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.3s;
}

select:focus {
    border-color: var(--primary-color);
    outline: none;
}

option {
    background: var(--card-bg-color);
    color: var(--text-color);
}

/* For Firefox: force option background on focus/hover */
select option:checked, select option:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Responsive Design for Auth */
@media (max-width: 768px) {
    .auth-container {
        padding: 20px 15px;
    }
    
    .auth-card {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .admin-container {
        padding: 20px 15px;
    }
    
    .comparison-table-wrapper {
        overflow-x: auto;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 3px;
    }
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .main-header { padding: 1rem 5%; }
    .main-header nav { display: none; }
    .step { flex-direction: column; align-items: center; text-align: center; }
    .dropdown-content { right: 0; left: auto; min-width: 180px; }
    .andy-title { font-size: 2rem; flex-direction: column; gap: 10px; }
    .andy-container { padding: 15px; }
    .chat-controls { grid-template-columns: 1fr; }
    .chat-input-area { flex-direction: column; gap: 10px; }
    .message { max-width: 95%; }
}