
    :root {
    --primary-color: #5d5dff; /* A deep blue/purple for accents */
    --background-color: #1a1a2e; /* Dark background */
    --card-background: #2a2a44; /* Slightly lighter card background */
    --text-color: #ffffff;
    --text-secondary: #aaaaaa;
    --gradient-start: #3f51b5;
    --gradient-end: #673ab7;
}

/* Global Styles */
body {
    font-family: Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.dashboard-container {
    width: 100%;
    max-width: 400px; /* Typical mobile size constraint */
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    padding-bottom: 70px; /* Space for fixed mobile-nav */
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.logo i {
    color: var(--primary-color);
}

.user-info {
    position: relative;
}

.avatar-small {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: red;
    color: white;
    font-size: 0.7rem;
    padding: 3px 6px;
    border-radius: 50%;
    line-height: 1;
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 30px;
}

.welcome-message {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.avatar-large {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.welcome-message h1 {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0;
}

.welcome-message strong {
    font-weight: bold;
}

/* Progress Card */
.progress-card {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.card-header, .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
}

.card-header {
    margin-bottom: 15px;
}

.card-header i {
    font-size: 1.8rem;
}

.progress-content {
    margin-bottom: 15px;
}

.progress-content .label {
    font-size: 0.8rem;
    font-weight: 300;
    margin-bottom: 5px;
}

.progress-content .percentage {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.progress-bar-bg {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--text-color);
    border-radius: 4px;
    transition: width 0.5s ease-in-out;
}

.card-footer {
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.user-name-small {
    font-weight: bold;
}

/* Action Icons */
.action-icons {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    text-align: center;
    margin-bottom: 30px;
}

.icon-item p {
    font-size: 0.8rem;
    margin-top: 8px;
    color: var(--text-secondary);
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--text-color);
}

.enroll-course { background-color: #ffc107; /* Yellow */ }
.messages { background-color: #007bff; /* Blue */ }
.my-courses { background-color: #6f42c1; /* Purple */ }
.schedule { background-color: #28a745; /* Green */ }

/* Promo Banner */
.promo-banner {
    text-align: center;
    background-color: var(--card-background);
    border-radius: 15px;
    overflow: hidden;
    padding-bottom: 15px;
}

.banner-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 15px;
}

.promo-banner p {
    font-size: 1rem;
    padding: 0 15px;
    color: var(--text-secondary);
}

.promo-banner strong {
    color: var(--text-color);
    font-weight: bold;
}

/* Mobile Navigation */
/* Base (mobile-first) */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 420px;
    background-color: var(--card-background);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.7rem;
    padding: 6px 10px;
    flex: 1;
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 3px;
}

.nav-item.active {
    color: var(--primary-color);
}

/* Center QR icon */
.center-icon {
    font-size: 2rem;
    color: var(--text-color);
    background-color: var(--primary-color);
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-12px);
}

/* ========================= */
/* Tablets */
@media (min-width: 768px) {
    .mobile-nav {
        max-width: 700px;
        padding: 14px 0;
    }

    .nav-item {
        font-size: 0.8rem;
    }

    .nav-item i {
        font-size: 1.4rem;
    }

    .center-icon {
        width: 60px;
        height: 60px;
        font-size: 2.2rem;
    }
}

/* ========================= */
/* Large screens / Desktop */
@media (min-width: 1024px) {
    .mobile-nav {
        max-width: 900px;
        justify-content: space-between;
        padding: 16px 30px;
    }

    .nav-item {
        font-size: 0.85rem;
    }

    .nav-item i {
        font-size: 1.5rem;
    }

    .center-icon {
        width: 64px;
        height: 64px;
        font-size: 2.4rem;
        transform: translateY(-14px);
    }
}
/* ========================= */
/* Tablet & up – spread layout */
@media (min-width: 768px) {

    body {
        justify-content: flex-start;
    }

    .dashboard-container {
        max-width: 900px;
        margin: 0 auto;
        padding: 30px 40px;
    }

    .welcome-section {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: 25px;
        align-items: stretch;
    }

    .progress-card {
        height: 100%;
    }

    .action-icons {
        justify-content: space-between;
        gap: 20px;
    }

    .icon-circle {
        width: 70px;
        height: 70px;
        font-size: 1.7rem;
    }
}

/* ========================= */
/* Desktop – fully spread */
@media (min-width: 1200px) {

    .dashboard-container {
        max-width: 1200px;
        padding: 40px 60px;
    }

    .welcome-section {
        grid-template-columns: 1.5fr 1fr;
    }

    .promo-banner {
        margin-top: 40px;
    }

    .action-icons {
        margin-top: 20px;
    }
}
