﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --gradient-dotnet: linear-gradient( 90deg, #512BD4 0%, #6F42C1 40%, #0B5ED7 100% );
    --primary-purple: #6246ea;
    --dark-text: #241442;
    --light-text: #5c5c70;
    --page-bg: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --progress-bg: #e9ecef;
}

body {
    background-color: #f8f9fa;
    color: #333;
}

/* HEADER */
header {
    background-color: #faf9f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index:1050; 
}


    header .logo {
        font-size: 32px;
        font-weight: 800;
        background: var(--gradient-dotnet);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    header nav a {
        color: black;
        margin: 0 10px;
        text-decoration: none;
        font-weight: 500;
    }

#hamburger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: black;
}


.user-profile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

    /* Tên user */
    .user-profile .user-name {
        font-size: 14px;
        font-weight: 500;
        color: #212529;
        max-width: 140px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Icon user */
    .user-profile i.fa-circle-user {
        font-size: 24px;
        color: #512BD4; /* .NET Core tone */
    }

/* Dropdown */
.profile-dropdown {
    position: absolute;
    top: 130%;
    right: 0;
    width: 260px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,.14);
    display: none;
    z-index: 1050;
}

/* Hiện khi active (dùng JS đã có) */
.user-profile.active .profile-dropdown {
    display: block;
}

/* User info trong dropdown */
.profile-dropdown .user-info {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

    .profile-dropdown .user-info strong {
        font-size: 14px;
    }

    .profile-dropdown .user-info p {
        margin: 2px 0 0;
        font-size: 13px;
        color: #6c757d;
    }

/* Menu */
.profile-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

    .profile-dropdown ul li a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 16px;
        font-size: 14px;
        color: #212529;
        text-decoration: none;
    }

        .profile-dropdown ul li a i {
            width: 18px;
            text-align: center;
            color: #6c757d;
        }

        .profile-dropdown ul li a:hover {
            background-color: #f5f7fb;
        }

.nav-item i {
    width: 20px;
    text-align: center;
    margin-right: 0;
    opacity: 0.85;
}

@media (max-width: 768px) {

    header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 12px;
    }

    .user-profile {
        display: flex;
        align-items: center;
        order: 1;
    }

        .user-profile .user-name {
            display: none;
        }

        .user-profile i {
            font-size: 22px;
            margin-right: 8px;
            cursor: pointer;
        }

    .logo {
        order: 2;
        font-size: 16px;
        font-weight: 600;
        white-space: nowrap;
    }

    #hamburger-btn {
        order: 3;
        font-size: 20px;
    }

    .main-nav {
        display: none;
    }

    header .logo {
        font-size: 1.2rem
    }

    .profile-dropdown {
        position: fixed;
        top: 60px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 24px);
        max-width: 320px;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,.15);
        z-index: 9999;
    }

    .profile-dropdown {
        position: fixed;
        top: 60px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 24px);
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 12px 30px rgba(0,0,0,.18);
        z-index: 9999;
        overflow: hidden;
        max-width: 100%;
    }

        .profile-dropdown .user-info {
            padding: 14px 16px;
            text-align: center;
            border-bottom: 1px solid #eee;
        }

        .profile-dropdown ul {
            padding: 6px 0;
        }

        .profile-dropdown li a {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            font-size: 15px;
        }

            .profile-dropdown li a i {
                width: 20px;
                text-align: center;
                opacity: .85;
            }

            .profile-dropdown li a:active {
                background: #f5f5f5;
            }

    .main-nav {
        position: fixed;
        top: 60px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 24px);
        background: #fff;
        display: none;
        flex-direction: column;
        box-shadow: 0 8px 20px rgba(0,0,0,.15);
        border-radius: 12px;
        z-index: 9998;
        padding: 10px 0px;
    }

        .main-nav a {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 0;
            font-size: 14px;
            color: #212529;
            text-decoration: none;
        }

            .main-nav a:last-child {
                border-bottom: none;
            }

        /* Khi mở menu */
        .main-nav.active {
            display: flex;
        }
}



/*FORM*/
.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        font-weight: 600;
        margin-bottom: 8px;
    }

.form-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 30px;
    text-align: right;
}

.btn-primary {
    background-color: var(--primary-purple);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/*Table*/
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

thead {
    background-color: #f9fafb;
}

th {
    font-size: 14px;
    font-weight: 600;
    color: var(--light-text);
    text-transform: uppercase;
}

th, td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.status.success {
    background-color: #e6f9f0;
    color: #008a48;
}

.status {
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.btn-invoice {
    color: var(--primary-purple);
    font-weight: 700;
    text-decoration: none;
}

/* BANNER */
.banner {
    height: auto;
    padding: 70px 16px;
    min-height: auto;
    background: rgba(250, 249, 246, 1);
}

    .banner .banner-container {
        display: flex;
        width: 100%;
        max-width: 1200px;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .banner .banner-text {
        flex-direction: row;
        padding: 16px;
    }

        .banner .banner-text h6 {
            color: rgba(0, 0, 0, 0.67);
        }

        .banner .banner-text h1 {
            font-size: 50px;
            line-height: 1.25;
            font-weight: 800;
            letter-spacing: -0.02em;
            margin-bottom: 24px;
            /* Màu chữ */
            color: #241442;
            /* Nhẹ nhàng hơn khi nhìn */
            text-shadow: 0 4px 12px rgba(81, 43, 212, 0.15);
        }


        .banner .banner-text p {
            color: rgba(0, 0, 0, 0.67);
            padding-bottom: 30px;
            font-size: 22px;
        }

        .banner .banner-text .banner-btn {
            background-color: #6246ea;
            color: white;
            padding: 15px 30px;
            border-radius: 20px;
            text-decoration: none;
            font-size: 18px;
        }

    .banner .banner-img {
        width: 100%;
        height: 100%;
        border-radius: inherit;
        object-fit: cover;
    }



/* FOOTER */
footer {
    background-color: #faf9f6;
    text-align: center;
    padding: 15px;
    font-size: 0.9rem;
}

    footer p a {
        text-decoration: none;
        color: black;
        color: rgba(0, 0, 0, 0.67);
    }

/*Social Icon*/
/* Container chính chứa các icon */
.social-icons {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}


    .social-icons .icon {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        color: white;
        font-size: 24px;
        text-decoration: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease;
    }


        .social-icons .icon:hover {
            transform: scale(1.1);
        }

    .social-icons .facebook {
        background-color: #1877F2;
    }

    .social-icons .messenger {
        background: linear-gradient(45deg, #A230D8, #F03073, #FEA33E);
    }

/*RESPONSIVE*/
@media (max-width: 768px) {
    /* --- HEADER & MENU MOBILE --- */
    header {
        padding: 15px 20px;
    }

    #hamburger-btn {
        display: block;
        z-index: 1001;
    }

    #mobile-nav {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 50%;
        height: 100%;
        background-color: rgba(250, 249, 246, 0.98);
        backdrop-filter: blur(5px);
        position: fixed;
        top: 0;
        left: 0;
        padding: 100px 20px 20px 20px;
    }

        #mobile-nav .nav-item {
            border-bottom: 1px solid rgba(0, 0, 0, 0.2);
            width: 100%;
            padding: 20px;
        }

        #mobile-nav.active {
            display: flex;
        }

        #mobile-nav .nav-item {
            font-size: 1.5rem;
            font-weight: bold;
        }

    /* --- BANNER --- */
    .banner {
        padding: 40px 16px;
    }

        .banner .banner-container {
            flex-direction: column;
            text-align: center;
        }

        .banner .banner-text h1 {
            font-size: 36px;
            line-height: 1.4;
        }

        /* 1. Ép thẻ cha chứa ảnh phải rộng 100% màn hình */
        .banner .banner-img {
            width: 100%;
            margin-top: 30px;
        }

            /* 2. Ép ảnh phải rộng 100% so với thẻ cha của nó */
            .banner .banner-img img {
                width: 100%;
                height: auto;
            }
}


/* --- NỘI DUNG CHÍNH --- */
.dashboard-main {
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.welcome-banner {
    background-color: var(--dark-text);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
}

    .welcome-banner h1 {
        margin: 0 0 10px;
    }

    .welcome-banner p {
        margin: 0;
        opacity: 0.8;
        font-size: 18px;
    }

/* --- PHẦN KHÓA HỌC --- */
.course-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .filter-btn:hover {
        background-color: var(--primary-purple);
        color: white;
        border-color: var(--primary-purple);
    }

    .filter-btn.active {
        background-color: var(--primary-purple);
        color: white;
        border-color: var(--primary-purple);
    }

/* Lưới khóa học */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .course-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    }

    .course-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }

.card-content {
    padding: 20px;
}

    .card-content .category {
        background-color: rgba(98, 70, 234, 0.1);
        color: var(--primary-purple);
        padding: 4px 8px;
        border-radius: 5px;
        font-size: 12px;
        font-weight: 700;
    }

    .card-content h3 {
        margin: 15px 0 5px;
        font-size: 18px;
    }

    .card-content .author {
        color: var(--light-text);
        font-size: 14px;
        margin-bottom: 15px;
    }
/* Thanh tiến độ */
.progress-bar {
    background-color: var(--progress-bg);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress {
    background-color: var(--primary-purple);
    height: 100%;
}

.progress-text {
    font-size: 12px;
    color: var(--light-text);
    display: block;
    margin-bottom: 15px;
}
/* Nút bấm */
.btn-course {
    display: block;
    width: 90%;
    text-align: center;
    padding: 12px;
    background-color: var(--primary-purple);
    color: white;
    border-radius: 8px;
    font-weight: 700;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }

    .search-bar {
        margin: 0 20px;
    }
}

@media (max-width: 768px) {
    .course-grid {
        grid-template-columns: 1fr;
    }
}


/* --- THÔNG TIN PROFILE --- */
.profile-container {
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    gap: 30px;
}

.profile-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.user-avatar-section {
    text-align: center;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 20px;
}

.profile-main {
    flex-grow: 1;
    background-color: var(--page-bg);
}

.settings-nav {
    flex-grow: 1;
    background-color: var(--page-bg);
}

    .settings-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
        background-color: var(--card-bg);
        border-radius: 10px;
        overflow: hidden;
    }

    .settings-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
        background-color: var(--card-bg);
        border-radius: 10px;
        overflow: hidden;
    }

    .settings-nav a {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 15px;
        color: var(--dark-text);
        text-decoration: none;
        font-weight: 600;
        border-left: 3px solid transparent;
        transition: all 0.2s ease;
    }

        .settings-nav a:hover {
            background-color: #f0efff;
            color: var(--primary-purple);
        }

        .settings-nav a.active {
            border-left-color: var(--primary-purple);
            background-color: #f0efff;
            color: var(--primary-purple);
        }

.settings-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
}
/**/
.payment-history-table {
    width: 100%;
    overflow-x: auto;
}

.payment-guide ul {
    padding-left: 18px;
}

.payment-guide li {
    margin-bottom: 6px;
}

.payment-amount {
    font-size: 22px;
    font-weight: 700;
    color: #512BD4; /* tone .NET */
}


/*Course detail*/

.player-container {
    display: flex;
}

    .player-container .main-content {
        flex-grow: 1;
        padding: 30px;
        height: calc(100vh - 60px);
        overflow: hidden;
        background: white
    }

        .player-container .main-content:hover {
            overflow-y: auto;
        }

        .player-container .main-content::-webkit-scrollbar {
            width: 0px;
        }

.video-player-wrapper {
    background-color: #000;
    border-radius: 15px;
}

    .video-player-wrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

.lesson-header {
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
}

    .lesson-header h1 {
        font-size: 1.5rem
    }

.lesson-navigation {
    display: flex;
    gap: 10px;
}

.btn-nav.disabled {
    color: #aaa;
    cursor: not-allowed;
}

.btn-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}

.tab-buttons {
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    color: var(--light-text);
}

    .tab-btn.active {
        color: var(--primary-purple);
    }

        .tab-btn.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: var(--primary-purple);
        }

.tab-panel.active {
    display: block;
}

.tab-panel {
    display: none;
    padding: 20px 0;
}

.lesson-playlist {
    width: 350px;
    flex-shrink: 0;
    background-color: var(--card-bg);
    height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-color);
}

.playlist-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

    .playlist-header h3 {
        margin: 0 0 5px;
    }

    .playlist-header a {
        color: var(--primary-purple);
        font-weight: 600;
        text-decoration: none;
        font-size: 14px;
    }

.playlist-body {
    flex-grow: 1;
    overflow-y: auto;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
}

    .playlist-body:hover {
        overflow-y: auto;
    }

    .playlist-body::-webkit-scrollbar {
        width: 1px;
    }

    .playlist-body::-webkit-scrollbar-track {
        background: transparent;
    }

    .playlist-body::-webkit-scrollbar-thumb {
        background-color: #e0e0e0;
        border-radius: 10px;
    }

    .playlist-body:hover::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.5);
    }

.chapter {
    padding: 20px;
}

    .chapter h4 {
        margin: 0 0 15px;
    }

    .chapter ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

.lesson-item {
    display: flex;
    align-items: start;
    gap: 15px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .lesson-item:not(:last-child) {
        margin-bottom: 10px;
    }

    .lesson-item:hover {
        background-color: var(--page-bg);
    }

    .lesson-item.active {
        background-color: #f0efff;
    }

    .lesson-item i {
        font-size: 18px;
        margin-top: 3px;
        color: var(--light-text);
    }

    .lesson-item.active i {
        color: var(--primary-purple);
    }

    .lesson-item.completed i {
        color: var(--completed-green);
    }

    .lesson-item a {
        display: block;
        font-weight: 400;
        line-height: 1.4;
        text-decoration: none
    }

    .lesson-item small {
        font-size: 12px;
        color: var(--light-text);
    }

    .lesson-item .time {
        color: var(--light-text);
        font-weight: bold
    }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .player-container {
        flex-direction: column;
    }

    .lesson-playlist {
        width: 100%;
        height: auto;
        max-height: 50vh;
    }

    .main-content, .lesson-playlist {
        height: auto;
    }
}

.resource-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #fff;
    transition: background .2s ease, box-shadow .2s ease;
}

    .resource-item:hover {
        background: #f9fafb;
        box-shadow: 0 4px 10px rgba(0,0,0,.04);
    }

.resource-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-icon {
    font-size: 28px;
}

    .file-icon.pdf {
        color: #dc2626;
    }

    .file-icon.link {
        color: #2563eb;
    }

.resource-title {
    display: block;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
}

    .resource-title:hover {
        text-decoration: underline;
    }

.resource-meta {
    font-size: 13px;
    color: #6b7280;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #2563eb;
    border: 1px solid #2563eb;
    border-radius: 6px;
    text-decoration: none;
    transition: all .2s ease;
}

    .btn-download:hover {
        background: #2563eb;
        color: #fff;
    }


/*Phần tài liệu*/
.document-page {
    max-width: 960px;
}

    .document-page .doc-title {
        font-size: 28px;
        font-weight: 700;
    }

    .document-page .doc-subtitle {
        color: #6c757d;
    }

    .document-page .doc-section {
        background: #fff;
        padding: 20px;
        border-radius: 14px;
        box-shadow: 0 8px 24px rgba(0,0,0,.05);
    }

        .document-page .doc-section .section-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 16px;
        }

        .document-page .doc-section .video-wrapper {
            position: relative;
            padding-top: 56.25%;
            border-radius: 12px;
            overflow: hidden;
        }

            .document-page .doc-section .video-wrapper video,
            .document-page .doc-section .video-wrapper iframe {
                position: absolute;
                inset: 0;
                width: 100%;
                height: 100%;
            }

        .document-page .doc-section .doc-content p {
            line-height: 1.7;
        }

        .document-page .doc-section .doc-content h5 {
            margin-top: 16px;
            font-weight: 600;
        }

        .document-page .doc-section .download-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

            .document-page .doc-section .download-list .download-item {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 14px 16px;
                border: 1px solid #eee;
                border-radius: 12px;
                text-decoration: none;
                color: inherit;
                transition: all .2s ease;
            }

                .document-page .doc-section .download-list .download-item:hover {
                    background: #f8f9ff;
                    border-color: #dbe0ff;
                }

                .document-page .doc-section .download-list .download-item .file-info {
                    display: flex;
                    align-items: center;
                    gap: 12px;
                }

                    .document-page .doc-section .download-list .download-item .file-info .file-icon {
                        font-size: 28px;
                    }

                        .document-page .doc-section .download-list .download-item .file-info .file-icon.pdf {
                            color: #dc3545;
                        }

                        .document-page .doc-section .download-list .download-item .file-info .file-icon.zip {
                            color: #0d6efd;
                        }

                    .document-page .doc-section .download-list .download-item .file-info .file-name {
                        font-weight: 600;
                    }

                    .document-page .doc-section .download-list .download-item .file-info .file-meta {
                        font-size: 13px;
                        color: #6c757d;
                    }

                .document-page .doc-section .download-list .download-item .download-btn {
                    background: linear-gradient(90deg, #512BD4, #0B5ED7);
                    color: #fff;
                    padding: 6px 14px;
                    border-radius: 20px;
                    font-size: 13px;
                    font-weight: 600;
                }

                .document-page .doc-section .download-list .download-item.download-locked {
                    background: #f8f9fa;
                    border-style: dashed;
                }

                    .document-page .doc-section .download-list .download-item.download-locked .download-register {
                        font-size: 13px;
                        font-weight: 600;
                        color: #512BD4;
                        text-decoration: none;
                    }

                        .document-page .doc-section .download-list .download-item.download-locked .download-register:hover {
                            text-decoration: underline;
                        }

                    .document-page .doc-section .download-list .download-item.download-locked .file-icon {
                        opacity: .6;
                    }
/*MEET*/
/* --- Meet page --- */
.meet-page {
    margin-top: 20px;
}

    /* Tiêu đề và phụ đề */
    .meet-page .meet-title {
        font-weight: 600;
        font-size: 1.8rem;
        color: #212529;
    }

    .meet-page .meet-subtitle {
        font-size: 1rem;
        color: #6c757d;
    }

    /* Form lọc theo ngày */
    .meet-page form.row .form-control {
        border-radius: 8px;
        padding: 8px 12px;
    }

    .meet-page form.row .btn {
        border-radius: 8px;
        margin-right: 8px;
    }

    .meet-page form.row .btn-outline-secondary {
        color: #495057;
    }

    /* Danh sách Meet */
    .meet-page .meet-list {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

        /* Item Meet */
        .meet-page .meet-list .meet-item {
            display: flex;
            flex-wrap: wrap;
            background-color: #fff;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            padding: 15px 20px;
            transition: transform 0.2s;
        }

            .meet-page .meet-list .meet-item:hover {
                transform: translateY(-3px);
            }

            /* Thời gian Meet */
            .meet-page .meet-list .meet-item .meet-time {
                flex: 0 0 140px;
                text-align: center;
                padding: 15px 10px;
                border-radius: 12px;
                font-weight: 600;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            }

            /* Trạng thái */
            .meet-page .meet-list .meet-item .time-active {
                background: var(--gradient-dotnet);
                color: white;
            }

            .meet-page .meet-list .meet-item .time-expired {
                background-color: #f8d7da;
                color: #842029;
            }

            /* Ngày */
            .meet-page .meet-list .meet-item .meet-time .date {
                font-size: 1.4rem;
                font-weight: 700;
                margin-bottom: 5px;
            }

            /* Giờ */
            .meet-page .meet-list .meet-item .meet-time .time {
                font-size: 1.2rem;
                font-weight: 600;
                margin-bottom: 6px;
            }

            /* Trạng thái chữ */
            .meet-page .meet-list .meet-item .meet-time .time-status {
                font-size: 0.9rem;
                font-weight: 600;
                padding: 4px 8px;
                border-radius: 8px;
                color: #fff;
            }

            /* Màu trạng thái */
            .meet-page .meet-list .meet-item .time-active .time-status {
                background-color: #0d6efd;
            }

            .meet-page .meet-list .meet-item .time-expired .time-status {
                background-color: #dc3545;
            }

            /* Thông tin Meet */
            .meet-page .meet-list .meet-item .meet-info {
                flex: 1;
                padding: 10px 20px;
            }

                .meet-page .meet-list .meet-item .meet-info h5.meet-topic a {
                    color: var(--dark-text);
                    font-weight: 600;
                    text-decoration: none;
                }

                    .meet-page .meet-list .meet-item .meet-info h5.meet-topic a:hover {
                        text-decoration: underline;
                    }

                .meet-page .meet-list .meet-item .meet-info .meet-meta {
                    list-style: none;
                    padding: 0;
                    margin-top: 8px;
                    font-size: 0.9rem;
                    color: #495057;
                }

                    .meet-page .meet-list .meet-item .meet-info .meet-meta li {
                        margin-bottom: 4px;
                    }

            /* Hành động Meet */
            .meet-page .meet-list .meet-item .meet-action {
                flex: 0 0 180px;
                display: flex;
                align-items: center;
                justify-content: center;
            }

                .meet-page .meet-list .meet-item .meet-action .btn-register,
                .meet-page .meet-list .meet-item .meet-action .meet-link {
                    display: inline-block;
                    padding: 8px 14px;
                    border-radius: 8px;
                    text-decoration: none;
                    font-weight: 500;
                    transition: all 0.2s;
                }

                .meet-page .meet-list .meet-item .meet-action .btn-register {
                    background-color: #0d6efd;
                    color: #fff;
                }

                    .meet-page .meet-list .meet-item .meet-action .btn-register:hover {
                        background-color: #0b5ed7;
                        color: #fff;
                    }

                .meet-page .meet-list .meet-item .meet-action .meet-link {
                    display: inline-block;
                    padding: 8px 16px;
                    border-radius: 50px;
                    text-decoration: none;
                    font-weight: 500;
                    transition: all 0.3s;
                    background: var(--primary-purple);
                    color: #fff;
                }

                    .meet-page .meet-list .meet-item .meet-action .meet-link:hover {
                        background: linear-gradient(135deg, #218838, #157347);
                        color: #fff;
                    }

@media (max-width: 768px) {
    .meet-page .meet-list .meet-item {
        flex-direction: column;
        align-items: flex-start;
    }

        .meet-page .meet-list .meet-item .meet-time,
        .meet-page .meet-list .meet-item .meet-action {
            flex: 1 1 100%;
            margin-bottom: 10px;
        }

        .meet-page .meet-list .meet-item .meet-action {
            justify-content: flex-start;
        }
}

/*Meet detail*/
/* --- Meet Detail Page --- */
.meet-detail {
    margin-top: 20px;
    color: #212529;
}

    /* CARD 1: Thông tin + Form */
    .meet-detail .card {
        border-radius: 12px;
        box-shadow: 0 6px 18px rgba(0,0,0,0.06);
        transition: transform 0.2s;
    }

        .meet-detail .card:hover {
            transform: translateY(-2px);
        }

    /* Card Body */
    .meet-detail .card-body {
        padding: 25px;
    }

        .meet-detail .card-body h3 {
            font-weight: 600;
            font-size: 1.5rem;
            display: flex;
            align-items: center;
            gap: 10px;
            color: var(--light-text);
        }

            .meet-detail .card-body h3 i {
                font-size: 1.1rem;
                min-width: 28px;
                text-align: center;
                color: #0a3d62;
            }


        .meet-detail .card-body .mb-1,
        .meet-detail .card-body .mb-2 {
            font-size: 1.05rem;
            line-height: 1.5;
            color: #495057;
            display: flex;
            align-items: center;
        }

            .meet-detail .card-body .mb-1 i,
            .meet-detail .card-body .mb-2 i {
                font-size: 1rem;
                width: 30px;
                text-align: center;
                margin-right: 10px;
                display: inline-block;
                background: #635e5e;
                -webkit-background-clip: text;
            }

        /* Nút Mở phòng Meet */
        .meet-detail .card-body a.btn-primary {
            margin-top: 12px;
            border-radius: 50px;
            padding: 10px 20px;
            font-weight: 600;
            font-size: 1rem;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: linear-gradient(135deg, #0d6efd, #0a58ca);
            border: none;
            transition: all 0.3s;
        }

            .meet-detail .card-body a.btn-primary:hover {
                background: linear-gradient(135deg, #0a58ca, #084298);
            }

        /* Form đăng ký (phải) */
        .meet-detail .card-body h5 {
            font-size: 1.2rem;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
        }

            .meet-detail .card-body h5 i {
                font-size: 1.2rem;
                margin-right: 6px;
                color: #198754;
            }

        /* Input form hiện đại */
        .meet-detail .card-body form .form-control {
            border-radius: 50px;
            padding: 12px 20px;
            font-size: 0.95rem;
            border: 1px solid #ced4da;
            transition: all 0.3s;
            box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
        }

            .meet-detail .card-body form .form-control:focus {
                border-color: #0d6efd;
                box-shadow: 0 0 8px rgba(13,110,253,0.3);
            }

        /* Button đăng ký */
        .meet-detail .card-body form button.btn-success {
            border-radius: 50px;
            background: linear-gradient(135deg, #28a745, #198754);
            color: #fff;
            font-weight: 600;
            padding: 10px 25px;
            font-size: 1rem;
            transition: all 0.3s;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

            .meet-detail .card-body form button.btn-success:hover {
                background: linear-gradient(135deg, #218838, #157347);
            }

    /* User Box (tab danh sách) */
    .meet-detail .user-box {
        background-color: #fff;
        border-radius: 12px;
        box-shadow: 0 3px 8px rgba(0,0,0,0.08);
        padding: 18px;
        transition: transform 0.2s, box-shadow 0.2s;
    }

        .meet-detail .user-box:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(0,0,0,0.12);
        }

        .meet-detail .user-box .avatar {
            width: 42px;
            height: 42px;
            font-size: 1.2rem;
            line-height: 42px;
            text-align: center;
        }

        .meet-detail .user-box .fw-semibold {
            font-weight: 600;
            font-size: 1rem;
        }

        /* Text small trong user-box */
        .meet-detail .user-box .text-muted {
            font-size: 0.9rem;
        }

/* Responsive */
@media (max-width: 768px) {
    .meet-detail .card-body .row {
        flex-direction: column;
    }

    .meet-detail .card-body .col-md-7,
    .meet-detail .card-body .col-md-5 {
        flex: 1 1 100%;
        margin-bottom: 15px;
    }

    .meet-detail .card-body form button.btn-success {
        width: 100%;
    }
}




/*Login*/

.btn-register {
    border: none;
    background: #198754;
    color: #fff;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-login {
    font-size: 14px;
    font-weight: 600;
    color: #512BD4;
    text-decoration: none;
}

    .btn-login:hover {
        text-decoration: underline;
    }


/* Responsive */
@media (max-width: 768px) {
    .meet-item {
        grid-template-columns: 1fr;
    }

    .meet-time {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 8px;
    }
}

/*Giới thiệu*/
.about-page {
    max-width: 1100px;
}

    /* HERO */
    .about-page .about-hero {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: 32px;
        align-items: center;
        background: linear-gradient(135deg, #f5f7ff, #eef1ff);
        padding: 32px;
        border-radius: 20px;
    }

        .about-page .about-hero .hero-title {
            font-size: 34px;
            font-weight: 800;
            line-height: 1.2;
        }

        .about-page .about-hero .hero-desc {
            font-size: 16px;
            color: #555;
            margin: 16px 0;
        }

        .about-page .about-hero .hero-promo {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 16px;
        }

            .about-page .about-hero .hero-promo span {
                background: #fff;
                padding: 8px 14px;
                border-radius: 20px;
                font-size: 14px;
                font-weight: 600;
                box-shadow: 0 4px 12px rgba(0,0,0,.06);
            }

        .about-page .about-hero .hero-image img {
            width: 100%;
            border-radius: 16px;
            box-shadow: 0 12px 32px rgba(0,0,0,.12);
        }

    /* GIẢNG VIÊN */
    .about-page .about-teacher .section-title {
        font-size: 26px;
        font-weight: 700;
    }

    .about-page .about-teacher .teacher-card {
        display: grid;
        grid-template-columns: 220px 1fr;
        gap: 24px;
        background: #fff;
        padding: 24px;
        border-radius: 18px;
        box-shadow: 0 8px 24px rgba(0,0,0,.06);
    }

    .about-page .about-teacher .teacher-avatar img {
        width: 100%;
        border-radius: 16px;
    }

    .about-page .about-teacher .teacher-info h3 {
        font-size: 22px;
        font-weight: 700;
    }

    .about-page .about-teacher .teacher-info a {
        text-decoration: none
    }

    .about-page .about-teacher .teacher-info .teacher-role {
        color: #512BD4;
        font-weight: 600;
        margin-bottom: 12px;
    }

    .about-page .about-teacher .teacher-info .teacher-desc {
        line-height: 1.7;
        margin-bottom: 12px;
    }

    .about-page .about-teacher .teacher-info .teacher-exp {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .about-page .about-teacher .teacher-info .teacher-exp li {
            margin-bottom: 6px;
            font-size: 14px;
        }

/* RESPONSIVE */
@media (max-width: 768px) {
    .about-page .about-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

        .about-page .about-hero .hero-promo {
            justify-content: center;
        }

    .about-page .about-teacher .teacher-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
}


/*Chưa cấp quyền*/
.access-denied-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .access-denied-page .access-card {
        max-width: 480px;
        width: 100%;
        background: #fff;
        padding: 40px 32px;
        border-radius: 20px;
        text-align: center;
        box-shadow: 0 12px 40px rgba(0,0,0,.08);
    }

        .access-denied-page .access-card .access-icon {
            font-size: 56px;
            color: #dc3545;
            margin-bottom: 12px;
        }

        .access-denied-page .access-card h1 {
            font-size: 64px;
            font-weight: 800;
            margin: 0;
            color: #512BD4;
        }

        .access-denied-page .access-card h2 {
            font-size: 22px;
            font-weight: 700;
            margin: 8px 0 16px;
        }

        .access-denied-page .access-card p {
            color: #6c757d;
            line-height: 1.6;
            margin-bottom: 24px;
        }

        .access-denied-page .access-card .access-actions {
            display: flex;
            justify-content: center;
            gap: 12px;
        }

        .access-denied-page .access-card .access-note {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            background: #f0f4ff;
            color: #0b5ed7;
            padding: 10px 14px;
            border-radius: 12px;
            font-size: 14px;
            font-weight: 500;
            margin-bottom: 24px;
        }

        .access-denied-page .access-card .access-actions .btn-success {
            background: linear-gradient(90deg, #198754, #20c997);
            border: none;
        }

            .access-denied-page .access-card .access-actions .btn-success:hover {
                opacity: .9;
            }


@media (max-width: 576px) {
    .access-denied-page .access-card {
        padding: 32px 20px;
    }

        .access-denied-page .access-card h1 {
            font-size: 52px;
        }
}

.password-wrapper {
    position: relative;
}

    .password-wrapper input {
        width: 100%;
        padding-right: 40px;
    }

    .password-wrapper .toggle-password {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        color: #6c757d;
    }

        .password-wrapper .toggle-password:hover {
            color: #000;
        }

/*Teacher*/
.teacher {
    background: #f5f7fb;
    padding: 40px 0;
}

.teacher-header {
    background: linear-gradient(135deg, #355c7d, #6c5ce7);
    border-radius: 20px;
    padding: 30px;
    color: #fff;
}

    .teacher-header .avatar {
        width: 160px;
        height: 160px;
        border-radius: 50%;
        overflow: hidden;
        border: 5px solid #fff;
        margin-right: 30px;
    }

        .teacher-header .avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    .teacher-header .name {
        font-size: 32px;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .teacher-header .summary {
        font-size: 16px;
        opacity: 0.95;
        max-width: 700px;
    }

    .teacher-header .social a {
        display: inline-flex;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        background: rgba(255,255,255,.2);
        color: #fff;
        margin-right: 10px;
        transition: .3s;
        font-size: 18px;
    }

        .teacher-header .social a:hover {
            background: #fff;
            color: #6c5ce7;
        }

.teacher-card {
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    border: none;
    height: 100%;
}

    .teacher-card .card-header {
        background: transparent;
        border-bottom: 1px solid #eee;
        font-weight: 600;
        font-size: 16px;
    }

        .teacher-card .card-header i {
            color: #6c5ce7;
            margin-right: 6px;
        }

    .teacher-card .card-body p {
        margin-bottom: 8px;
        color: #444;
    }

    .teacher-card h5 {
        font-weight: 600;
        margin-bottom: 10px;
    }

.teacher .info,
.teacher .info * {
    color: #fff !important;
}