/* style.css - Minimalist, Light, and Playful Design System for Logic Grid Duels */

:root {
    --bg-primary: #faf9f6;
    --bg-secondary: rgba(255, 255, 255, 0.65);
    --primary: #54a0ff;      /* Sky Blue */
    --secondary: #2ecc71;    /* Emerald Green */
    --purple: #9b5de5;       /* Violet */
    --accent: #f1c40f;       /* Gold */
    --danger: #e74c3c;       /* Red */
    --text-main: #2c3e50;
    --text-muted: #7f8c8d;
    --panel-border: rgba(44, 62, 80, 0.12);
    --panel-bg: rgba(255, 255, 255, 0.65);
    
    --primary-gradient: linear-gradient(135deg, #a3c4f3 0%, #c8b6ff 100%);
    --secondary-gradient: linear-gradient(135deg, #b9fbc0 0%, #a3c4f3 100%);
}

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

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 999;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Beautiful Animated Background Grid */
.app-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 10% 20%, rgba(163, 196, 243, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(200, 182, 255, 0.25) 0%, transparent 40%),
        url('../../../assets/bg-abstract.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--panel-bg);
    border: 2px solid var(--panel-border);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    margin-bottom: 25px;
}

header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-icon {
    font-size: 2.2rem;
}

.elo-badge {
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--panel-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    display: flex;
    gap: 6px;
    font-weight: 700;
}

.elo-badge strong {
    color: var(--primary);
}

/* Screens Wrapper */
main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.screen-panel {
    padding: 40px;
    text-align: center;
    max-width: 650px;
    margin: 50px auto;
    width: 100%;
}

.screen-panel h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Forms */
.setup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 35px;
    text-align: left;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
}

.form-input {
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--panel-border);
    color: var(--text-main);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
    transition: all 0.3s ease;
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(84, 160, 255, 0.25);
}

.code-input {
    font-size: 2.2rem;
    text-align: center;
    letter-spacing: 6px;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    max-width: 250px;
    margin-bottom: 30px;
    text-transform: uppercase;
    border-radius: 16px;
}

.form-group-center {
    display: flex;
    justify-content: center;
}

/* Buttons */
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #2c3e50;
    border: 2px solid rgba(0,0,0,0.03);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(163, 196, 243, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.55);
    border: 2px solid var(--panel-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-main);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: var(--primary);
}

.btn-glow-green:hover {
    box-shadow: 0 8px 20px rgba(185, 251, 192, 0.6);
    background: var(--secondary-gradient);
}

.btn-glow-cyan:hover {
    box-shadow: 0 8px 20px rgba(163, 196, 243, 0.5);
}

.btn-glow-purple:hover {
    box-shadow: 0 8px 20px rgba(200, 182, 255, 0.6);
    background: linear-gradient(135deg, #c8b6ff 0%, #f1c0e8 100%);
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-actions {
    margin-top: 30px;
    font-size: 0.9rem;
}

.btn-link {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

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

.btn-danger-link:hover {
    color: var(--danger);
}

/* Lobby Waiting */
.lobby-code-box {
    background: rgba(84, 160, 255, 0.1);
    border: 2px dashed var(--primary);
    border-radius: 16px;
    padding: 15px 30px;
    font-size: 3rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    display: inline-block;
    letter-spacing: 4px;
    margin: 20px 0 35px 0;
    box-shadow: 0 4px 10px rgba(84, 160, 255, 0.05);
}

.spinner-container {
    margin: 30px 0;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    margin: 0 auto 15px auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* GAME LAYOUT (Three columns) */
.game-layout {
    display: grid;
    grid-template-columns: 320px 1fr 280px;
    gap: 20px;
    flex-grow: 1;
    min-height: 500px;
}

.sidebar-left, .sidebar-right {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.board-center {
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

/* Left Sidebar Clues styling */
.sidebar-header {
    border-bottom: 2px dashed rgba(0,0,0,0.06);
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.sidebar-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.riddle-container {
    flex-grow: 1;
    overflow-y: auto;
    max-height: 400px;
    margin-bottom: 15px;
    padding-right: 8px;
}

#riddle-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.riddle-intro {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 15px;
}

.clues-ordered-list {
    padding-left: 18px;
}

.clues-ordered-list li {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 12px;
    color: var(--text-main);
}

.hint-helper-box {
    border-top: 2px dashed rgba(0,0,0,0.06);
    padding-top: 15px;
}

.btn-small {
    padding: 10px 18px;
    font-size: 0.85rem;
    width: 100%;
}

.hint-response-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.4;
    min-height: 40px;
}

/* Right Sidebar Status styling */
.status-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.status-item {
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--panel-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 14px;
    padding: 12px;
    text-align: center;
}

.status-item .label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.status-item strong {
    font-size: 1.3rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
}

.error-badge {
    color: var(--danger);
}

.progress-section {
    margin-bottom: 20px;
}

.progress-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.progress-bar-wrapper {
    background: #f1f2f6;
    border: 2px solid var(--panel-border);
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    transition: width 0.4s cubic-bezier(0.1, 0.8, 0.25, 1);
}

.fill-player {
    background: linear-gradient(90deg, var(--secondary) 0%, #34d399 100%);
}

.fill-opponent {
    background: linear-gradient(90deg, var(--primary) 0%, var(--purple) 100%);
}

.progress-value {
    display: block;
    font-size: 0.85rem;
    text-align: right;
    margin-top: 4px;
    font-weight: 800;
    color: var(--text-main);
}

.opponent-section {
    flex-grow: 1;
}

.opponent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0 10px 0;
}

.opponent-header h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
}

.mp-badge {
    background: var(--primary);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.opponent-stats {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.opponent-stats strong {
    color: var(--danger);
}

.separator {
    border: 0;
    border-top: 2px dashed rgba(0,0,0,0.06);
    margin: 20px 0;
}

.game-actions {
    margin-top: auto;
}

.btn-danger-action {
    background: rgba(239, 68, 68, 0.06);
    border: 2px solid rgba(239, 68, 68, 0.12);
    color: var(--danger);
    width: 100%;
    text-decoration: none;
    border-radius: 12px;
}

.btn-danger-action:hover {
    background: var(--danger);
    color: #fff;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2);
}

/* GRID TABLE STRUCTURE */
.grid-table-scroll {
    max-width: 100%;
    max-height: 100%;
}

.logic-grid-table {
    border-collapse: collapse;
    margin: 0 auto;
    font-size: 0.9rem;
}

/* Row elements headers */
.row-category-header-cell {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: center;
    font-weight: 800;
    background: rgba(241, 242, 246, 0.65);
    border: 2px solid var(--panel-border);
    padding: 10px 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.row-item-header-cell {
    background: rgba(255, 255, 255, 0.55);
    border: 2px solid var(--panel-border);
    padding: 10px 14px;
    text-align: right;
    font-weight: 600;
    min-width: 130px;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Column categories headers */
.col-category-header {
    border: 2px solid var(--panel-border);
    background: rgba(241, 242, 246, 0.65);
    padding: 8px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.col-item-header {
    height: 130px;
    vertical-align: bottom;
    padding: 8px 2px;
    position: relative;
    min-width: 38px;
    max-width: 44px;
    border: 2px solid var(--panel-border);
    background: rgba(255, 255, 255, 0.55);
}

.rotated-header-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 auto;
    padding-bottom: 5px;
}

/* Grid cell active and interactive styling */
.grid-cell {
    width: 38px;
    height: 38px;
    border: 2px solid var(--panel-border);
    text-align: center;
    vertical-align: middle;
    padding: 0;
    position: relative;
    background: rgba(255, 255, 255, 0.45);
}

.active-cell {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.45);
    transition: all 0.25s ease;
}

.active-cell:hover {
    background-color: rgba(84, 160, 255, 0.15);
}

.cell-content {
    font-size: 1.15rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Sub-gitter cell states */
.grid-cell.state-x {
    color: var(--danger);
}

.grid-cell.state-check {
    background: rgba(46, 204, 113, 0.12);
    color: var(--secondary);
}

/* Disabled Cells (Identity Diagonal or Redundant grids) */
.disabled-cell {
    background: repeating-linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.02),
        rgba(0, 0, 0, 0.02) 8px,
        rgba(0, 0, 0, 0.05) 8px,
        rgba(0, 0, 0, 0.05) 16px
    );
    cursor: not-allowed;
}

/* Highlights and Shakes */
.highlight-hint {
    animation: pulse-glow 1.5s infinite ease-in-out;
    border: 2px solid var(--purple) !important;
    z-index: 10;
}

@keyframes pulse-glow {
    0%, 100% {
        background-color: rgba(155, 93, 229, 0.05);
    }
    50% {
        background-color: rgba(155, 93, 229, 0.2);
    }
}

.hint-response-text.pulse-highlight {
    animation: text-glow 2s ease;
}

@keyframes text-glow {
    0% {
        color: var(--purple);
    }
    100% {
        color: var(--text-muted);
    }
}

/* Error shaker */
.error-pulse {
    animation: shake-error 0.5s cubic-bezier(.36,.07,.19,.97) both;
    border: 2px solid var(--danger) !important;
    z-index: 10;
}

@keyframes shake-error {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-3px, 0, 0); }
    40%, 60% { transform: translate3d(3px, 0, 0); }
    0%, 100% {
        background-color: rgba(239, 68, 68, 0.15);
        color: var(--danger);
    }
}

/* MODAL WINDOWS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.4);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-overlay:not(.hidden) {
    animation: modal-fade-in 0.3s ease forwards;
}

.modal-card {
    padding: 35px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    border-radius: 28px;
}

.modal-overlay:not(.hidden) .modal-card {
    animation: modal-scale-up 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modal-scale-up {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-card h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--primary);
}

.modal-details {
    margin: 20px 0 30px 0;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-details p {
    margin-bottom: 10px;
}

/* Utility visibility class */
.hidden {
    display: none !important;
}

/* Drawer Backdrop */
.drawer-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 199;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.drawer-backdrop.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* Base states for mobile/drawer elements (hidden on desktop) */
.toggle-clues-wrapper {
    display: none;
}

.close-drawer-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
}

.close-drawer-btn:hover {
    color: var(--danger);
    transform: scale(1.1);
}

/* Responsive adjustment */
@media (max-width: 1024px) {
    .game-layout {
        display: flex;
        flex-direction: column;
        gap: 15px;
        min-height: auto;
    }

    /* Reposition sidebar-right to be a top horizontal status bar */
    .sidebar-right {
        order: 1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 15px;
        padding: 12px 20px;
        max-height: none !important;
        width: 100%;
        margin-bottom: 0;
        border-radius: 20px;
    }

    .toggle-clues-wrapper {
        display: block;
    }

    .sidebar-right .status-block {
        display: flex;
        gap: 10px;
        margin-bottom: 0;
        align-items: center;
    }

    .sidebar-right .status-item {
        padding: 6px 12px;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .sidebar-right .status-item .label {
        margin-bottom: 0;
        display: inline;
    }

    .sidebar-right .status-item strong {
        font-size: 1.1rem;
    }

    .sidebar-right .progress-section {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 0;
        flex-grow: 1;
        max-width: 260px;
    }

    .sidebar-right .progress-label {
        margin-bottom: 0;
        white-space: nowrap;
        font-size: 0.75rem;
    }

    .sidebar-right .progress-bar-wrapper {
        flex-grow: 1;
        height: 10px;
        margin: 0;
    }

    .sidebar-right .progress-value {
        margin-top: 0;
        font-size: 0.75rem;
    }

    .sidebar-right .opponent-section {
        display: flex;
        align-items: center;
        gap: 10px;
        width: auto;
        border-top: none;
        padding-top: 0;
        margin-top: 0;
        flex-grow: 1;
        max-width: 260px;
    }

    .sidebar-right .opponent-section #opponent-progress-container {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 0;
        flex-grow: 1;
    }

    .sidebar-right .separator {
        display: none;
    }

    .sidebar-right .opponent-header {
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .sidebar-right .opponent-header h4 {
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .sidebar-right .opponent-stats {
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .sidebar-right .game-actions {
        margin-top: 0;
        margin-left: auto;
    }

    .sidebar-right .btn-danger-action {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    /* Reposition sidebar-left to be a slide-in drawer */
    .sidebar-left {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(340px, 85vw);
        height: 100vh;
        z-index: 200;
        border-radius: 0 20px 20px 0;
        border-left: none;
        border-top: none;
        border-bottom: none;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.05);
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        max-height: none !important;
        display: flex;
        flex-direction: column;
    }

    .sidebar-left.open {
        transform: translateX(0);
    }

    .sidebar-left .sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .sidebar-left .close-drawer-btn {
        display: block;
    }

    .sidebar-left .riddle-container {
        max-height: none;
        flex-grow: 1;
        overflow-y: auto;
    }

    /* Style the Board in Mobile Mode */
    .board-center {
        order: 2;
        padding: 15px;
        width: 100%;
        overflow: auto;
    }

    .col-item-header {
        height: 100px;
        min-width: 32px;
    }
}

/* Micro-adjustments for very small smartphone screens */
@media (max-width: 600px) {
    .sidebar-right {
        padding: 10px;
        gap: 8px;
        justify-content: center;
    }

    .sidebar-right .progress-section,
    .sidebar-right .opponent-section {
        max-width: none;
        flex-grow: 0;
    }

    .sidebar-right .progress-bar-wrapper {
        display: none;
    }

    .sidebar-right .progress-label {
        font-size: 0.7rem;
    }

    .sidebar-right .opponent-header span.mp-badge {
        display: none;
    }
    
    .sidebar-right .game-actions {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
}

/* Mode Selector & Board Wrapper Styles */
.board-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.grid-mode-selector {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px;
    border-radius: 30px;
    border: 2px solid var(--panel-border);
}

.mode-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.mode-btn:hover {
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.02);
}

.mode-btn.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(84, 160, 255, 0.3);
}
