@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800;900&display=swap');

:root {
    /* Base Colors */
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    
    /* Borders */
    --border-primary: #334155;
    --border-secondary: #475569;
    
    /* Typography */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Brand & Status Colors */
    --color-primary: #3b82f6;
    --color-primary-hover: #2563eb;
    --color-success: #4caf50;
    --color-warning: #ff9800;
    --color-danger: #f87171;
}

/* =========================================
   BASE & LAYOUT
   ========================================= */
body {
    background-color: var(--bg-main); 
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#app-container {
    display: flex;
    gap: 40px;
    max-width: 1400px; 
    margin: 30px auto 0;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    align-items: stretch;
}

#left-column {
    flex: 1; 
    min-width: 0; 
    position: relative; 
}

#right-column {
    width: 500px; 
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

h1 { 
    margin: 0; 
    font-size: 2rem; 
    color: var(--text-main); 
}

/* =========================================
   GLOBAL COMPONENTS
   ========================================= */
.btn {
    padding: 16px 24px;
    font-size: 1.1rem;
    border-radius: 12px;
    border: none;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.btn:active { transform: scale(0.98); }

.btn-primary { 
    background-color: var(--color-primary); 
    color: white; 
}

.btn-primary:hover { 
    background-color: var(--color-primary-hover); 
}

.btn-secondary { 
    background-color: var(--border-primary); 
    color: white; 
    border: 1px solid var(--border-secondary);
}

.btn-secondary:hover { 
    background-color: var(--border-secondary); 
}

/* Badges */
.meta-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    margin-left: 8px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    vertical-align: middle;
}

.meta-green { background-color: var(--color-success); }
.meta-gray  { background-color: var(--border-secondary); }

/* =========================================
   VIEW MANAGEMENT (Start Screen vs Game)
   ========================================= */
.view-hidden {
    display: none !important;
}

.view-active {
    display: flex; 
}

/* Override app-container to ensure it stays a flex row when active */
#game-interface.view-active #app-container {
    display: flex;
}

#start-screen, #daily-screen {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Takes up the full height minus your 60px navbar */
    min-height: calc(100vh - 60px); 
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    animation: fadeIn 0.3s ease;
}

.mode-title {
    font-size: 3.5rem;
    color: var(--text-main);
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.mode-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.start-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

#start-game-btn {
    font-size: 1.3rem;
    padding: 16px 40px;
}

/* =========================================
   NAVIGATION BAR
   ========================================= */
.global-navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--bg-card);
    padding: 0 20px;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-sizing: border-box;
}

.nav-left, 
.nav-links {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links { gap: 20px; }

.nav-link .lucide {
    width: 18px;
    height: 18px;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 900;
    color: white;
    margin-right: 40px;
    letter-spacing: 1px;
}

.logo-placeholder {
    background: linear-gradient(45deg, var(--color-primary), #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    height: 100%;
    padding: 0 10px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.nav-link:hover { color: white; }

.nav-link.active {
    color: var(--color-primary);
    border-bottom: 3px solid var(--color-primary);
}

.nav-icon-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.nav-icon-btn:hover {
    color: white;
    background: var(--bg-card);
}

.nav-icon-btn svg { transition: transform 0.2s ease; }
.nav-icon-btn:hover svg { transform: rotate(90deg); }

/* =========================================
   GAME HEADER & SUBTLE BUTTONS
   ========================================= */
.btn-subtle {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0;
    transition: color 0.2s;
}

.btn-subtle .lucide {
    height: 20px;
    width: 20px;
}

.btn-subtle:hover {
    color: white;
}

/* =========================================
   PROFILE ACTIONS & LOSS STATE
   ========================================= */
.profile-actions {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Switches when loss */
.profile-card.is-loss {
    border: 3px solid var(--color-danger);
    background-color: rgba(248, 113, 113, 0.05); /* Red tint */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-card h2.loss-title,
.profile-card h3.loss-title {
    color: var(--color-danger);
}

/* =========================================
   GUESS AREA & AUTOCOMPLETE
   ========================================= */
   .guess-container-card {
    background-color: var(--bg-card);
    border: 2px solid var(--border-primary);
    border-radius: 16px;
    padding: 20px 20px 0 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: absolute;
    inset: 0; 
    display: flex;
    flex-direction: column;
}

.board-header {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

#guess-area {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-shrink: 0;
}

#guess-history {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 10px; 
    margin-right: -10px; 
    padding-bottom: 20px;
}

/* Custom Scrollbar for the Guess History */
#guess-history::-webkit-scrollbar { width: 8px; }
#guess-history::-webkit-scrollbar-track { background: transparent; }
#guess-history::-webkit-scrollbar-thumb { background: var(--border-secondary); border-radius: 8px; }
#guess-history::-webkit-scrollbar-thumb:hover { background: #64748b; }

.autocomplete-wrapper {
    position: relative;
    width: 100%; 
}

#guess-input {
    width: 100%; 
    box-sizing: border-box; 
    padding: 16px 20px;
    font-size: 1.2rem;
    border-radius: 12px;
    border: 2px solid var(--border-secondary);
    background-color: var(--bg-main);
    color: white;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

#guess-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.autocomplete-items {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    margin: 8px 0 0 0;
    padding: 0;
    list-style: none;
    background-color: var(--bg-card); 
    border: 1px solid var(--border-secondary);
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    display: none; 
    overflow: hidden;
}

.autocomplete-items li {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-primary);
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background-color 0.1s;
}

.autocomplete-items li:last-child { border-bottom: none; }

.autocomplete-items li:hover, 
.autocomplete-active {
    background-color: var(--color-primary); 
    color: white;
}

.autocomplete-thumb {
    width: 32px;
    height: 32px;
    object-fit: contain;
    image-rendering: pixelated;
}

/* =========================================
   GUESS HISTORY CARDS
   ========================================= */
.guess-row {
    background-color: var(--bg-card);
    padding: 16px;
    border: 2px solid var(--border-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: border-color 0.2s, background-color 0.2s;
}

.winning-row {
    border: 2px solid var(--color-success) !important;
    background-color: rgba(76, 175, 80, 0.08) !important;
}

.guess-image-container {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.guess-image {
    height: 90%;
    width: 90%;
    object-fit: contain;
    filter: drop-shadow(0px 2.5px 2px rgba(0,0,0,0.4));
    image-rendering: pixelated;
}

.guess-data { flex-grow: 1; }

.guess-header {
    display: flex;
    align-items: center;
    font-size: 1.3em;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--border-primary);
    padding-bottom: 8px;
    color: var(--text-main); 
}

.guess-columns {
    display: flex;
    gap: 20px;
}

.guess-col { flex: 1; }

.guess-col-title {
    font-size: 0.85em;
    color: var(--text-muted); 
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 800;
}

.gen-arrow {
    height: 18px;
    width: 18px;
    margin-left: 4px;
    vertical-align: text-bottom;
}

/* =========================================
   MYSTERY PROFILE
   ========================================= */
.profile-card {
    background-color: var(--bg-card);
    border: 2px solid var(--border-primary);
    border-radius: 16px;
    padding: 15px 20px;
    text-align: center;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.profile-card.is-win {
    border: 3px solid var(--color-success);
    background-color: rgba(76, 175, 80, 0.05); 
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-image-container {
    width: 110px;
    height: 110px;
    min-height: 100px;
    margin: 0 auto 10px;
    background-color: var(--bg-main);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid var(--border-primary);
    overflow: hidden;
}

.profile-card.is-win .profile-image-container,
.profile-card.is-loss .profile-image-container {
    border-radius: 0%;
    background-color: transparent;
    border: none;
}

.profile-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0px 5px 4px rgba(0,0,0,0.4));
}

.profile-image-placeholder {
    font-size: 3.5rem;
    color: var(--border-secondary);
    font-weight: 900;
}

.profile-card h2 {
    margin: 0 0 5px 0;
    font-size: 1.5rem;
    color: var(--text-main);
}

.profile-card h2.win-title,
.profile-card h3.win-title {
    color: var(--color-success);
}

.profile-card h3 {
    margin: 0 0 5px 0;
    font-size: 1.6rem;
    color: var(--text-main);
}

.profile-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
}

@keyframes popIn {
    0% { transform: scale(0.95); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* =========================================
   DEFENSES & METADATA TRACKER
   ========================================= */
.meta-tracker {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    background-color: var(--bg-card);
    padding: 12px 20px;
    border-radius: 12px;
    border: 2px solid var(--border-primary);
    justify-content: space-around;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.meta-tracker-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.85em;
    color: var(--text-muted);
    font-weight: 800;
    text-transform: uppercase;
}

.meta-tracker-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 6px 26px;
    border-radius: 20px;
    font-size: 1.25rem; 
    font-weight: 800;
    color: white;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.pill-unknown { background-color: var(--border-secondary); }
.pill-found {
    background-color: var(--color-success); 
    box-shadow: 0 0 12px rgba(76, 175, 80, 0.3); 
}

.defenses-card {
    background-color: var(--bg-card);
    border: 2px solid var(--border-primary);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.defenses-card h3 {
    margin: 0 0 15px 0;
    color: var(--text-muted);
    font-size: 1.1rem;
    text-align: center;
}

/* =========================================
   MASTER TABLE GRID
   ========================================= */
.master-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 4px;
    max-width: 100%;
}

.master-cell {
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    overflow: hidden;
    box-sizing: border-box;
}

.master-label {
    font-weight: bold;
    font-size: 18px;
    text-align: center;
    padding: 4px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}

.master-value {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
    background-color: white;
    color: #333;
    height: 48px;
}

/* Discovery States */
.cell-unknown {
    opacity: 0.4;
    filter: grayscale(50%);
    transition: all 0.3s ease;
}

.cell-partial-known {
    opacity: 0.6;
    filter: grayscale(0%)
}

.cell-known {
    opacity: 1;
    filter: grayscale(0%);
}

/* Multiplier Backgrounds */
.bg-mult-4   { background-color: #3edf49; color: white; } 
.bg-mult-2   { background-color: #3a923d; color: white; } 
.bg-mult-1   { background-color: white; color: #333; }    
.bg-mult-05  { background-color: #b71c1c; color: white; } 
.bg-mult-025 { background-color: #751010; color: white; } 
.bg-mult-0   { background-color: #000000; color: white; } 
.bg-unknown  { background-color: #e0e0e0; color: #333; }  

/* Outline States */
.outline-yellow { 
    box-shadow: inset 0 0 0 3px var(--color-warning) !important; 
}
.outline-none { 
    border: 3px solid transparent !important; 
}

/* =========================================
   POKÉMON TYPES
   ========================================= */
.type-badge {
    display: inline-flex;
    align-items: stretch;
    margin: 3px;
    border-radius: 6px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
    overflow: hidden;
}

.badge-type-name { padding: 3px 6px; }

.badge-multiplier {
    padding: 3px 6px;
    background-color: rgba(0, 0, 0, 0.25);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    min-width: 24px;
}

.border-yellow { 
    /* Uses inset shadow so it doesn't break the badge size */
    box-shadow: inset 0 0 0 3px var(--color-warning) !important; 
    border-left: none !important; /* Removes the subtle inner divider */
}

.badge-gray {
    opacity: 0.35;
    filter: grayscale(50%);
    border-color: transparent !important;
}

.type-normal   { background-color: #A8A878; color: white; }
.type-fire     { background-color: #F08030; color: white; }
.type-water    { background-color: #6890F0; color: white; }
.type-electric { background-color: #F8D030; color: white; }
.type-grass    { background-color: #78C850; color: white; }
.type-ice      { background-color: #98D8D8; color: white; }
.type-fighting { background-color: #C03028; color: white; }
.type-poison   { background-color: #A040A0; color: white; }
.type-ground   { background-color: #E0C068; color: white; }
.type-flying   { background-color: #A890F0; color: white; }
.type-psychic  { background-color: #F85888; color: white; }
.type-bug      { background-color: #A8B820; color: white; }
.type-rock     { background-color: #B8A038; color: white; }
.type-ghost    { background-color: #705898; color: white; }
.type-dragon   { background-color: #7038F8; color: white; }
.type-dark     { background-color: #705848; color: white; }
.type-steel    { background-color: #B8B8D0; color: white; }
.type-fairy    { background-color: #EE99AC; color: white; }

/* =========================================
   MODALS & OVERLAYS
   ========================================= */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden { display: none; }

.modal-content {
    background: var(--bg-card);
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    color: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    min-height: 60vh;
    overflow: hidden;
    padding: 0;
}

/* Scrollbars */
.modal-content::-webkit-scrollbar,
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 8px;
}

.modal-content::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb {
    background: var(--border-secondary);
    border-radius: 8px;
}

.modal-content::-webkit-scrollbar-thumb:hover,
.modal-body::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

.modal-header {
    padding: 25px 30px 15px;
    border-bottom: 1px solid var(--border-primary);
    flex-shrink: 0;
}

.modal-header h2 { margin: 0 0 10px 0; }

.modal-body {
    padding: 15px 30px;
    overflow-y: auto;
    flex-grow: 1;
    min-height: 140px;
}

.modal-footer {
    padding: 20px 30px 25px;
    border-top: 1px solid var(--border-primary);
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 25px;
    border-top: 1px solid var(--border-primary);
    padding-top: 20px;
}

.cancel-btn {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-secondary);
}

.cancel-btn:hover {
    background-color: var(--border-primary);
    color: white;
}

.save-btn { background-color: var(--color-primary); color: white; }
.save-btn:hover { background-color: var(--color-primary-hover); }

/* =========================================
   SETTINGS & TOOLTIPS
   ========================================= */
.settings-warning {
    color: var(--color-warning);
    font-size: 0.9rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid var(--border-primary);
}

.setting-row:first-child {
    border-top: none;
}

#game-settings-btn {
    background: var(--border-primary);
    border: 1px solid var(--border-secondary);
    color: white; 
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
    height: 50px;
    width: 50px;
}

#game-settings-btn svg { transition: transform 0.2s ease; }
#game-settings-btn:hover { background: var(--border-secondary); }

.setting-label-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Tooltips */
.tooltip-container {
    position: relative;
    cursor: help;
    display: inline-flex;
}

.tooltip-container .lucide {
    height: 16px;
    width: 16px;
}

.info-icon {
    font-size: 1rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.tooltip-container:hover .info-icon { opacity: 1; }

.tooltip-text {
    visibility: hidden;
    opacity: 0;
    width: 250px;
    background-color: var(--border-primary);
    color: var(--text-main);
    text-align: left;
    padding: 10px;
    border-radius: 6px;
    position: absolute;
    z-index: 10;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%; 
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--border-primary) transparent transparent transparent;
}

.gen-setting-row .tooltip-text {
    top: 150%;
    bottom: auto;
}

.gen-setting-row .tooltip-text::after {
    bottom: 100%;
    top: auto;
    border-color: transparent transparent var(--border-primary) transparent;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tooltip-down .tooltip-text {
    top: 150%;
    bottom: auto;
}

.tooltip-down .tooltip-text::after {
    bottom: 100%;
    top: auto;
    border-color: transparent transparent var(--border-primary) transparent;
}

/* Toggle Switches */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.toggle-switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: var(--border-secondary);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .2s;
    border-radius: 50%;
}

input:checked + .slider { background-color: var(--color-success); }
input:checked + .slider:before { transform: translateX(22px); }

/* =========================================
   GENERATION TOGGLE GRID
   ========================================= */
.gen-setting-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: none;
    padding-top: 0;
    margin-bottom: 8px;
}

.gen-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    width: 100%;
    margin-top: 4px;
}

.gen-toggle, 
.gen-toggle-all {
    background: var(--border-primary);
    border: 2px solid var(--border-secondary);
    border-radius: 8px;
    cursor: pointer;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0 5px 0;
    transition: all 0.2s ease;
    overflow: hidden; 
    height: 65px;
    width: 65px;
    flex-shrink: 0; 
    box-sizing: border-box; 
}

.gen-toggle img, 
.gen-toggle-all img,
.gen-toggle canvas, 
.gen-toggle-all canvas {
    width: 36px;
    height: 36px; 
    object-fit: contain;
    margin: 0;
    padding: 0;
    padding-bottom: 2px;
    image-rendering: pixelated; 
    -webkit-user-drag: none;
    pointer-events: none;
    transition: scale 0.1s ease; 
}

.gen-toggle:hover img, 
.gen-toggle-all:hover img,
.gen-toggle:hover canvas, 
.gen-toggle-all:hover canvas {
    scale: 1.2; 
}

.gen-toggle span, 
.gen-toggle-all span {
    font-size: 0.75rem;
    font-weight: bold;
    line-height: 1;
    z-index: 2;
    pointer-events: none; 
    user-select: none;
}

.gen-toggle.disabled, 
.gen-toggle-all.disabled {
    background: transparent;
    border-color: transparent;
    border: 2px solid var(--border-secondary);
    opacity: 0.35; 
    filter: grayscale(100%); 
}

.gen-toggle.disabled:hover, 
.gen-toggle-all.disabled:hover {
    border-color: var(--color-primary);
}

#gen-filter-warning {
    margin-top: 15px;
    line-height: 1.4;
    font-size: 0.85rem;
}

#gen-filter-warning .lucide {
    width: 20px;
    height: 20px;
    flex-shrink: 0; 
    margin-top: 1px;
}

#gen-filter-warning.hidden {
    display: none;
}

/* END OF GENERATION FILTER WARNING */

/* =========================================
   COMING SOON BADGE
   ========================================= */
.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(59, 130, 246, 0.1); /* Soft primary color tint */
    color: var(--color-primary); /* Uses your root primary blue */
    border: 1px solid var(--color-primary);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}