/* Global Styles */
:root {
    --primary-gradient-1: #a3f5c4;
    --primary-gradient-2: #000000;
    --primary-gradient-3: #4285f4;
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #161616;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #707070;
    --border-color: #2a2a2a;
    --accent: #4285f4;
    --success: #a3f5c4;
    --warning: #ffa726;
    --danger: #ef5350;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 12vh;
    min-height: 100px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.4), inset 0 10px 20px rgba(0, 0, 0, 0.3);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(
        135deg,
        var(--primary-gradient-1) 0%,
        var(--primary-gradient-1) 40%,
        var(--primary-gradient-2) 47%,
        var(--primary-gradient-2) 53%,
        var(--primary-gradient-3) 60%,
        var(--primary-gradient-3) 100%
    );
    background-size: 120% 120%;
    animation: borderShift 20s ease-in-out infinite;
    z-index: 2;
}

.hero-gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        135deg,
        var(--primary-gradient-1) 0%,
        var(--primary-gradient-1) 40%,
        var(--primary-gradient-2) 47%,
        var(--primary-gradient-2) 53%,
        var(--primary-gradient-3) 60%,
        var(--primary-gradient-3) 100%
    );
    background-size: 120% 120%;
    animation: gradientShift 20s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes gradientShift {
    0% { background-position: 40% 50%; }
    50% { background-position: 60% 50%; }
    100% { background-position: 40% 50%; }
}

@keyframes borderShift {
    0% { background-position: 40% 50%; }
    50% { background-position: 60% 50%; }
    100% { background-position: 40% 50%; }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-top:-50px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-top: 30px;

}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 90px;
}

@keyframes shimmer {
    0% {
        filter: brightness(1) saturate(1);
    }
    50% {
        filter: brightness(1.3) saturate(1.4) drop-shadow(0 0 8px rgba(163, 245, 196, 0.4));
    }
    100% {
        filter: brightness(1) saturate(1);
    }
}

.logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    filter: drop-shadow(0 12px 35px rgba(0, 0, 0, 0.8)) drop-shadow(0 4px 15px rgba(0, 0, 0, 0.6)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

.logo:hover {
    animation: shimmer 1.5s ease-in-out infinite;
}

.logo-fallback {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}

@keyframes text-shimmer {
    0% {
        background-position: -75% center;
    }
    100% {
        background-position: 75% center;
    }
}

.tagline {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
    letter-spacing: 0.05em;
    margin-top: -20px;
    overflow: hidden;
}

.tagline::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        transparent 75%,
        rgba(163, 245, 196, 0.9) 70%,
        rgba(109, 171, 230, 0.9) 100%,
        transparent 55%,
        transparent 100%
    );
    background-size: 700% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shimmer 10s linear infinite reverse;
}

/* Main Content */
.main-content {
    padding: 1rem;
    height: calc(100vh - 12vh);
    display: flex;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    height: 100%;
    width: 100%;
    align-items: start;
}

/* Dynamic grid rows when camera is active */
.container.camera-active {
    grid-template-rows: auto auto;
    align-items: stretch;
}

.container.camera-active.camera-expanded {
    grid-template-rows: auto auto;
    align-items: stretch;
}

.column {
    height: 100%;
    min-height: 0;
}

.card {
    background: var(--bg-card);
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.scanned-column .card {
    border-color: rgba(163, 245, 196, 0.3);
    box-shadow: var(--shadow), 0 0 0 1px rgba(163, 245, 196, 0.1);
}

.queued-column .card {
    border-color: rgba(66, 133, 244, 0.3);
    box-shadow: var(--shadow), 0 0 0 1px rgba(66, 133, 244, 0.1);
}

.card-header {
    background: var(--bg-secondary);
    padding: .5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 101px;
}

.card-header.sticky {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.counter {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    min-width: 116px;
}

.counter-green {
    color: var(--primary-gradient-1);
    border-color: rgba(163, 245, 196, 0.3);
    background: rgba(163, 245, 196, 0.1);
}

.counter-blue {
    color: var(--primary-gradient-3);
    border-color: rgba(66, 133, 244, 0.3);
    background: rgba(66, 133, 244, 0.1);
}

.counter-group {
    display: flex;
    gap: 0.75rem;
}

.card-content {
    padding: .5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Instruction Callout */
.instruction-callout {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1), rgba(163, 245, 196, 0.1));
    border: 1px solid rgba(66, 133, 244, 0.3);
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.arrow-pointer {
    flex-shrink: 0;
}

.arrow-svg {
    color: var(--accent);
    animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

.instruction-callout p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Input Groups */
.input-group {
    margin-bottom: 1.5rem;
    position: relative;
}

/* Filter and Sort Group */
.filter-sort-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.filter-sort-group .filter-input {
    flex: 1;
}

.scan-input,
.filter-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.scan-input:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.input-hint {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

/* Lists */
.list-container {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.scanned-list,
.queued-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.list-item {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    animation: slideIn 0.3s ease;
}

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

.list-item:hover {
    background: rgba(66, 133, 244, 0.1);
   
}

.list-item.selected {
    background: rgba(66, 133, 244, 0.2);
    border: 1px solid var(--accent);
}

.list-item-index {
    color: var(--text-muted);
    font-size: 0.85rem;
    min-width: 30px;
}

.list-item-sku {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
}

.list-item-name {
    flex: 1;
    color: var(--text-primary);
    font-weight: 500;
}

.list-item-sku-muted {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.list-item-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-input {
    width: 60px;
    padding: 0.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    text-align: center;
    transition: var(--transition);
    appearance: textfield;
    -moz-appearance: textfield;
}

.qty-input:focus {
    outline: none;
    border-color: var(--accent);
}

.qty-input[readonly] {
    background: var(--bg-secondary);
    opacity: 0.7;
    cursor: not-allowed;
}

/* Hide default number input arrows */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.qty-btn {
    width: 24px;
    height: 24px;
    background: transparent;
    border: 1px solid var(--primary-gradient-3);
    border-radius: var(--radius-sm);
    color: var(--primary-gradient-3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    transition: var(--transition);
}

.qty-btn:hover {
    box-shadow: 0 0 8px rgba(66, 133, 244, 0.6);
}

.qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    box-shadow: none;
}

.list-item-actions {
    display: flex;
    gap: 0.5rem;
}

/* Buttons */
.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Copy button specific hover (distinguish by SVG content - copy icon has rect element) */
.btn-icon:hover:has(svg rect) {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.btn-icon svg {
    width: 16px;
    height: 16px;
}

.btn-clear,
.btn-export,
.btn-clear-qty {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-clear:hover,
.btn-clear-qty:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

.btn-export:hover {
    background: linear-gradient(45deg, #10b981, #3b82f6);
    border-color: #10b981;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    animation: exportPulse 2s infinite;
}

@keyframes exportPulse {
    0% {
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    }
    100% {
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }
}

.btn-clear {
    margin-top:42px;
}

/* Sort Dropdown */
.sort-dropdown {
    position: relative;
}

.btn-sort {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
    padding: 1.1rem;
}

.btn-sort:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    color: var(--text-primary);
}

.sort-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    min-width: 180px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.sort-menu.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

.sort-option {
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    text-align: left;
}

.sort-option:hover {
    background: rgba(66, 133, 244, 0.1);
    color: var(--text-primary);
}

.sort-option.active {
    background: rgba(66, 133, 244, 0.15);
    color: var(--accent);
}

/* Header Controls */
.header-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
}

/* Toggle Switch */
.mode-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toggle-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    border-radius: 34px;
    transition: var(--transition);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #10b981;
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
    background: rgba(66, 133, 244, 0.2);
    border-color: var(--accent);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
    background: var(--accent);
}

/* Camera Scan */
.camera-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.btn-camera {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    flex: 1;
}

.btn-camera:hover {
    background: rgba(66, 133, 244, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-icon {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.btn-icon:hover {
    background: rgba(66, 133, 244, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-icon.active {
    background: rgba(66, 133, 244, 0.2);
    border-color: var(--accent);
    color: var(--accent);
}

.camera-preview {
    width: 100%;
    max-height: 300px;
    height: 300px;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    display: none;
    object-fit: cover;
    transition: all 0.3s ease;
}

.camera-preview.expanded {
    max-height: 60vh;
    height: 60vh;
}

/* Scan cooldown indicator */
.scan-cooldown {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.scan-cooldown.active {
    display: flex;
}

.cooldown-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear;
}

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

/* Progressive expansion of scanned section */
.scanned-column .card {
    transition: height 0.3s ease;
}

/* Push queued section down when camera is active */
.container.camera-active .queued-column {
    margin-top: 35vh;
    transition: margin-top 0.3s ease;
}

.container.camera-active.camera-expanded .queued-column {
    margin-top: 70vh;
}

/* 35% taller when camera is active */
.scanned-column.camera-active .card {
    height: calc(100% + 35vh);
}

/* Additional 35% when camera is expanded (total 70% taller) */
.scanned-column.camera-active.camera-expanded .card {
    height: calc(100% + 70vh);
}

@media (max-width: 768px) {
    .container.camera-active .queued-column {
        margin-top: 40vh;
    }
    
    .container.camera-active.camera-expanded .queued-column {
        margin-top: 80vh;
    }
    
    .scanned-column.camera-active .card {
        height: calc(100% + 40vh);
    }
    
    .scanned-column.camera-active.camera-expanded .card {
        height: calc(100% + 80vh);
    }
}

/* Export Actions */
.export-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInRight 0.3s ease;
}

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

.toast.success {
    border-color: var(--success);
}

.toast.warning {
    border-color: var(--warning);
}

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

/* Unknown Product Badge */
.unknown-badge {
    background: rgba(255, 167, 38, 0.1);
    color: var(--warning);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    border: 1px solid rgba(255, 167, 38, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        display: flex;
        flex-direction: column;
        height: calc(100vh - 12vh);
        width: 100%;
        max-width: 100%;
    }
    
    .column {
        width: 100%;
        max-width: 100%;
    }
    
    .logo-container {
        gap: 1.5rem;
    }
    
    .logo-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .column {
        flex: 0 0 auto;
        min-height: calc(100vh - 20vh);
    }
    
    .hero {
        height: 20vh;
        min-height: 150px;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .card-header {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }

    .card-header .header-left {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .card-header .counter-group,
    .card-header .counter,
    .card-header .btn-clear,
    .card-header .btn-clear-qty,
    .card-header .toggle-switch {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    /* Counters shrink to content */
    .header-left {
        align-items: flex-start;
    }

    .header-left .counter {
        align-self: flex-start;
    }

    /* Add spacing between cards to avoid overlap */
    .column + .column {
        margin-top: 1rem;
    }
    
    .mode-toggle {
        justify-content: center;
    }

    /* Mobile card sizing & lists */
    .card {
        height: 100%;
    }

    .card-content {
        flex: 1;
    }

    .list-container {
        max-height: 100%;
        min-height: 40vh;
    }

    /* Stack filter and sort controls */
    .filter-sort-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .filter-sort-group .filter-input,
    .filter-sort-group .btn-sort {
        width: 100%;
    }
}

@media (max-width: 425px) {
    .column {
        flex: 0 0 auto;
        min-height: calc(100vh - 14vh);
    }
    /* Smaller hero */
    .hero {
        height: 14vh;
        min-height: 110px;
    }

    /* Container height matches hero change */
    .container {
        height: calc(100vh - 14vh);
    }

    /* Logo sizing */
    .logo-wrapper {
        width: 80px;
        height: 80px;
    }

    /* Tagline & counters */
    .tagline {
        font-size: 0.9rem;
    }

    .counter {
        min-width: auto;
        padding: 0.25rem 0.5rem;
    }

    .counter-group {
        gap: 0.5rem;
    }

    .card-header h2 {
        font-size: 1.1rem;
    }

    /* Allow header items to wrap */
    .card-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* Ensure export button visible */
    .list-container {
        min-height: 0;
    }

    .card {
        overflow: visible;
    }

    .export-actions {
        padding-bottom: 1rem;
    }

    /* Buttons shrink */
    .btn-clear,
    .btn-clear-qty,
    .btn-export,
    .btn-sort {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* Accessibility */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
