/* Dashboard Styles - Comprehensive Interactive Course Design System */
:root {
    --primary-yellow: #facc4c;
    --primary-yellow-hover: #f4c035;
    --dark-bg: #0b0804;
    --text-dark: #0b0804;
    --text-light: #655238;
    --text-lighter: #8a7a5a;
    --border-color: #d4c4a6;
    --white: #FFFFFF;
    --yellow-star: #facc4c;
    --red-timer: #d93b04;
    --green-success: #28A745;
    --blue-info: #17A2B8;
    --orange-warning: #FFC107;
    --shadow: 0 2px 4px rgba(11, 8, 4, 0.08);
    --shadow-hover: 0 4px 8px rgba(11, 8, 4, 0.12);
    --shadow-card: 0 4px 12px rgba(11, 8, 4, 0.1);
    --gradient-primary: linear-gradient(135deg, #facc4c 0%, #f4c035 100%);
    --gradient-secondary: linear-gradient(135deg, #655238 0%, #8a7a5a 100%);
    --gradient-success: linear-gradient(135deg, #28A745 0%, #20C997 100%);
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.4;
    color: var(--text-dark);
    background-color: #f8f9fa;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Styles */
.main-header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-yellow);
    text-decoration: none;
    transition: color 0.2s ease;
    margin-right: 16px;
    line-height: 1;
}

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

.logo i {
    margin-right: 8px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.logo span {
    display: flex;
    align-items: center;
    line-height: 1;
}

.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-light);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--dark-bg);
    background-color: var(--primary-yellow);
}

.main-nav i {
    margin-right: 8px;
    font-size: 1rem;
}

.search-bar {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 400px;
    margin: 0 24px;
    position: relative;
    background-color: #f8f9fa;
    border-radius: 9999px;
    padding: 4px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.search-bar:focus-within {
    background-color: var(--white);
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(250, 204, 76, 0.1);
    transform: translateY(-1px);
}

.search-bar input {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 9999px;
    background: transparent;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
    color: var(--text-dark);
}

.search-bar input::placeholder {
    color: var(--text-lighter);
    font-weight: 400;
}

.search-bar input:focus {
    outline: none;
}

.search-bar button {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-yellow-hover) 100%);
    border: none;
    color: var(--text-dark);
    padding: 10px;
    margin-left: -44px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(250, 204, 76, 0.3);
}

.search-bar button:hover {
    background: linear-gradient(135deg, var(--primary-yellow-hover) 0%, var(--primary-yellow) 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(250, 204, 76, 0.4);
}

.search-bar button:active {
    transform: scale(0.95);
}

.user-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 16px;
}

.user-nav a {
    text-decoration: none;
    color: var(--text-light);
    position: relative;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.user-nav a:hover {
    background-color: rgba(250, 204, 76, 0.1);
    color: var(--primary-yellow);
}

.badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--red-timer);
    color: var(--white);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    font-weight: 600;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-profile:hover {
    background-color: rgba(250, 204, 76, 0.1);
}

.user-profile img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-profile span {
    font-weight: 500;
    color: var(--text-dark);
}

.user-profile {
    position: relative;
    cursor: pointer;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
    border: 1px solid var(--border-color);
}

.user-profile:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-dark);
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background-color: rgba(250, 204, 76, 0.1);
    color: var(--text-dark);
}

.dropdown-item i {
    width: 16px;
    color: var(--text-light);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.dropdown-item#logoutBtn {
    color: var(--error-red);
}

.dropdown-item#logoutBtn:hover {
    background-color: rgba(220, 53, 69, 0.1);
}

.dropdown-item#logoutBtn i {
    color: var(--error-red);
}

/* Notification Dropdown Styles */
.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 380px;
    max-height: 500px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.notification-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-yellow-hover) 100%);
}

.notification-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.mark-all-read {
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.mark-all-read:hover {
    background: rgba(255, 255, 255, 0.2);
}

.notification-list {
    max-height: 350px;
    overflow-y: auto;
}

.notification-list::-webkit-scrollbar {
    width: 4px;
}

.notification-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.notification-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.unread {
    background: rgba(250, 204, 76, 0.05);
    border-left: 3px solid var(--primary-yellow);
}

.notification-item.unread:hover {
    background: rgba(250, 204, 76, 0.1);
}

.notification-item.read {
    opacity: 0.8;
}

.notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.notification-icon i {
    font-size: 1rem;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.3;
}

.notification-message {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-lighter);
}

.notification-close-item {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-lighter);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 2px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0;
}

.notification-item:hover .notification-close-item {
    opacity: 1;
}

.notification-close-item:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

.notification-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    background: #f8f9fa;
}

.view-all-notifications {
    color: var(--primary-yellow);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.view-all-notifications:hover {
    color: var(--primary-yellow-hover);
    text-decoration: underline;
}

/* Mobile responsive for notification dropdown */
@media (max-width: 768px) {
    .notification-dropdown {
        width: calc(100vw - 32px);
        right: -16px;
        max-height: 400px;
    }

    .notification-item {
        padding: 12px 16px;
    }

    .notification-icon {
        width: 32px;
        height: 32px;
        margin-right: 10px;
    }

    .notification-icon i {
        font-size: 0.9rem;
    }

    .notification-title {
        font-size: 0.85rem;
    }

    .notification-message {
        font-size: 0.8rem;
    }
}

    @media (max-width: 480px) {
        .notification-dropdown {
            width: calc(100vw - 24px);
            right: -12px;
        }

        .notification-header {
            padding: 12px 16px;
        }

        .notification-header h3 {
            font-size: 1rem;
        }

        .mark-all-read {
            font-size: 0.8rem;
        }
    }

    /* Message Dropdown Styles */
    .message-dropdown {
        position: absolute;
        top: 100%;
        right: 0;
        width: 400px;
        max-height: 500px;
        background: var(--white);
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        border: 1px solid var(--border-color);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        overflow: hidden;
    }

    .message-dropdown.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .message-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        border-bottom: 1px solid var(--border-color);
        background: linear-gradient(135deg, #A435F0 0%, #8b2fd9 100%);
        color: white;
    }

    .message-header h3 {
        margin: 0;
        font-size: 1.1rem;
        font-weight: 600;
    }

    .mark-all-read-messages {
        background: none;
        border: none;
        color: white;
        font-size: 0.85rem;
        font-weight: 500;
        cursor: pointer;
        padding: 4px 8px;
        border-radius: 6px;
        transition: all 0.2s ease;
    }

    .mark-all-read-messages:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .message-list {
        max-height: 350px;
        overflow-y: auto;
    }

    .message-list::-webkit-scrollbar {
        width: 4px;
    }

    .message-list::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .message-list::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 2px;
    }

    .message-item {
        display: flex;
        align-items: flex-start;
        padding: 16px 20px;
        border-bottom: 1px solid #f0f0f0;
        cursor: pointer;
        transition: all 0.2s ease;
        position: relative;
    }

    .message-item:hover {
        background: #f8f9fa;
    }

    .message-item.unread {
        background: rgba(164, 53, 240, 0.05);
        border-left: 3px solid #A435F0;
    }

    .message-item.unread:hover {
        background: rgba(164, 53, 240, 0.1);
    }

    .message-item.read {
        opacity: 0.8;
    }

    .message-avatar {
        flex-shrink: 0;
        position: relative;
        margin-right: 12px;
    }

    .message-avatar img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
    }

    .message-icon {
        position: absolute;
        bottom: -2px;
        right: -2px;
        width: 16px;
        height: 16px;
        background: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.7rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }

    .message-content {
        flex: 1;
        min-width: 0;
    }

    .message-header-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 4px;
    }

    .message-sender {
        font-weight: 600;
        font-size: 0.9rem;
        color: var(--text-dark);
    }

    .message-time {
        font-size: 0.75rem;
        color: var(--text-lighter);
    }

    .message-title {
        font-weight: 600;
        font-size: 0.85rem;
        color: var(--text-dark);
        margin-bottom: 4px;
        line-height: 1.3;
    }

    .message-preview {
        font-size: 0.8rem;
        color: var(--text-light);
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .message-close-item {
        position: absolute;
        top: 12px;
        right: 12px;
        background: none;
        border: none;
        color: var(--text-lighter);
        font-size: 1.2rem;
        cursor: pointer;
        padding: 2px;
        border-radius: 50%;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        opacity: 0;
    }

    .message-item:hover .message-close-item {
        opacity: 1;
    }

    .message-close-item:hover {
        background: rgba(0, 0, 0, 0.1);
        color: var(--text-dark);
    }

    .message-footer {
        padding: 12px 20px;
        border-top: 1px solid var(--border-color);
        background: #f8f9fa;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .view-all-messages,
    .compose-message {
        color: #A435F0;
        text-decoration: none;
        font-size: 0.85rem;
        font-weight: 500;
        transition: all 0.2s ease;
    }

    .view-all-messages:hover,
    .compose-message:hover {
        color: #8b2fd9;
        text-decoration: underline;
    }

    /* Mobile responsive for message dropdown */
    @media (max-width: 768px) {
        .message-dropdown {
            width: calc(100vw - 32px);
            right: -16px;
            max-height: 400px;
        }

        .message-item {
            padding: 12px 16px;
        }

        .message-avatar img {
            width: 32px;
            height: 32px;
        }

        .message-icon {
            width: 14px;
            height: 14px;
            font-size: 0.6rem;
        }

        .message-sender {
            font-size: 0.85rem;
        }

        .message-title {
            font-size: 0.8rem;
        }

        .message-preview {
            font-size: 0.75rem;
        }
    }

    @media (max-width: 480px) {
        .message-dropdown {
            width: calc(100vw - 24px);
            right: -12px;
        }

        .message-header {
            padding: 12px 16px;
        }

        .message-header h3 {
            font-size: 1rem;
        }

        .mark-all-read-messages {
            font-size: 0.8rem;
        }

        .message-footer {
            flex-direction: column;
            gap: 8px;
            align-items: stretch;
        }
    }

/* Floating Menu */
.floating-menu {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background-color: var(--white);
    color: var(--text-light);
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.floating-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--udemy-purple);
}

.floating-btn.primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.floating-btn.primary:hover {
    background: var(--udemy-purple-hover);
    color: var(--white);
}

/* Dashboard Layout */
.dashboard {
    padding: 32px 0;
    min-height: calc(100vh - 70px);
}

/* Welcome Section */
.welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 32px;
    border-radius: 16px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-card);
}

.welcome-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.welcome-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 16px;
}

.streak-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
}

.streak-counter i {
    color: var(--orange-warning);
}

.quick-stats {
    display: flex;
    gap: 16px;
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    min-width: 120px;
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
    opacity: 0.8;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header p {
    color: var(--text-light);
    margin-top: 4px;
}

.view-all {
    color: var(--primary-yellow);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.view-all:hover {
    color: var(--primary-yellow-hover);
}

/* Continue Learning Section */
.continue-learning {
    margin-bottom: 40px;
}

.course-recommendations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.recommendation-card {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.recommendation-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.recommendation-card.primary {
    border: 2px solid var(--udemy-purple);
}

.course-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gradient-success);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.course-progress {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.progress-ring {
    position: relative;
    margin-right: 16px;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-yellow);
}

.course-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.course-info p {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.course-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ai-reason {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(250, 204, 76, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.8rem;
    color: var(--primary-yellow);
}

.continue-btn, .start-btn {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.continue-btn:hover, .start-btn:hover {
    background: var(--primary-yellow-hover);
    transform: translateY(-1px);
}

/* Analytics Dashboard */
.analytics-dashboard {
    margin-bottom: 40px;
}

.time-filter {
    display: flex;
    gap: 8px;
}

.time-filter button {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.time-filter button.active,
.time-filter button:hover {
    background: var(--primary-yellow);
    color: var(--dark-bg);
    border-color: var(--primary-yellow);
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.chart-card {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-card);
    height: 350px;
    display: flex;
    flex-direction: column;
}

.chart-card canvas {
    flex: 1;
    max-height: 280px;
    width: 100% !important;
    height: 100% !important;
}

.chart-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.skill-radar {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

.heatmap {
    text-align: center;
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 16px;
}

.heatmap-cell {
    width: 20px;
    height: 20px;
    border-radius: 2px;
    background-color: #ebedf0;
    transition: all 0.2s ease;
}

.heatmap-cell:hover {
    transform: scale(1.2);
}

.heatmap-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.legend-colors {
    display: flex;
    gap: 2px;
}

.color-box {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.color-box:nth-child(1) { background-color: #ebedf0; }
.color-box:nth-child(2) { background-color: #9be9a8; }
.color-box:nth-child(3) { background-color: #40c463; }
.color-box:nth-child(4) { background-color: #30a14e; }
.color-box:nth-child(5) { background-color: #216e39; }

/* Achievements Section */
.achievements {
    margin-bottom: 40px;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.badge-card {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.badge-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.badge-card.earned {
    border: 2px solid var(--green-success);
}

.badge-card.locked {
    opacity: 0.7;
    border: 2px solid var(--border-color);
}

.badge-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.badge-card.earned .badge-icon {
    background: var(--gradient-success);
}

.badge-card.locked .badge-icon {
    background: var(--gradient-secondary);
}

.badge-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.badge-card p {
    color: var(--text-light);
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.earned-date {
    color: var(--green-success);
    font-size: 0.8rem;
    font-weight: 600;
}

.progress {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* Live Events Section */
.live-events {
    margin-bottom: 40px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.event-card {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    display: flex;
    gap: 16px;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.event-card.upcoming {
    border-left: 4px solid var(--blue-info);
}

.event-card.deadline {
    border-left: 4px solid var(--red-timer);
}

.event-card.webinar {
    border-left: 4px solid var(--orange-warning);
}

.event-time {
    text-align: center;
    min-width: 60px;
}

.event-time.urgent {
    color: var(--red-timer);
}

.event-time .date {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-time .month {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-light);
}

.event-info {
    flex: 1;
}

.event-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.event-info p {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.event-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.join-btn, .rsvp-btn {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.join-btn:hover, .rsvp-btn:hover {
    background: var(--udemy-purple-hover);
}

/* Community Feed */
.community-feed {
    margin-bottom: 40px;
    background: linear-gradient(135deg, rgba(250, 204, 76, 0.05) 0%, rgba(164, 53, 240, 0.05) 100%);
    border-radius: 20px;
    padding: 32px;
    border: 1px solid rgba(250, 204, 76, 0.1);
}

.feed-container {
    display: flex;
    flex-direction: row;
    gap: 24px;
    overflow-x: auto;
    padding: 8px 4px 16px 4px;
    margin: 0 -4px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.feed-container::-webkit-scrollbar {
    height: 6px;
}

.feed-container::-webkit-scrollbar-track {
    background: transparent;
}

.feed-container::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 3px;
}

.feed-container::-webkit-scrollbar-thumb:hover {
    background-color: var(--text-light);
}

.activity-card {
    background: var(--white);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(11, 8, 4, 0.08);
    display: flex;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 340px;
    max-width: 400px;
    flex-shrink: 0;
    border: 1px solid rgba(250, 204, 76, 0.08);
    position: relative;
    overflow: hidden;
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-yellow) 0%, var(--udemy-purple) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 48px rgba(11, 8, 4, 0.12);
    border-color: rgba(250, 204, 76, 0.2);
}

.activity-card:hover::before {
    opacity: 1;
}

.user-avatar {
    position: relative;
}

.user-avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(250, 204, 76, 0.2);
    transition: all 0.3s ease;
}

.activity-card:hover .user-avatar img {
    border-color: var(--primary-yellow);
    transform: scale(1.05);
}

.activity-content {
    flex: 1;
}

.activity-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.user-name {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.activity-type {
    color: var(--text-light);
    background: rgba(250, 204, 76, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.activity-time {
    color: var(--text-light);
    font-size: 0.8rem;
    background: rgba(164, 53, 240, 0.08);
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.activity-content p {
    margin-bottom: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 400;
}

.course-mention {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(164, 53, 240, 0.1) 0%, rgba(250, 204, 76, 0.1) 100%);
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: var(--udemy-purple);
    border: 1px solid rgba(164, 53, 240, 0.15);
    transition: all 0.3s ease;
}

.course-mention:hover {
    background: linear-gradient(135deg, rgba(164, 53, 240, 0.15) 0%, rgba(250, 204, 76, 0.15) 100%);
    transform: translateY(-1px);
}

.question-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tag {
    background: linear-gradient(135deg, rgba(164, 53, 240, 0.1) 0%, rgba(250, 204, 76, 0.1) 100%);
    color: var(--udemy-purple);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(164, 53, 240, 0.15);
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, rgba(164, 53, 240, 0.2) 0%, rgba(250, 204, 76, 0.2) 100%);
    transform: translateY(-1px);
}

.announcement-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, #f4c035 100%);
    color: var(--text-dark);
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid rgba(250, 204, 76, 0.3);
    transition: all 0.3s ease;
    font-weight: 600;
}

.announcement-banner:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(250, 204, 76, 0.3);
}

.activity-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.activity-actions button {
    background: rgba(250, 204, 76, 0.08);
    border: 1px solid rgba(250, 204, 76, 0.15);
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    min-width: 60px;
    justify-content: center;
}

.activity-actions button:hover {
    background: rgba(250, 204, 76, 0.15);
    border-color: var(--primary-yellow);
    color: var(--text-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(250, 204, 76, 0.2);
}

.activity-actions button:active {
    transform: translateY(0);
}

/* Daily Learning Activity Styles */
.daily-activity {
    margin-bottom: 48px;
}

.activity-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.metric-card {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.metric-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.metric-header i {
    font-size: 1.5rem;
    color: var(--primary-yellow);
    background: rgba(250, 204, 76, 0.1);
    padding: 12px;
    border-radius: 12px;
}

.metric-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.metric-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.metric-progress .progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.metric-progress .progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.metric-progress span {
    font-size: 0.9rem;
    color: var(--text-lighter);
}

/* Course Completion Rate Styles */
.completion-rate {
    margin-bottom: 48px;
}

.completion-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
    margin-top: 24px;
}

.completion-overview {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.overall-completion {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.completion-circle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.completion-text {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.completion-text .percentage {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

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

.completion-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.completion-stats .stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.completion-stats .stat:last-child {
    border-bottom: none;
}

.completion-stats .number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.completion-stats .label {
    font-size: 0.9rem;
    color: var(--text-lighter);
}

.course-completions {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.course-completions h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.course-progress-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.course-progress-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.course-progress-item:last-child {
    border-bottom: none;
}

.course-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.course-category {
    font-size: 0.8rem;
    color: var(--text-lighter);
    background: rgba(250, 204, 76, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.progress-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 120px;
}

.progress-info .progress-bar {
    width: 100px;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-info .progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.progress-text {
    font-size: 0.8rem;
    color: var(--text-lighter);
}

/* Learning Streak Styles */
.learning-streak {
    margin-bottom: 48px;
}

.streak-info {
    display: flex;
    gap: 24px;
    margin-top: 8px;
}

.current-streak, .longest-streak {
    font-size: 0.9rem;
    color: var(--text-lighter);
    padding: 8px 16px;
    background: rgba(250, 204, 76, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(250, 204, 76, 0.2);
}

.streak-display {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    margin-top: 24px;
}

.streak-calendar {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.streak-calendar h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}

.day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-lighter);
    cursor: pointer;
    transition: all 0.2s ease;
}

.day.active {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(250, 204, 76, 0.3);
}

.day:hover {
    transform: scale(1.1);
}

.calendar-legend {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: #f0f0f0;
}

.legend-color.active {
    background: var(--gradient-primary);
}

.legend-item span {
    font-size: 0.8rem;
    color: var(--text-lighter);
}

.streak-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.streak-stat {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-lighter);
}

/* Time Distribution Styles */
.time-distribution {
    margin-bottom: 48px;
}

.distribution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 24px;
}

.chart-container {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-breakdown {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.category-breakdown h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.category-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex-shrink: 0;
}

.category-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
}

.category-time {
    font-size: 0.8rem;
    color: var(--text-lighter);
}

.category-progress {
    width: 80px;
}

.category-progress .progress-bar {
    width: 100%;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.category-progress .progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.total-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid #f0f0f0;
}

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

.total-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* AI Assistant Chat Widget */
.ai-assistant {
    position: fixed;
    bottom: 24px;
    right: 24px;
    left: auto;
    width: 350px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-hover);
    z-index: 1000;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.ai-assistant.minimized {
    width: auto;
    height: auto;
}

.ai-assistant.focused {
    box-shadow: 0 8px 32px rgba(250, 204, 76, 0.2);
    border-color: var(--primary-yellow);
}

.ai-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 16px 16px 0 0;
    cursor: pointer;
}

.ai-header:hover {
    background: var(--primary-yellow-hover);
}

.ai-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.ai-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.status {
    font-size: 0.8rem;
    opacity: 0.9;
}

.minimize-btn {
    background: none;
    border: none;
    color: var(--white);
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.minimize-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.ai-chat {
    height: 400px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    padding: 16px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--primary-yellow);
    border-radius: 2px;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 80%;
    animation: messageSlideIn 0.3s ease;
}

.message.user {
    align-self: flex-end;
}

.message.ai {
    align-self: flex-start;
}

.message-content {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message.user .message-content {
    background: var(--gradient-primary);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.message.ai .message-content {
    background: var(--border-color);
    color: var(--text-dark);
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 4px;
    align-self: flex-end;
}

.message.user .message-time {
    align-self: flex-end;
}

.message.ai .message-time {
    align-self: flex-start;
}

/* Typing Indicator */
.typing-indicator .message-content {
    background: var(--border-color);
    padding: 16px;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
}

.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-light);
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0s;
}

.chat-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 0 0 16px 16px;
}

.chat-input input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
}

.chat-input input:focus {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(250, 204, 76, 0.1);
}

.chat-input button {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-input button:hover {
    background: var(--primary-yellow-hover);
    transform: scale(1.1);
}

.chat-input button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Animations */
@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Minimized state */
.ai-assistant.minimized .ai-chat {
    display: none;
}

.ai-assistant.minimized .ai-header {
    border-radius: 16px;
    cursor: pointer;
}

.ai-assistant.minimized:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(11, 8, 4, 0.15);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .course-recommendations {
        grid-template-columns: 1fr;
    }

    .analytics-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .completion-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .streak-display {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .distribution-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-wrap: wrap;
        gap: 16px;
    }

    .search-bar {
        order: 3;
        max-width: none;
        margin: 0;
        width: 100%;
        background-color: var(--white);
        border: 1px solid var(--border-color);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .search-bar:focus-within {
        border-color: var(--primary-yellow);
        box-shadow: 0 4px 16px rgba(250, 204, 76, 0.2);
    }

    .welcome-section {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .welcome-content h1 {
        font-size: 2rem;
    }

    .quick-stats {
        justify-content: center;
    }

    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .chart-card {
        height: 300px;
    }

    .chart-card canvas {
        max-height: 230px;
    }

    .badges-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .feed-container {
        flex-direction: column;
        overflow-x: visible;
    }

    .activity-card {
        min-width: auto;
        max-width: none;
    }

    .activity-metrics {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .streak-info {
        flex-direction: column;
        gap: 12px;
    }

    .calendar-grid {
        grid-template-columns: repeat(8, 1fr);
    }

    .streak-stats {
        flex-direction: row;
        gap: 12px;
    }

    .streak-stat {
        flex: 1;
        padding: 16px;
    }

    .ai-assistant {
        width: calc(100vw - 48px);
        left: 24px;
        right: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .search-bar {
        margin: 0;
        padding: 2px;
    }

    .search-bar input {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .search-bar button {
        width: 32px;
        height: 32px;
        margin-left: -36px;
    }

    .welcome-content h1 {
        font-size: 1.5rem;
    }

    .quick-stats {
        flex-direction: column;
        gap: 12px;
    }

    .stat-card {
        min-width: auto;
    }

    .floating-menu {
        bottom: 16px;
        right: 16px;
    }

    .ai-assistant {
        left: 16px;
        right: 16px;
        width: calc(100vw - 32px);
    }

    .chart-card {
        height: 280px;
    }

    .chart-card canvas {
        max-height: 210px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.welcome-section,
.recommendation-card,
.chart-card,
.badge-card,
.event-card,
.activity-card {
    animation: fadeInUp 0.6s ease-out;
}

.floating-menu {
    animation: slideInRight 0.6s ease-out;
}

.streak-counter {
    animation: pulse 2s infinite;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
button:focus,
input:focus,
a:focus {
    outline: 2px solid var(--udemy-purple);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-light: #000000;
    }
}

/* Footer */
.main-footer {
    background: var(--dark-bg);
    color: var(--white);
    margin-top: 80px;
}

.footer-content {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #b5b5b5;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 20px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom .logo {
    color: var(--white);
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-bottom-links a {
    color: #b5b5b5;
    text-decoration: none;
    font-size: 0.9rem;
}

.language-selector {
    background: none;
    border: 1px solid #333;
    color: #b5b5b5;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom .container {
        flex-direction: column;
        gap: 10px;
    }
}