/* -------------------------------------------------------------
 * PREMIUM DARK-GLASSMORPHISM DESIGN SYSTEM (2026)
 * ------------------------------------------------------------- */

:root {
    --bg-dark: #0a0e17;
    --bg-card: rgba(20, 27, 45, 0.65);
    --bg-card-hover: rgba(26, 35, 58, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-glow: rgba(0, 180, 216, 0.3);
    
    --text-primary: #f1f3f9;
    --text-secondary: #9aa8c6;
    --text-muted: #5e6d8a;
    
    /* Accents */
    --accent-blue: #00b4d8;
    --accent-blue-glow: rgba(0, 180, 216, 0.5);
    --accent-green: #2ec4b6;
    --accent-green-glow: rgba(46, 196, 182, 0.5);
    --accent-purple: #7209b7;
    --accent-purple-glow: rgba(114, 9, 183, 0.5);
    --accent-yellow: #ffb703;
    --accent-red: #e63946;
    
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: radial-gradient(circle at 50% 0%, #151e36 0%, var(--bg-dark) 75%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Layout Utilities */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-1 { flex: 1; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-10 { gap: 10px; }
.gap-15 { gap: 15px; }
.mt-5 { margin-top: 5px; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mb-15 { margin-bottom: 15px; }
.pt-15 { padding-top: 15px; }
.pb-15 { padding-bottom: 15px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.border-top { border-top: 1px solid var(--border-color); }
.hidden { display: none !important; }
.pointer { cursor: pointer; }

/* Status Colors */
.bg-success { background: var(--accent-green) !important; color: #fff; }
.bg-warning { background: var(--accent-yellow) !important; color: #000; }
.bg-info { background: var(--accent-blue) !important; color: #fff; }
.bg-purple { background: var(--accent-purple) !important; color: #fff; }
.text-green { color: var(--accent-green) !important; }
.text-yellow { color: var(--accent-yellow) !important; }
.text-blue { color: var(--accent-blue) !important; }
.text-red { color: var(--accent-red) !important; }

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.95);
    border-left: 5px solid var(--accent-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    transition: var(--transition-smooth);
    transform: translateY(-20px);
    opacity: 0;
}
.toast.show {
    transform: translateY(0);
    opacity: 1;
}
.toast.success { border-left-color: var(--accent-green); }
.toast.error { border-left-color: var(--accent-red); }
.toast.warning { border-left-color: var(--accent-yellow); }

/* Loader Spinner */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue-glow);
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
}
.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    outline: none;
}
.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
}
.btn-lg {
    padding: 16px 32px;
    font-size: 17px;
    border-radius: 16px;
}
.btn-primary {
    background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.5);
}
.btn-secondary {
    background: linear-gradient(135deg, var(--accent-purple) 0%, #560bad 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(114, 9, 183, 0.3);
}
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(114, 9, 183, 0.5);
}
.btn-success {
    background: linear-gradient(135deg, var(--accent-green) 0%, #1b9aaa 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(46, 196, 182, 0.3);
}
.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 196, 182, 0.5);
}
.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-secondary);
}
.btn-block {
    display: flex;
    width: 100%;
}
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Inputs & Form Groups */
.input-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.input-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}
.input-field {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: var(--transition-smooth);
    width: 100%;
}
.input-field:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(0, 180, 216, 0.15);
}
.select-box {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239aa8c6'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 35px !important;
}

/* Sửa lỗi hiển thị chữ bị xén phần trên trong dropdown select */
select.input-field,
select.select-box,
select.form-control,
select {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 12px !important;
    line-height: 38px !important;
    height: 38px !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
}

.select-box option,
select.input-field option {
    background: #0f172a;
    color: #fff;
    padding: 10px;
}

/* Table Design */
.table-container {
    overflow-x: auto;
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(0,0,0,0.15);
}
.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 15px;
}
.table th, .table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}
.table th {
    background: rgba(255,255,255,0.02);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.table tbody tr {
    transition: var(--transition-smooth);
}
.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}
.table tbody tr:last-child td {
    border-bottom: none;
}

/* -------------------------------------------------------------
 * LOGIN SCREEN
 * ------------------------------------------------------------- */
.login-view-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}
.login-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}
.login-card:hover {
    border-color: var(--border-color-glow);
}
.login-header {
    text-align: center;
    margin-bottom: 35px;
}
.logo-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    border-radius: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(0, 180, 216, 0.3);
    margin-bottom: 20px;
}
.login-header h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1px;
}
.login-header p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 5px;
}
.login-footer {
    text-align: center;
    margin-top: 30px;
    color: var(--text-muted);
    font-size: 12px;
}

/* -------------------------------------------------------------
 * MAIN LAYOUT & NAV
 * ------------------------------------------------------------- */
.app-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.dashboard-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}
.logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo-glow {
    color: var(--accent-blue);
    text-shadow: 0 0 15px var(--accent-blue-glow);
}
.badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(0, 180, 216, 0.15);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    text-transform: uppercase;
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 500;
}
.avatar-icon {
    font-size: 24px;
    color: var(--text-secondary);
}

.dashboard-body {
    flex: 1;
    display: flex;
}

/* Sidebar Layout */
.sidebar {
    width: 260px;
    background: rgba(10, 14, 23, 0.4);
    border-right: 1px solid var(--border-color);
    padding: 30px 15px;
}
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}
.nav-item i {
    font-size: 18px;
}
.nav-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}
.nav-item.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(0, 180, 216, 0.15) 0%, transparent 100%);
    border-left: 4px solid var(--accent-blue);
}
.nav-badge {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-red);
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

/* Main Content Area */
.main-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    background: rgba(10, 14, 23, 0.2);
}
.content-header {
    margin-bottom: 30px;
}
.content-header h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 5px;
}
.content-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* -------------------------------------------------------------
 * STAFF SECTION UI
 * ------------------------------------------------------------- */
.today-schedule-card {
    border-left: 5px solid var(--accent-blue);
    background: linear-gradient(135deg, rgba(20, 27, 45, 0.8) 0%, rgba(10, 14, 23, 0.8) 100%);
}
.today-schedule-card h3 {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 700;
}
.schedule-block {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 15px 0;
}
.schedule-meta {
    display: flex;
    flex-direction: column;
}
.meta-lbl {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}
.meta-val {
    font-size: 16px;
    font-weight: 600;
}
.attendance-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

/* Grid & stats for history/summaries */
.stats-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.stat-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition-smooth);
}
.stat-box:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
}
.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.stat-info {
    display: flex;
    flex-direction: column;
}
.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}
.stat-val {
    font-size: 20px;
    font-weight: 700;
}
.text-glow-blue { text-shadow: 0 0 10px rgba(0,180,216,0.3); color: var(--accent-blue); }
.text-glow-green { text-shadow: 0 0 10px rgba(46,196,182,0.3); color: var(--accent-green); }

/* Livestream items grid */
.livestream-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
.livestream-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.livestream-card-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.livestream-brand {
    font-size: 12px;
    font-weight: bold;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.livestream-title {
    font-size: 17px;
    font-weight: 700;
    margin-top: 5px;
}
.livestream-time {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.livestream-notes {
    font-size: 13px;
    background: rgba(0,0,0,0.15);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 3px solid var(--accent-purple);
}
.livestream-photos-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}
.live-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-smooth);
}
.live-thumbnail:hover {
    transform: scale(1.1);
    border-color: var(--accent-blue);
}

/* -------------------------------------------------------------
 * MANAGER SECTION UI
 * ------------------------------------------------------------- */
.layout-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 992px) {
    .layout-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.scroll-container {
    overflow-y: auto;
    padding-right: 5px;
}

/* Approvals Stack */
.approvals-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.approval-card {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
@media (min-width: 768px) {
    .approval-card {
        flex-direction: row;
        align-items: center;
    }
}
.approval-info {
    flex: 1;
}
.approval-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}
.approval-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
}
.approval-images {
    display: flex;
    gap: 15px;
    margin: 10px 0;
}
.img-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.img-box span {
    font-size: 11px;
    color: var(--text-muted);
}
.attendance-photo {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-smooth);
}
.attendance-photo:hover {
    border-color: var(--accent-blue);
    transform: scale(1.05);
}
.approval-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 150px;
}

/* Schedule setup & stream layouts */
.stream-session-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.session-item-row {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}
.session-row-info {
    display: flex;
    flex-direction: column;
}
.session-row-info .brand {
    font-size: 11px;
    font-weight: bold;
    color: var(--accent-blue);
}
.session-row-info .title {
    font-weight: 600;
    font-size: 15px;
    margin-top: 3px;
}
.session-row-info .meta {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Status Badges */
.status-pill {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    border: 1px solid transparent;
}
.status-pill.approved {
    background: rgba(46, 196, 182, 0.12);
    border-color: var(--accent-green);
    color: var(--accent-green);
}
.status-pill.pending {
    background: rgba(255, 183, 3, 0.12);
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
}
.status-pill.rejected {
    background: rgba(230, 57, 70, 0.12);
    border-color: var(--accent-red);
    color: var(--accent-red);
}
.status-pill.active {
    background: rgba(46, 196, 182, 0.12);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

/* Quick Lists */
.quick-list-item {
    background: rgba(255,255,255,0.01);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.quick-list-item:hover {
    background: rgba(255,255,255,0.03);
}

/* -------------------------------------------------------------
 * CAMERA MODALS & MEDIA
 * ------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 9, 15, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    overflow: hidden;
    animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.camera-modal-content {
    max-width: 580px;
}
@keyframes scaleUp {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
}
.btn-close-modal {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.btn-close-modal:hover {
    color: #fff;
    transform: rotate(90deg);
}
.modal-body {
    padding: 25px;
}

/* Video streaming elements */
.video-container {
    width: 100%;
    aspect-ratio: 4/3;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--border-color);
}
#camera-stream, #camera-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.camera-instruction {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Live Session image dropzone */
.file-uploader-box {
    background: rgba(0, 0, 0, 0.2);
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.file-uploader-box:hover {
    border-color: var(--accent-blue);
    background: rgba(0, 180, 216, 0.03);
}
.uploader-icon {
    font-size: 32px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.hidden-input {
    display: none;
}
.thumbnail-preview {
    width: 100%;
    max-height: 250px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.remove-preview-btn {
    display: block;
    text-align: center;
    color: var(--accent-red);
    cursor: pointer;
    margin-top: 8px;
    font-size: 13px;
}

/* -------------------------------------------------------------
 * RESPONSIVENESS
 * ------------------------------------------------------------- */
/* Mobile menu styles and backdrop */
.mobile-menu-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    margin-right: 12px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}
.mobile-menu-btn:hover {
    color: var(--accent-blue);
    text-shadow: 0 0 8px var(--accent-blue-glow);
}

.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 9, 15, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1004;
    transition: opacity 0.3s ease;
}

/* -------------------------------------------------------------
 * RESPONSIVENESS
 * ------------------------------------------------------------- */
@media (max-width: 768px) {
    .dashboard-body {
        flex-direction: column;
    }
    /* Set sidebar as absolute floating drawer */
    .sidebar {
        position: fixed;
        top: 0;
        left: -280px; /* Hide by default */
        width: 280px;
        height: 100vh;
        background: rgba(10, 14, 23, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 1005;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        flex-direction: column;
        border-right: 1px solid var(--border-color);
        border-bottom: none;
        padding: 30px 20px;
    }
    .sidebar.open {
        left: 0; /* Slide in */
    }
    .sidebar-nav {
        flex-direction: column;
        overflow-x: visible;
        gap: 8px;
        width: 100%;
    }
    .nav-item {
        width: 100%;
        padding: 12px 15px;
        font-size: 15px;
        border-radius: 12px;
        white-space: nowrap;
        position: relative;
    }
    .nav-item.active {
        border-left: 4px solid var(--accent-blue);
        border-bottom: none;
        background: rgba(0, 180, 216, 0.08);
    }
    .nav-badge {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }
    .main-content {
        padding: 20px;
    }
    .hide-mobile {
        display: none;
    }
    .stats-summary-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .top-nav {
        padding: 15px;
    }
    .logo {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .stats-summary-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .stat-box {
        padding: 12px;
        border-radius: 14px;
        gap: 8px;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        border-radius: 10px;
    }
    .stat-info {
        align-items: center;
    }
    .stat-label {
        font-size: 11px;
    }
    .stat-val {
        font-size: 16px;
    }
}

/* --- Excel Import & Livestream Grid Table Styles --- */
.flex-wrap {
    flex-wrap: wrap;
}
.items-center {
    align-items: center;
}
.gap-15 {
    gap: 15px;
}
.italic {
    font-style: italic;
}
.text-muted {
    color: rgba(255,255,255,0.6);
}
.mb-20 {
    margin-bottom: 20px;
}
.ml-10 {
    margin-left: 10px;
}
.py-5 {
    padding-top: 5px;
    padding-bottom: 5px;
}
.px-10 {
    padding-left: 10px;
    padding-right: 10px;
}
.text-glow-green {
    color: #4ade80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
}
.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.grid-table {
    border-collapse: collapse;
    width: 100%;
}
.grid-table th {
    background: rgba(15, 23, 42, 0.8) !important;
    position: sticky;
    top: 0;
    z-index: 10;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    border-bottom: 2px solid rgba(255,255,255,0.1);
}
.grid-table td {
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 13px;
    vertical-align: middle;
}
.grid-table tr:hover {
    background: rgba(255,255,255,0.02);
}
.grid-table tr.key-live-row {
    background: rgba(234, 179, 8, 0.08);
}
.grid-table tr.key-live-row td:first-child {
    font-weight: bold;
    color: #eab308 !important;
}
.grid-cell-live {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    border-radius: 4px;
    padding: 6px 10px;
    transition: all 0.2s ease;
}
.grid-cell-live:hover {
    background: rgba(99, 102, 241, 0.25);
}
.grid-live-time {
    font-weight: 600;
    color: #818cf8;
    display: block;
}
.grid-live-staff {
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    display: block;
    margin-top: 3px;
}
.grid-live-attached-badge {
    display: inline-block;
    font-size: 10px;
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 2px 5px;
    border-radius: 3px;
    margin-top: 4px;
    font-weight: 500;
}
.grid-live-uploaded-by {
    display: block;
    font-size: 9px;
    color: rgba(16, 185, 129, 0.85);
    margin-top: 2px;
    font-style: italic;
}
.grid-live-unassigned {
    font-size: 11px;
    color: #ef4444;
    font-style: italic;
    cursor: pointer;
    display: block;
    margin-top: 3px;
}

/* --- Shift Cards for Staff Dashboard --- */
.shifts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
}
.shift-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}
.shift-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}
.shift-card.key-live-shift {
    border-left: 4px solid #eab308;
    background: rgba(234, 179, 8, 0.02);
}
.shift-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.shift-title {
    font-weight: 600;
    font-size: 15px;
    color: #fff;
}
.shift-time {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    margin-top: 5px;
}
.shift-status-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
.badge-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}
.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}
.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}
.badge-inactive {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255,255,255,0.5);
}
.shift-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
.shift-actions button {
    flex: 1;
}

/* Lưới phân ca làm việc hover */
#table-schedule-grid tbody td {
    cursor: pointer;
    transition: background 0.15s ease;
}
#table-schedule-grid tbody td:hover {
    background: rgba(255, 255, 255, 0.04) !important;
}
#table-schedule-grid tbody td:first-child {
    cursor: default;
}
#table-schedule-grid tbody td:first-child:hover {
    background: #131c31 !important;
}

/* Mobile optimizations */
.show-mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .show-mobile-only {
        display: flex !important;
    }
    
    .modal-overlay {
        padding: 10px;
    }
    
    .modal-content {
        border-radius: 16px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .grid-cell-live {
        padding: 8px;
        margin: 2px 0;
    }
}

/* Livestream Schedule Collision Warnings */
.grid-cell-live.live-collision {
    background: rgba(239, 68, 68, 0.15) !important;
    border: 1px solid #ef4444 !important;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.25);
}

.grid-live-collision-text {
    color: #f87171;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 3px;
}

/* Sticky columns and headers for Livestream Grid Tables */
.table.grid-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.table.grid-table thead tr:first-child th {
    position: sticky !important;
    top: 0 !important;
    z-index: 15 !important;
    background: #0f172a !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
    height: 45px !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
    border-bottom: 2px solid rgba(255,255,255,0.1) !important;
}

/* First cell in header: Top-Left cell (Ngày) */
.table.grid-table thead tr:first-child th:first-child {
    left: 0 !important;
    z-index: 16 !important;
}

/* Second row in the header (Total ca) */
.table.grid-table thead tr:nth-child(2) th,
.table.grid-table thead tr:nth-child(2) td {
    position: sticky !important;
    top: 45px !important;
    z-index: 13 !important;
    background: #1e293b !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    height: 40px !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
    border-bottom: 2px solid rgba(255,255,255,0.15) !important;
}

/* First cell in second row (Tổng ca label) */
.table.grid-table thead tr:nth-child(2) th:first-child,
.table.grid-table thead tr:nth-child(2) td:first-child {
    left: 0 !important;
    z-index: 14 !important;
    border-right: 2px solid rgba(255,255,255,0.1) !important;
}

/* First column in tbody (Date labels) */
.table.grid-table tbody td:first-child {
    position: sticky !important;
    left: 0 !important;
    z-index: 9 !important;
    border-right: 2px solid rgba(255,255,255,0.1) !important;
    background: #131c31 !important; /* solid background for date column */
}

/* Make sure key-live row in first column still has solid color */
.table.grid-table tbody tr.key-live-row td:first-child {
    background: #322d0d !important;
}


