:root {
    --bg: #0f172a;
    --glass: rgba(30, 41, 59, 0.75);
    --border: rgba(148, 163, 184, 0.1);
    --text: #f8fafc;
    --muted: #94a3b8;
    --accent: #60a5fa;
    --success: #4ade80;
    --warning: #fbbf24;
    --danger: #f87171;
    --purple: #800080;
    --card-bg: #1e293b;
    --card-border: #334155;
    --input-bg: #1e293b;
    --input-border: #475569;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--accent), var(--success));
    --gradient-secondary: linear-gradient(135deg, var(--warning), var(--purple));
    --gradient-tertiary: linear-gradient(135deg, var(--success), var(--accent));
    --gradient-danger: linear-gradient(135deg, var(--danger), var(--warning));
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 999px;
}


.light-mode {
    /* Colors */
    --bg: #F4F6F8;
    --glass: rgba(255, 255, 255, 0.75);
    --border: rgba(0, 0, 0, 0.06);
    --text: #0F0F0F;
    --muted: #6B7280;
    --accent: #1F91DC;
    --success: #4CAF50;
    --warning: #FF9800;
    --danger: #F44336;
    --card-bg: #ffffff;
    --purple: #9C27B0;
}

/* Base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "TT Fors", sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow: hidden;
    height: 100vh;
}

@font-face {
    font-family: "TT Fors";
    src: url("/assets/fonts/TT-Fors-Display-Regular.ttf") format("truetype");
}

@font-face {
    font-family: "TT Fors Medium";
    src: url("/assets/fonts/TT-Fors-Display-Medium.ttf") format("truetype");
}

@font-face {
    font-family: "CalSans";
    src: url("/assets/fonts/CalSans-Regular.ttf") format("truetype");
}



/* LOADER OVERLAY */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(at 31.2444175316135% 79.46647854157554%, hsla(18.620689655172413, 100%, 54.509803921568626%, 1) 0%, hsla(18.620689655172413, 100%, 54.509803921568626%, 0) 100%), radial-gradient(at 10.8538524729057% 38.18604351455737%, hsla(246.58823529411762, 100%, 50%, 1) 0%, hsla(246.58823529411762, 100%, 50%, 0) 100%), radial-gradient(at 22.930116181879622% 96.18149723405224%, hsla(18.620689655172413, 100%, 54.509803921568626%, 1) 0%, hsla(18.620689655172413, 100%, 54.509803921568626%, 0) 100%), radial-gradient(at 95.46989490054953% 46.01546499927153%, hsla(246.58823529411762, 100%, 50%, 1) 0%, hsla(246.58823529411762, 100%, 50%, 0) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loader-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    color: white;
    max-width: 500px;
    padding: 40px;
}

.loader-logo {
    font-family: "CalSans";
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
}

.loader-logo span {
    color: #FF9800;
}

.loader-text {
    font-family: "TT Fors Medium";
    font-size: 1.2rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.loader-subtext {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 30px;
}

.loader-message {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Progress bar */
.progress-container {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 30px auto;
}

.progress-bar {
    height: 100%;
    background: white;
    width: 0%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* MAIN CONTENT AREA - Hero Section */
.main-hero {
    position: fixed;
    top: 80px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border);
    overflow: hidden;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    box-shadow: var(--shadow-xl);
}

.main-hero.visible {
    display: block;
    opacity: 1;
}

.hero-container {
    width: 100%;
    height: 100%;
    padding: 30px;
    overflow-y: auto;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    height: calc(100vh - 180px);
}

/* Card styles */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-family: "TT Fors Medium";
    font-size: 1.2rem;
    margin: 0;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-content {
    padding: 25px;
}

/* Welcome card */
.welcome-card {
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    padding: 30px;
    color: white;
    position: relative;
    overflow: hidden;
}

.welcome-bubble {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.welcome-content {
    position: relative;
    z-index: 2;
}

.welcome-title {
    font-family: "CalSans";
    font-size: 2rem;
    margin-bottom: 10px;
}

.welcome-subtitle {
    opacity: 0.9;
    margin-bottom: 20px;
}

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-family: "CalSans";
    font-size: 2rem;
    margin-bottom: 5px;
}

.stat-label {
    color: var(--muted);
    font-size: 13px;
}

/* Quick actions */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.action-btn {
    font-family:"CalSans";
    border: none; 
    padding: 12px 24px; 
    border-radius: 10px; 
    font-weight: 600; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    gap: 8px;
    transition: transform 0.3s ease;
}

.action-btn.primary {
    background: white; 
    color: var(--accent);
}

.action-btn.secondary {
    background: transparent; 
    color: white; 
    border: 2px solid rgba(255, 255, 255, 0.3); 
}

.action-btn:hover {
    transform: translateY(-3px);
}

.action-btn.success {
    background: var(--success);
    color:white;
}

.action-btn.warning {
    background: var(--warning);
    color:white;
}

.action-btn.purple {
    background: var(--purple);
    color:white;
}

/* Auction list */
.auction-list {
    flex: 1;
    overflow-y: auto;
}

.auction-item {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease;
    cursor: pointer;
}

.auction-item:hover {
    background: var(--bg);
}

.auction-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.auction-name {
    font-weight: 600;
    color: var(--text);
}

.auction-details {
    font-size: 12px;
    color: var(--muted);
}

.auction-price {
    font-family: "CalSans";
    font-size: 1.2rem;
    color: var(--text);
}

.auction-time {
    font-size: 12px;
    color: var(--danger);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Activity items */
.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius-md);
}

.activity-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 14px;
    color: var(--text);
}

.activity-time {
    font-size: 12px;
    color: var(--muted);
}

/* Bottom navigation */
.bottom-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.nav-buttons {
    display: flex;
    gap: 10px;
    background: var(--card-bg);
    padding: 10px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    transform: scale(1.1);
}

.nav-btn.secondary {
    background: transparent;
    color: var(--text);
}

/* Filter buttons */
.filter-btn {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 8px 15px;
    border-radius: var(--radius-md);
    color: var(--text);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* View more button */
.view-more-btn {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 10px 30px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    background: var(--accent);
    color: white;
}

/* Utility classes */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.gap-sm { gap: 10px; }
.gap-md { gap: 15px; }
.gap-lg { gap: 20px; }
.gap-xl { gap: 30px; }

.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.text-center { text-align: center; }

.mb-sm { margin-bottom: 10px; }
.mb-md { margin-bottom: 15px; }
.mb-lg { margin-bottom: 20px; }
.mb-xl { margin-bottom: 25px; }

.mt-sm { margin-top: 10px; }
.mt-md { margin-top: 15px; }
.mt-lg { margin-top: 20px; }
.mt-xl { margin-top: 25px; }

/* Hide scrollbar but keep functionality */
.hero-container::-webkit-scrollbar {
    width: 6px;
}

.hero-container::-webkit-scrollbar-track {
    background: transparent;
}

.hero-container::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        height: auto;
        overflow-y: auto;
    }
    
    .main-hero {
        top: 100px;
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .pill-nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .loader-content {
        padding: 20px;
    }
    
    .loader-logo {
        font-size: 2rem;
    }
    
    .loader-text {
        font-size: 1rem;
    }
    
    .progress-container {
        width: 250px;
    }
    
    .main-hero {
        top: 120px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-buttons {
        padding: 8px;
    }
    
    .nav-btn {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .hero-container {
        padding: 20px;
    }
    
    .card-header,
    .card-content {
        padding: 20px;
    }
    
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .auction-item {
        padding: 15px 20px;
    }
}



/* Tour specific styles */
:root {
    --accent-rgb: 96, 165, 250;
}

/* Make sure tour elements are above everything */
.tour-highlight {
    z-index: 10000 !important;
    position: relative !important;
}

/* Responsive tour */
@media (max-width: 768px) {
    .tour-tooltip {
        max-width: calc(100vw - 40px) !important;
        left: 20px !important;
        right: 20px !important;
        margin: 0 auto;
    }
    
    .tour-tooltip[style*="left"] {
        left: 20px !important;
        right: 20px !important;
        width: auto !important;
    }
    
    .tour-start-btn {
        bottom: 80px;
        right: 20px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .tour-completion-content {
        margin: 20px;
        padding: 30px 20px;
    }
}