:root {
    --navbar-height: 60px;
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --dark-color: #212529;
    --light-bg: #f8f9fa;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    overflow-x: hidden;
}

/* ============================================
   MAIN WRAPPER
   ============================================ */
.main-wrapper {
    margin-left: 0 !important;
    min-height: 100vh;
}

/* ============================================
   TOP NAVBAR
   ============================================ */
.top-navbar {
    position: sticky;
    top: 0;
    background: white;
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 999;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification-btn {
    position: relative;
    background: transparent;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--dark-color);
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s;
}

.notification-btn:hover {
    background: var(--light-bg);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    padding: 30px;
    min-height: calc(100vh - var(--navbar-height));
}

/* ============================================
   SIDEBAR OVERLAY (Dùng cho HUB module sidebar)
   ============================================ */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    backdrop-filter: blur(4px);
}

.sidebar-overlay.active {
    display: block;
}

/* ============================================
   CARD STYLES
   ============================================ */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    border: none;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
    color: white;
    padding: 20px;
    border-bottom: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.card-body {
    padding: 20px;
}

.card.border-danger {
    border-left: 4px solid var(--danger-color) !important;
}

.card.border-warning {
    border-left: 4px solid var(--warning-color) !important;
}

.card.border-danger .card-header,
.card.border-warning .card-header {
    font-weight: 600;
}

.card-body small.text-muted {
    display: block;
    margin-top: 8px;
    line-height: 1.5;
}

/* Dashboard Cards */
.stats-card {
    border-radius: 12px;
    padding: 20px;
    color: white;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.stats-card h5 {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.stats-card h2 {
    font-size: 2.5rem;
    font-weight: bold;
}

/* ============================================
   TABLE RESPONSIVE
   ============================================ */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    margin-bottom: 0;
}

.table thead th {
    background: var(--light-bg);
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    padding: 15px;
}

.table tbody td {
    padding: 15px;
    vertical-align: middle;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
    background: #0a58ca;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.4);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    border-radius: 8px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.alert-dismissible .btn-close {
    padding: 18px 20px;
}

.alert-danger {
    border-left: 4px solid var(--danger-color);
}

.alert h5 {
    margin-bottom: 10px;
    font-weight: 600;
}

.alert p:last-child {
    margin-bottom: 0;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.85rem;
}

.badge.bg-danger {
    background-color: var(--danger-color) !important;
}

.badge.bg-warning {
    background-color: var(--warning-color) !important;
    color: #000 !important;
}

/* ============================================
   FORMS
   ============================================ */
.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 10px 15px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.form-select:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    background-color: #e9ecef;
    border-color: #ced4da;
}

/* ============================================
   LINKS
   ============================================ */
a:not(.btn):not(.nav-link):not(.navbar-logo-link) {
    text-decoration: none;
    color: var(--dark-color);
    transition: color 0.2s ease;
}

a:not(.btn):not(.nav-link):not(.navbar-logo-link):hover {
    color: #0a58ca;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shadow-sm-custom {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.bi {
    margin-right: 4px;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Lock icon animation */
@keyframes shake {
    0%,
    100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

.bi-lock-fill {
    animation: shake 0.5s ease-in-out;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .top-navbar {
        padding: 0 15px;
    }

    .navbar-left {
        gap: 10px;
    }

    .navbar-right {
        gap: 10px;
    }

    .main-content {
        padding: 15px;
    }

    .table {
        font-size: 0.85rem;
    }

    .table thead {
        display: none;
    }

    .table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        background: white;
    }

    .table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 10px 15px;
        border: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .table tbody td:last-child {
        border-bottom: none;
    }

    .table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--dark-color);
    }

    .alert {
        padding: 12px;
        font-size: 0.9rem;
    }

    .alert h5 {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .row > * {
        margin-bottom: 15px;
    }

    .main-content {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .top-navbar {
        padding: 0 10px;
    }

    .notification-btn {
        font-size: 1.1rem;
        padding: 6px;
    }
}
/* Ẩn scrollbar toàn bộ trang */
html, body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE, Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

/* Ẩn scrollbar cho modal sidebar */
.module-sidebar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.module-sidebar::-webkit-scrollbar {
    display: none;
}

/* Ẩn scrollbar cho tất cả elements */
* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

*::-webkit-scrollbar {
    display: none;
}
/* ==========================================
   FLASH MESSAGES - MODERN STYLE
   ========================================== */
.flash-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    width: 100%;
}

.flash-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 4.7s forwards;
    border-left: 4px solid;
    background: white;
}

.flash-message.success {
    border-left-color: #198754;
    background: #ffffff;
}

.flash-message.danger {
    border-left-color: #dc3545;
    background: #ffffff;
}

.flash-message.warning {
    border-left-color: #ffc107;
    background: #ffffff;
}

.flash-message.info {
    border-left-color: #0dcaf0;
    background: #ffffff;
}

.flash-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.flash-message.success .flash-icon {
    background: #198754;
}

.flash-message.danger .flash-icon {
    background: #dc3545;
}

.flash-message.warning .flash-icon {
    background: #ffc107;
    color: #333;
}

.flash-message.info .flash-icon {
    background: #0dcaf0;
}

.flash-content {
    flex: 1;
    padding-top: 4px;
}

.flash-message strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #2c3e50;
}

.flash-message p {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
}

.flash-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: #6c757d;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.flash-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

.flash-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    width: 100%;
    animation: progressBar 5s linear forwards;
    opacity: 0.3;
}

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

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

@keyframes progressBar {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

@media (max-width: 768px) {
    .flash-container {
        top: 70px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .flash-message {
        padding: 14px 16px;
    }
}
/* Lỗi là xóa */

/* ============================================
   MOBILE BOTTOM NAVIGATION
   ============================================ */

/* MẶC ĐỊNH: ẨN bottom nav (cho desktop) */
.mobile-bottom-nav {
    display: none !important;
}

.mobile-user-dropdown,
.mobile-dropdown-overlay {
    display: none !important;
}

/* Desktop - Top Navbar bình thường */
@media (min-width: 769px) {
    .top-navbar {
        position: sticky;
        top: 0;
        display: flex;
    }
}

/* Mobile - Bottom Navbar CHỈ HIỆN ≤768px */
@media (max-width: 768px) {
    /* ẨN TOP NAVBAR trên mobile */
    .top-navbar {
        display: none !important;
    }

    /* HIỆN BOTTOM NAV trên mobile */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70px;
        background: white;
        display: flex !important;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding: 8px 0;
    }

    /* HIỆN mobile dropdown */
    .mobile-user-dropdown,
    .mobile-dropdown-overlay {
        display: block !important;
    }

    /* MAIN CONTENT - Thêm padding bottom cho bottom nav */
    .main-content {
        padding-bottom: 80px !important;
    }

    /* BOTTOM NAVIGATION BAR */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70px;
        background: white;
        display: flex;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding: 8px 0;
    }

    /* BOTTOM NAV ITEM */
    .bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        text-decoration: none;
        color: #6c757d;
        transition: all 0.3s ease;
        padding: 8px 4px;
        border-radius: 8px;
        position: relative;
        cursor: pointer;
        background: transparent;
        border: none;
    }

    .bottom-nav-item:hover,
    .bottom-nav-item.active {
        color: #0d6efd;
        background: rgba(13, 110, 253, 0.1);
    }

    .bottom-nav-item i {
        font-size: 1.4rem;
        transition: transform 0.3s ease;
    }

    .bottom-nav-item:active i {
        transform: scale(0.9);
    }

    .bottom-nav-item span {
        font-size: 0.7rem;
        font-weight: 600;
        text-align: center;
    }

    /* BADGE trên bottom nav */
    .bottom-nav-badge {
        position: absolute;
        top: 4px;
        right: 50%;
        transform: translateX(10px);
        background: #dc3545;
        color: white;
        font-size: 0.6rem;
        padding: 2px 5px;
        border-radius: 10px;
        font-weight: bold;
        min-width: 16px;
        text-align: center;
        border: 2px solid white;
    }

    /* USER AVATAR trên bottom nav */
    .bottom-nav-avatar {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: #0dcaf0;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 0.8rem;
        border: 2px solid #e0e0e0;
    }

    .bottom-nav-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

    /* USER DROPDOWN cho mobile bottom nav */
    .mobile-user-dropdown {
        position: fixed;
        bottom: 80px;
        right: 10px;
        background: white;
        border-radius: 12px;
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
        min-width: 240px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
        z-index: 999;
        overflow: hidden;
    }

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

    /* Backdrop overlay cho dropdown - HIDDEN mặc định */
    .mobile-dropdown-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 998;
        backdrop-filter: blur(2px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .mobile-dropdown-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

/* Extra small mobile */
@media (max-width: 480px) {
    .mobile-bottom-nav {
        height: 65px;
    }

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

    .bottom-nav-item span {
        font-size: 0.65rem;
    }

    .bottom-nav-avatar {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }
}

/* Landscape mobile - bottom nav thấp hơn */
@media (max-height: 500px) and (orientation: landscape) {
    .mobile-bottom-nav {
        height: 55px;
        padding: 4px 0;
    }

    .bottom-nav-item {
        padding: 4px 2px;
    }

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

    .bottom-nav-item span {
        font-size: 0.6rem;
    }

    .main-content {
        padding-bottom: 65px !important;
    }
}

/* ==========================================
   SKELETON LOADING - BOTTOM NAV
   ========================================== */
@media (max-width: 768px) {
    /* Bottom nav mượt mà xuất hiện */
    .mobile-bottom-nav {
        opacity: 1;
        animation: slideUpBottomNav 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes slideUpBottomNav {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    /* Badge xuất hiện mượt */
    .bottom-nav-badge {
        opacity: 0;
        transform: scale(0);
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .bottom-nav-badge.visible {
        opacity: 1;
        transform: scale(1);
    }

    /* Tap feedback - cảm giác nhạy */
    .bottom-nav-item {
        transition: all 0.15s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .bottom-nav-item:active {
        transform: scale(0.92);
        background: rgba(13, 110, 253, 0.15);
    }

    /* Icon bounce khi active */
    .bottom-nav-item.active i {
        animation: iconBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    @keyframes iconBounce {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.2); }
    }
}
/* ==========================================
   ẨN MENU BUTTON KHI KHÔNG Ở HUB 9:56 27/11
   ========================================== */

/* Mặc định ẨN menu button trên MỌI THIẾT BỊ */
#mobileModuleMenuBtn,
#moduleMenuBtn {
    display: none !important;
}

/* Desktop (>768px) - LUÔN ẨN nút menu */
@media (min-width: 769px) {
    #moduleMenuBtn {
        display: none !important;
    }
}

/* Mobile (≤768px) - CHỈ HIỆN khi ở Hub */
@media (max-width: 768px) {
    body.has-module-sidebar #mobileModuleMenuBtn {
        display: flex !important;
    }

    /* Căn giữa lại bottom nav khi ẩn menu */
    body:not(.has-module-sidebar) .mobile-bottom-nav {
        grid-template-columns: 1fr 1.2fr 1fr 1fr;
    }

    body.has-module-sidebar .mobile-bottom-nav {
        grid-template-columns: 1fr 1fr 1.2fr 1fr 1fr;
    }
}

/* ============================================
   TASK HEADER COMPONENT - Dùng cho các trang tasks
   (KHÔNG dùng cho hub.html)
   ============================================ */

/* Container chính của header task */
.task-header-container {
    margin-bottom: 20px;
}

/* Performance header khi dùng component */
.task-header-container .performance-header {
    background: #ffdd4a;
    border-radius: 16px;
    padding: 20px 25px;
    box-shadow: 0 4px 12px rgba(255, 209, 7, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 0;
}

/* Logo */
.task-header-container .performance-logo {
    flex-shrink: 0;
}

.task-header-container .performance-logo a {
    display: block;
    transition: transform 0.3s ease;
}

.task-header-container .performance-logo a:hover {
    transform: scale(1.05);
}

.task-header-container .performance-logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* Right section */
.task-header-container .performance-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.task-header-container .performance-title {
    margin: 0;
    color: #000000;
    font-weight: 900;
    font-size: 2.7rem;
    text-align: center;
    letter-spacing: 2px;
}

/* Filter bar */
.task-header-container .filter-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Nút filter date - CHI HIỂN THỊ NGÀY, KHÔNG CLICK ĐƯỢC */
.task-header-container .filter-date-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    min-height: 60px;
    background: darkblue;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.task-header-container .filter-date-btn:disabled {
    cursor: default;
    opacity: 1;
    background: darkblue;
}

.task-header-container .filter-date-btn:disabled:hover {
    transform: none;
}

.task-header-container .filter-date-btn .current-day {
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    min-width: 30px;
    text-align: center;
    line-height: 1;
}

/* Top/Bottom Users */
.task-header-container .top-bottom-users {
    display: flex;
    gap: 20px;
    align-items: center;
}

.task-header-container .top-user,
.task-header-container .bottom-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    min-height: 60px;
    border-radius: 12px;
    background: #f8f9fa;
    transition: all 0.3s;
}

.task-header-container .top-user {
    border: 2px solid #00ff89;
    background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 100%);
}

.task-header-container .bottom-user {
    border: 2px solid #dc3545;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
}

.task-header-container .user-badge-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.task-header-container .user-badge-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE - TABLET (769px - 992px)
   ============================================ */
@media (min-width: 769px) and (max-width: 992px) {
    .task-header-container .performance-title {
        font-size: 2rem;
    }

    .task-header-container .filter-date-btn {
        min-height: 56px;
        padding: 10px 16px;
    }

    .task-header-container .top-user,
    .task-header-container .bottom-user {
        min-height: 56px;
        padding: 10px 12px;
    }

    .task-header-container .user-badge-avatar {
        width: 36px;
        height: 36px;
    }

    .task-header-container .user-badge-name {
        font-size: 0.85rem;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (< 768px)
   ============================================ */
@media (max-width: 768px) {
    .task-header-container .performance-header {
        padding: 12px 15px;
        gap: 10px;
    }

    .task-header-container .performance-logo img {
        height: 40px;
    }

    .task-header-container .performance-title {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .task-header-container .filter-bar {
        gap: 8px;
    }

    .task-header-container .filter-date-btn {
        padding: 10px 12px;
        min-height: 44px;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .task-header-container .filter-date-btn .current-day {
        font-size: 1.5rem;
    }

    .task-header-container .top-bottom-users {
        gap: 6px;
    }

    .task-header-container .top-user,
    .task-header-container .bottom-user {
        padding: 8px 10px;
        min-height: 44px;
        border-radius: 10px;
    }

    .task-header-container .user-badge-avatar {
        width: 30px;
        height: 30px;
    }

    .task-header-container .user-badge-name {
        display: none;
    }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE (< 480px)
   ============================================ */
@media (max-width: 480px) {
    .task-header-container .performance-header {
        padding: 10px 12px;
        gap: 8px;
    }

    .task-header-container .performance-logo img {
        height: 45px;
    }

    .task-header-container .performance-title {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }

    .task-header-container .filter-date-btn {
        padding: 6px 8px;
        min-height: 36px;
        border-radius: 8px;
    }

    .task-header-container .filter-date-btn .current-day {
        font-size: 1.3rem;
    }

    .task-header-container .top-user,
    .task-header-container .bottom-user {
        padding: 6px 8px;
        min-height: 36px;
    }

    .task-header-container .user-badge-avatar {
        width: 26px;
        height: 26px;
    }
}