/* Biểu đồ */
.chart-container {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-top: 1.5rem;
    position: relative;
    min-height: 400px;
}

/* Thêm style cho điểm nối hiển thị số lượng */
.chartjs-tooltip {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 4px;
    color: white;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: bold;
}

/* Loading */
#loading-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 5px;
    z-index: 1000;
    display: none;
}

/* Message */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1000;
    max-width: 300px;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Menu toggle cho mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: absolute;
        right: 1rem;
        top: 1rem;
    }
    
    nav ul {
        flex-direction: column;
    }
}
.success {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    border: 1px solid #f5c6cb;
}

.info {
    background-color: #d1ecf1;
    color: #0c5460;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    border: 1px solid #bee5eb;
}

.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 5px;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
/* Cỡ chữ lớn cho thông báo */
/* ===== QR SCANNER STYLES ===== */

/* Cỡ chữ lớn cho thông báo */
.success-large {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    border: 1px solid #c3e6cb;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}

.error-large {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    border: 1px solid #f5c6cb;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}

.info-large {
    background-color: #d1ecf1;
    color: #0c5460;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    border: 1px solid #bee5eb;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}

/* Nút lớn hơn cho QR scanner */
.btn-large {
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin: 10px;
    font-size: 18px;
    font-weight: bold;
    min-width: 200px;
    transition: all 0.3s ease;
}

.btn-success-large {
    background-color: #28a745;
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary-large {
    background-color: #6c757d;
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-large:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-large:active {
    transform: translateY(0);
}

.btn-large:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Hiệu ứng rung */
@keyframes vibrate {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.vibrate {
    animation: vibrate 0.5s ease-in-out;
}

/* Container xác nhận */
#confirmation {
    display: none;
    margin-top: 20px;
    text-align: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #dee2e6;
}
/* ===== IMPROVED MOBILE MENU STYLES ===== */
@media (max-width: 768px) {
    /* Header cải tiến */
    header {
        padding: 0.5rem;
        position: relative;
        min-height: 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background-color: #2c3e50;
    }
    
    header h1 {
        font-size: 1.3rem;
        margin: 0;
        padding: 0;
        text-align: left;
        flex: 1;
        color: white;
    }
    
    /* Nút menu cải tiến */
    .menu-toggle {
        display: block;
        position: relative;
        right: 0;
        top: 0;
        background: rgba(255, 255, 255, 0.2);
        border: none;
        border-radius: 4px;
        color: white;
        font-size: 2rem;
        cursor: pointer;
        padding: 0.5rem 0.8rem;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1001;
    }
    
    /* Menu navigation cải tiến */
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #2c3e50;
        z-index: 1000;
        transition: right 0.3s ease;
        padding-top: 70px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }
    
    nav.show {
        right: 0;
    }
    
    /* Overlay khi menu mở */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }
    
    .nav-overlay.show {
        display: block;
    }
    
    /* Danh sách menu */
    nav ul {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    nav ul li {
        width: 100%;
        text-align: left;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    nav ul li:last-child {
        border-bottom: none;
    }
    
    nav ul li a {
        display: block;
        padding: 1.2rem 1.5rem;
        font-size: 1.3rem;
        color: white;
        text-decoration: none;
        transition: background-color 0.3s;
        font-weight: 500;
    }
    
    nav ul li a:hover {
        background-color: #3498db;
    }
    
    /* Hiệu ứng cho menu icon */
    .menu-toggle span {
        display: block;
        position: relative;
    }
    
    .menu-toggle.show span:before {
        content: "✕";
        font-size: 1.8rem;
    }
}

/* Cải thiện cho màn hình rất nhỏ */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.1rem;
        margin-right: 10px;
    }
    
    .menu-toggle {
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }
    
    nav {
        width: 85%;
    }
    
    nav ul li a {
        padding: 1.1rem 1.2rem;
        font-size: 1.2rem;
    }
}


/* Container xác nhận cho mobile - Phiên bản mới */
.confirmation-container {
    display: none;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

/* Phần thông báo học sinh */
.student-info {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #0c5460;
    margin: 0;
    padding-right: 10px;
    word-break: break-word;
}

/* Container các nút xác nhận */
.button-group {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

/* Nút nhỏ hơn */
.btn-small {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    min-width: 80px;
    transition: all 0.3s ease;
}

.btn-success-small {
    background-color: #28a745;
    color: white;
}

.btn-secondary-small {
    background-color: #6c757d;
    color: white;
}

.btn-small:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-small:active {
    transform: translateY(0);
}


/* Thêm các style mới */
.form-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.download-template {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Container chính - chiếm toàn bộ chiều rộng */
.container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 10px;
    box-sizing: border-box;
}

/* Form container */
.form-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Form group */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Buttons */
.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

/* Message styles */
.success {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
    border: 1px solid #c3e6cb;
}

.info {
    background-color: #d1ecf1;
    color: #0c5460;
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
    border: 1px solid #bee5eb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
    border: 1px solid #f5c6cb;
}

/* Download template */
.download-template {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* User info in header */
.user-info {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.user-info span {
    margin-right: 10px;
}

.user-info a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    background-color: #e74c3c;
    border-radius: 4px;
}

.user-info a:hover {
    background-color: #c0392b;
}

/* Responsive user info */
@media (max-width: 768px) {
    .user-info {
        flex-direction: column;
        padding: 1rem;
        text-align: center;
    }
}


/* ===== USER INFO STYLES ===== */

.user-info {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-greeting {
    color: #2c3e50; /* Màu tối cho desktop */
    font-weight: 500;
    margin-right: 10px;
    white-space: nowrap;
}

.user-info a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    background-color: #e74c3c;
    border-radius: 4px;
    font-size: 0.9rem;
}

.user-info a:hover {
    background-color: #c0392b;
}

/* Responsive user info */
@media (max-width: 768px) {
    .user-info {
        flex-direction: column;
        padding: 1rem;
        text-align: center;
        width: 100%;
    }
    
    .user-greeting {
        color: white; /* Màu trắng cho mobile */
        margin-right: 0;
        margin-bottom: 10px;
        font-size: 1rem;
    }
}

/*thêm ngày 2025-09-16 cải thiện giao diện trang chủ*/
/* ===== IMPROVED DASHBOARD STYLES ===== */
.dashboard {
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard h2 {
    color: #3498db;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
}

/* Date selector styles */
.date-selector {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.date-selector form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.date-selector label {
    font-weight: bold;
    margin-right: 5px;
}

.date-selector input[type="date"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.date-selector button {
    padding: 8px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.date-selector button:hover {
    background-color: #2980b9;
}

/* Stats cards */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.stat-card p {
    font-size: 1.8rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 1rem;
}

/* Progress bar */
.progress-bar {
    background: #ecf0f1;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress {
    height: 100%;
    background: #2ecc71;
    transition: width 0.3s;
}

.progress.high {
    background: #2ecc71;
}

.progress.medium {
    background: #f39c12;
}

.progress.low {
    background: #e74c3c;
}

.percentage {
    font-weight: bold;
    color: #7f8c8d;
}

/* Class stats table */
.class-stats {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.class-stats h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.horizontal-class-table {
    width: 100%;
    border-collapse: collapse;   
}

.horizontal-class-table th {
    background-color: #3498db;
    color: white;
    padding: 12px;
    text-align: left;
}

.horizontal-class-table td {
    padding: 12px;
    border-bottom: 1px solid #ecf0f1;
}

.horizontal-class-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.horizontal-class-table tr:hover {
    background-color: #f1f8ff;
}

.class-name {
    font-weight: bold;
    color: #2c3e50;    
}

.attended, .total {
    text-align: center;
    font-weight: bold;
}

.percentage {
    text-align: center;
    font-weight: bold;
    color: #3498db;
}

.progress-cell {
    min-width: 120px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .dashboard {
        padding: 0.5rem;
    }
    
    .dashboard h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .date-selector form {
        display: flex;
		flex-wrap: wrap;
		gap: 10px;
		align-items: center;
    }	
    
    .date-selector label {
        margin-bottom: 5px;
    }
    
    .date-selector button {
        width: 40%;
        margin: 5px 0;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card h3 {
        font-size: 0.9rem;
    }
    
    .stat-card p {
        font-size: 1.5rem;
    }
    
    .class-stats {
        padding: 1rem;
    }
    
    .class-stats h3 {
        font-size: 1rem;
    }    
    
    .horizontal-class-table {
        font-size: 0.8rem;                  
    }  
        
    .horizontal-class-table th,
    .horizontal-class-table td {
        padding: 8px 3px;
    }
    
    .progress-cell {
        min-width: 60px;        
    }
    .class-name {
        max-width: none;
        text-wrap: balance;
        white-space: normal;
        line-height: 1.3;
        padding: 8px 5px;   
        font-size: 0.5rem;    
    }        
}

@media (max-width: 480px) {
    .horizontal-class-table {
        font-size: 0.75rem;
    }
    
    .horizontal-class-table th,
    .horizontal-class-table td {
        padding: 6px 3px;
    }
    
    .class-name {
        max-width: 90px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;        
    }
}





/* ===== IMPROVED HEADER STYLES ===== */
header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 70px;
}

header h1 {
    font-size: 1.2rem;
    margin: 0;
    color: white;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
}

header h1 i {
    margin-right: 10px;
    font-size: 1.5rem;
}

/* Navigation styles for desktop */
nav ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 5px;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

nav ul li a i {
    font-size: 1.1rem;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* User info styles */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
    position: relative;
}

.user-greeting {
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
}

.user-info a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    background-color: #e74c3c;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-info a:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.user-info a i {
    font-size: 0.9rem;
}

/* Dropdown menu for user (future enhancement) */
.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    min-width: 200px;
    display: none;
    z-index: 1000;
}

.user-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #2c3e50;
    text-decoration: none;
    transition: background 0.3s;
}

.user-dropdown-menu a:hover {
    background: #f8f9fa;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 0.5rem;
    }
    
    nav ul li a {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .user-greeting {
        font-size: 0.85rem;
    }
}

@media (max-width: 900px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    nav ul li a {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .user-greeting {
        display: none;
    }
}

/* Mobile styles (keep existing but ensure consistency) */
@media (max-width: 768px) {
    .header-container {
        padding: 0 0.5rem;
        height: 60px;
    }
    
    header h1 {
        font-size: 1.3rem;
        padding-left: 10px;
    }
    
    #current-time {
        display: none;
    }
    
    /* Ensure mobile menu toggle is styled properly */
    .menu-toggle {
        background: rgba(255, 255, 255, 0.2);
        border: none;
        border-radius: 4px;
        color: white;
        font-size: 1.8rem;
        cursor: pointer;
        padding: 0.5rem;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1001;
    }
    
    /* Mobile nav styles */
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #2c3e50;
        z-index: 1000;
        transition: right 0.3s ease;
        padding-top: 70px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }
    
    nav.show {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    nav ul li:last-child {
        border-bottom: none;
    }
    
    nav ul li a {
        padding: 1.2rem 1.5rem;
        font-size: 1.1rem;
        border-radius: 0;
        justify-content: flex-start;
    }
    
    nav ul li a:hover {
        background-color: #3498db;
        transform: none;
    }
    
    .user-info {
        flex-direction: column;
        padding: 1rem;
        text-align: center;
        width: 100%;
        margin-left: 0;
        gap: 10px;
    }
    
    .user-greeting {
        display: block;
        color: white;
        margin-right: 0;
        margin-bottom: 10px;
        font-size: 1rem;
    }
}

/* Main content adjustment for new header */
main {
    padding-top: 20px;
    min-height: calc(100vh - 120px);
}

/* Smooth scrolling for entire page */
html {
    scroll-behavior: smooth;
}

/* Animation for header */
header {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 768px) {
    /* Thay đổi hiệu ứng menu */
    nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #2c3e50;
        z-index: 1000;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        padding-top: 70px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        opacity: 0;
        visibility: hidden;
		transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    nav.show {
        opacity: 1;
        visibility: visible;
    }
    
    /* Đảm bảo menu không bị ẩn bên ngoài màn hình */
    nav ul {
        transform: none;
        transition: none;
		transition: transform 0.3s ease;
    }
    
    nav.show ul {
        transform: none;
    }
}



/*2025-09-17*/
@media (max-width: 768px) {
    .table-responsive {
        border: 1px solid #ddd;
        border-radius: 8px;
    }
    
    .table-responsive table {
        min-width: 100%;
        margin-bottom: 0;
    }
    
    /* Hiển thị thanh cuộn rõ ràng hơn trên mobile */
    .table-responsive::-webkit-scrollbar {
        height: 8px;
    }
    
    .table-responsive::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 4px;
    }
    
    .table-responsive::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }
    
    /* Điều chỉnh kích thước các phần tử trong bảng */
    .table-responsive th, 
    .table-responsive td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .action-buttons .btn {
        min-width: auto;
        font-size: 12px;
        padding: 4px 8px;
    }
}

/* Form container */
.form-container {
	font-size: 15px;
	width: 100%;
    background-color: white;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
	margin-top: 20px;
}
.container h2 {
  font-size: 25px;
  margin-bottom: 10px;
  margin-top: 10px;
  color: #3498db;
  padding-top: 0px;
  text-align: center;
}
h2 {
  font-size: 25px;
  margin-bottom: 10px;
  margin-top: 10px;
  color: #3498db;
  padding-top: 0px;
  text-align: center;
}
h4 {
  font-size: 15px;
  margin-bottom: 10px;
  margin-top: 10px;
  color: #3498db;
  padding-top: 0px;
  text-align: center;
}

.login-container h2{
     color: #3498db;
}

/* Cải thiện hiển thị bảng thống kê điểm danh */

.horizontal-class-table {
    table-layout: fixed; /* Đặt layout cố định để dễ điều chỉnh */
    width: 100%;
}

/* Tăng độ rộng cột Lớp */
.horizontal-class-table th:nth-child(1),
.horizontal-class-table td:nth-child(1) {
    width: 25%; /* Tăng độ rộng cột Lớp lên 25% */
    min-width: 120px; /* Đặt độ rộng tối thiểu */
    padding: 8px 10px;
}

/* Giảm độ rộng các cột còn lại */
.horizontal-class-table th:nth-child(2),
.horizontal-class-table td:nth-child(2),
.horizontal-class-table th:nth-child(3),
.horizontal-class-table td:nth-child(3) {
    width: 12%; /* Giảm độ rộng cột Điểm danh và Sĩ số */
    text-align: center;
    padding: 8px 5px;
}

.horizontal-class-table th:nth-child(4),
.horizontal-class-table td:nth-child(4) {
    width: 15%; /* Độ rộng cột Tỷ lệ */
    text-align: center;
    padding: 8px 5px;
}

.horizontal-class-table th:nth-child(5),
.horizontal-class-table td:nth-child(5) {
    width: 36%; /* Độ rộng cột Đánh giá */
    padding: 8px 10px;
}

/* Đảm bảo tên lớp hiển thị đầy đủ */
.class-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: bold;
}

/* Responsive điều chỉnh */
@media (max-width: 768px) {
    .horizontal-class-table th:nth-child(1),
    .horizontal-class-table td:nth-child(1) {
        width: 30%; /* Tăng thêm trên mobile */
        min-width: 100px;
    }
    
    .horizontal-class-table th:nth-child(2),
    .horizontal-class-table td:nth-child(2),
    .horizontal-class-table th:nth-child(3),
    .horizontal-class-table td:nth-child(3) {
        width: 10%; /* Thu nhỏ hơn trên mobile */
        padding: 6px 5px;
    }
    
    .horizontal-class-table th:nth-child(4),
    .horizontal-class-table td:nth-child(4) {
        width: 14%;
        padding: 6px 3px;
    }
    
    .horizontal-class-table th:nth-child(5),
    .horizontal-class-table td:nth-child(5) {
        width: 20%;
        padding: 6px 5px;
    }
    
    .class-name {
        max-width: none;
        white-space: normal;
        line-height: 1.3;
    }
}


/* Cố định tiêu đề bảng khi cuộn */
.table-responsive {
    position: relative;
    overflow: auto;
    max-height: 90vh; /* Giới hạn chiều cao để dễ thấy hiệu ứng */
}

.table-responsive table {
    width: 100%;
    border-collapse: collapse;
}

.table-responsive thead th {
    position: sticky;
    top: 0;
    z-index: 10;    
}