/* Dashboard - Professional Analytics & Exam History */

:root {
    --primary: #8b5cf6;
    --accent: #06b6d4;
    --bg-deep: #020617;
    --glass: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-white: #f8fafc;
    --text-dim: #94a3b8;
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-white);
    position: relative;
    overflow-x: hidden;
}

body { 
    min-height: 100vh;
    background: var(--bg-deep);
}

body::before {
    content: 'EXAMVERSE';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 120px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.07);
    white-space: nowrap;
    z-index: 0;
    letter-spacing: 8px;
    pointer-events: none;
    user-select: none;
}
.dashboard-container { 
    display: flex; 
    height: 100vh; 
    position: relative;
    z-index: 10;
}

/* ============ SIDEBAR ============ */
.sidebar {
    width: 180px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 100;
    overflow-y: auto;
    box-shadow: 2px 0 30px rgba(0, 0, 0, 0.3);
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h1 {
    margin: 0 0 0 2px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.sidebar-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
    margin-right: 2px;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 12px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 500;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.nav-item i { font-size: 1.2rem; width: 20px; text-align: center; }

.logout-btn {
    margin-top: auto;
    color: rgba(255, 255, 255, 0.7);
}

.logout-btn:hover { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

/* ============ MAIN CONTENT ============ */
.dashboard-main {
    flex: 1;
    margin-left: 180px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header */
.dashboard-header {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.dashboard-header h1 {
    margin: 0;
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-white);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

.header-actions { display: flex; gap: 12px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover { background: #a78bfa; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3); }

.btn-secondary {
    background: var(--glass);
    color: var(--text-dim);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); color: var(--text-white); }

/* Main Content Scroll */
.dashboard-main > *:not(.dashboard-header):not(.dashboard-updates-marquee) {
    overflow-y: auto;
    flex: 1;
}

.dashboard-main .summary-stats,
.dashboard-main .charts-section,
.dashboard-main .history-section {
    padding: 0;
}

/* Wrapper for scrollable content */
.dashboard-main {
    position: relative;
}

.dashboard-main > *:not(.dashboard-header):not(.dashboard-updates-marquee) {
    max-height: calc(100vh - 76px);
    overflow-y: auto;
}

/* ============ TOP UPDATE MARQUEE ============ */
.dashboard-updates-marquee {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.18), rgba(6, 182, 212, 0.15));
    border-bottom: 1px solid var(--glass-border);
}

.updates-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.updates-marquee-window {
    overflow: hidden;
    width: 100%;
}

.updates-marquee-track {
    display: inline-flex;
    align-items: center;
    min-width: max-content;
    gap: 42px;
    color: #f8fafc;
    font-weight: 600;
    font-size: 0.92rem;
    white-space: nowrap;
    animation: updatesTicker 28s linear infinite;
}

.updates-marquee-track:hover {
    animation-play-state: paused;
}

.updates-marquee-text {
    display: inline-block;
}

@keyframes updatesTicker {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translateX(-50%);
    }
}

/* ============ SUMMARY STATS ============ */
.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 32px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--glass-border);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--glass);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.2);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon.total-exams { background: rgba(139, 92, 246, 0.2); color: var(--primary); }
.stat-icon.average-score { background: rgba(6, 182, 212, 0.2); color: var(--accent); }
.stat-icon.study-time { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.stat-icon.best-score { background: rgba(168, 85, 247, 0.2); color: #a855f7; }

.stat-content { flex: 1; }
.stat-label { margin: 0 0 4px 0; font-size: 0.875rem; color: var(--text-dim); font-weight: 500; }
.stat-value { margin: 0; font-size: 1.875rem; font-weight: 700; color: var(--text-white); }

/* ============ CHARTS SECTION ============ */
.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    padding: 32px;
    background: rgba(0, 0, 0, 0.2);
}

.chart-container {
    background: var(--glass);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.chart-container h2 {
    margin: 0 0 20px 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
}

.chart-container canvas { max-height: 250px; width: 100% !important; height: 250px !important; }

.empty-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    color: var(--text-dim);
    text-align: center;
    min-height: 250px;
}

.empty-message i { font-size: 2rem; }

/* ============ EXAM HISTORY TABLE ============ */
.history-section {
    padding: 16px 32px 32px 32px;
    background: rgba(0, 0, 0, 0.2);
}

.history-section h2 {
    margin: 0 0 20px 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
}

.table-wrapper {
    background: var(--glass);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table thead {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 2px solid var(--glass-border);
}

.history-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-white);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.history-table td {
    padding: 16px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-dim);
}

.history-table tbody tr { 
    transition: background 0.2s;
    border-bottom: 1px solid var(--glass-border);
}
.history-table tbody tr:hover { 
    background: rgba(255, 255, 255, 0.08);
}

.history-table tbody tr:last-child td { border-bottom: none; }

.empty-row td {
    text-align: center;
    padding: 40px 16px;
    color: var(--text-dim);
}

.empty-row a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.empty-row a:hover { text-decoration: underline; }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    width: fit-content;
}

.status-passed {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.status-failed {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.status-incomplete {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
}

.action-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
    transition: color 0.2s;
}

.action-btn:hover { color: #a78bfa; }

/* ============ MODAL ============ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal.active { display: flex; }

/* ============ MODAL ============ */
.modal-content {
    background: var(--bg-deep);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    color: var(--text-white);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #9ca3af;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-close:hover { color: var(--text-white); }

.modal-body {
    padding: 32px;
}

.modal-body h2 {
    margin: 0 0 24px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    text-align: center;
}

/* Result Details */
.result-details {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.result-score {
    flex-shrink: 0;
}

.score-circle {
    width: 120px;
    height: 120px;
}

.score-bg {
    fill: none;
    stroke: var(--glass-border);
    stroke-width: 4;
}

.score-progress {
    fill: none;
    stroke: var(--primary);
    stroke-width: 4;
    stroke-dasharray: 282.74;
    stroke-dashoffset: 282.74;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}

.score-text {
    font-size: 32px;
    font-weight: 700;
    fill: var(--text-white);
}

.result-stats {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.result-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.result-stat .label {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-stat .value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
}

.result-stat .value.correct {
    color: #22c55e;
}

/* Question Breakdown */
.breakdown-section {
    margin-bottom: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
}

.breakdown-section h3 {
    margin: 0 0 16px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
}

.breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.breakdown-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.breakdown-item.correct { border-left: 3px solid #059669; }
.breakdown-item.incorrect { border-left: 3px solid #dc2626; }

.breakdown-number {
    font-weight: 700;
    color: var(--text-dim);
    min-width: 24px;
}

.breakdown-content {
    flex: 1;
}

.breakdown-status {
    font-weight: 600;
    font-size: 0.8rem;
}

.breakdown-item.correct .breakdown-status { color: #22c55e; }
.breakdown-item.incorrect .breakdown-status { color: #f87171; }

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-actions .btn {
    flex: 1;
    justify-content: center;
}

/* ============ RESPONSIVE DESIGN ============ */

/* Tablets */
@media (max-width: 1024px) {
    .summary-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 24px;
    }

    .charts-section {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px;
    }

    .history-section {
        padding: 24px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .dashboard-container { flex-direction: column-reverse; }

    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        max-height: 100vh;
        transition: left 0.3s ease;
        width: 280px;
    }

    .sidebar.open { left: 0; }

    .sidebar-overlay.active { display: block; }

    .sidebar-toggle {
        display: flex;
    }

    .dashboard-main {
        margin-left: 0;
        flex: 1;
        min-height: calc(100vh - 60px);
    }

    .menu-toggle { display: flex; }

    .dashboard-header {
        padding: 16px 20px;
        gap: 12px;
        flex-wrap: wrap;
    }

    .dashboard-updates-marquee {
        padding: 10px 14px;
        gap: 10px;
    }

    .updates-label {
        font-size: 0.78rem;
        padding: 5px 8px;
    }

    .updates-marquee-track {
        font-size: 0.84rem;
    }

    .dashboard-header h1 {
        font-size: 1.5rem;
        flex: 1;
    }

    .header-actions { 
        flex-shrink: 0;
        display: flex;
        gap: 12px;
        align-items: center;
        width: 100%;
    }

    .user-profile {
        display: flex;
        flex: 1;
        justify-content: flex-start;
    }

    .user-profile-info {
        display: none;
    }

    .profile-photo {
        width: 40px;
        height: 40px;
    }

    .btn-secondary span {
        display: none;
    }

    .user-welcome-card {
        padding: 8px 12px;
        gap: 8px;
        flex-direction: row;
        text-align: left;
    }

    .user-card-left {
        flex-direction: column;
        justify-content: center;
        gap: 16px;
    }

    .welcome-photo {
        width: 64px;
        height: 64px;
    }

    .welcome-name {
        font-size: 1.4rem;
    }

    .user-card-right {
        width: 100%;
        gap: 16px;
    }

    .summary-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 16px;
    }

    .stat-card {
        gap: 12px;
        padding: 16px;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .stat-label { font-size: 0.75rem; }
    .stat-value { font-size: 1.5rem; }

    .charts-section {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }

    .chart-container {
        padding: 16px;
    }

    .chart-container h2 {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }

    .history-section {
        padding: 16px;
    }

    .history-table th,
    .history-table td {
        padding: 12px 8px;
        font-size: 0.85rem;
    }

    .table-wrapper {
        overflow-x: auto;
    }

    .modal-content {
        max-width: 90vw;
        max-height: 90vh;
    }

    .modal-body {
        padding: 24px;
    }

    .result-details {
        flex-direction: column;
        gap: 16px;
    }

    .result-stats {
        width: 100%;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .btn {
        flex: 1;
    }

    body {
        overflow-y: scroll;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .summary-stats {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }

    .dashboard-header h1 {
        font-size: 1.25rem;
    }

    .header-actions {
        width: 100%;
    }

    .header-actions .btn {
        flex: 1;
        width: 100%;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .stat-value { font-size: 1.5rem; }

    .history-table th {
        padding: 8px 4px;
        font-size: 0.75rem;
    }

    .history-table td {
        padding: 8px 4px;
    }

    .modal-body {
        padding: 16px;
    }

    .modal-body h2 {
        font-size: 1.25rem;
    }

    .result-stats {
        grid-template-columns: 1fr;
    }

    .score-circle {
        width: 100px;
        height: 100px;
    }

    .score-text {
        font-size: 28px;
    }
}
    .nav {
        position: fixed; top: 70px; right: -100%; 
        background: rgba(2, 6, 23, 0.98);
        width: 250px; height: auto; padding: 20px; border-radius: 0 0 0 20px;
        transition: 0.4s;
    }
    .nav.open { right: 0; }
    .nav ul { flex-direction: column; gap: 15px; }
}

/* ============ USER PROFILE ============ */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(124, 58, 237, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.user-profile:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(124, 58, 237, 0.1) 100%);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.profile-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2), 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.user-profile:hover .profile-photo {
    transform: scale(1.05);
    border-color: #7c3aed;
}

.user-profile-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-profile-info .user-name {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
}

.user-profile-info .user-email {
    margin: 0;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

/* ============ USER WELCOME CARD ============ */
/* ============ USER WELCOME CARD ============ */
.user-welcome-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
    color: white;
    gap: 16px;
    position: relative;
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.user-welcome-card::-webkit-scrollbar {
    display: none;
}

.user-welcome-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(100px, -100px);
    z-index: 0;
}

.user-welcome-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    z-index: 0;
}

.user-card-left {
    display: flex;
    align-items: center;
    gap: 24px;
    z-index: 1;
    flex: 1;
}

.welcome-photo {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-size: cover;
    background-position: center;
}

.user-welcome-card:hover .welcome-photo {
    transform: scale(1.05) rotate(-2deg);
}

.welcome-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.welcome-greeting {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.welcome-name {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.welcome-email {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.85;
}

.user-card-right {
    display: flex;
    gap: 12px;
    z-index: 1;
}

.stat-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-mini:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
}

.stat-mini .stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    display: block;
}

.stat-mini .stat-label {
    font-size: 0.8rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .user-welcome-card {
        padding: 20px;
        gap: 16px;
        flex-direction: column;
        text-align: center;
    }

    .user-card-left {
        justify-content: center;
    }

    .user-card-right {
        width: 100%;
        justify-content: space-around;
    }

    .welcome-photo {
        width: 80px;
        height: 80px;
    }

    .welcome-name {
        font-size: 1.4rem;
    }

    .stat-mini {
        padding: 12px 16px;
    }
}