
    body {
        background-color: #f8f9fa;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    /* Welcome Header */
    .welcome-header {
        padding: 20px 0;
    }

    .card {
        margin-bottom: unset !important;
    }

    /* Running Event Card - Green gradient like in the image */
    .running-event-card {
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
        border-radius: 15px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        color: white;
        position: relative;
        overflow: hidden;
    }

    .running-event-card .card-body {
        padding: 25px;
        text-align: center;
        position: relative;
    }

    .running-event-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .event-badge {
        position: absolute;
        top: 15px;
        right: 15px;
        background: rgba(255,255,255,0.2);
        border-radius: 50%;
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .event-plus {
        color: white;
        font-size: 1.2rem;
        font-weight: bold;
    }

    .event-title {
        font-size: 1rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .event-select {
        background: rgba(255,255,255,0.2);
        border: 1px solid rgba(255,255,255,0.3);
        color: white;
        border-radius: 8px;
        font-size: 0.9rem;
        width: auto;
        min-width: 120px;
    }

    .event-select option {
        background: #28a745;
        color: white;
    }

    /* Card styling to match the clean design */
    .admin-card {
        background-color: white;
        border-radius: 15px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        margin-bottom: 20px;
        border: none;
    }

    /* Employee Summary Table Styling */
    .employee-summary-table {
        margin-bottom: 0;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .employee-summary-table thead th {
        background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
        color: white;
        font-weight: 600;
        font-size: 1rem;
        padding: 15px;
        border: none;
    }

    .employee-summary-table tbody td {
        padding: 12px 15px;
        vertical-align: middle;
        border-color: #e9ecef;
        font-size: 0.9rem;
    }

    .employee-summary-table tbody tr:hover {
        background-color: rgba(0, 123, 255, 0.05);
    }

    /* Enhanced Toggle Animation */
    .expand-icon {
        cursor: pointer;
        transition: all 0.3s ease;
        color: #007bff;
        font-size: 1.2rem;
        padding: 5px;
        border-radius: 50%;
        background: rgba(0, 123, 255, 0.1);
    }

    .expand-icon.expanded {
        transform: rotate(90deg);
        color: #dc3545;
        background: rgba(220, 53, 69, 0.1);
    }

    .expand-icon:hover {
        color: #0056b3;
        background: rgba(0, 123, 255, 0.2);
        transform: scale(1.1);
    }

    .expand-icon.expanded:hover {
        color: #c82333;
        background: rgba(220, 53, 69, 0.2);
    }

    /* Employee Details Content Enhanced */
    .employee-details-content {
        padding: 25px;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        border-radius: 15px;
        margin: 15px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        border: 1px solid #e9ecef;
        position: relative;
        overflow: hidden;
    }

    .employee-details-content::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #007bff, #28a745, #ffc107, #dc3545);
    }

    /* Inline Close Button Enhanced */
    .inline-close-btn {
        position: absolute;
        top: 15px;
        right: 20px;
        background: linear-gradient(135deg, #dc3545, #c82333);
        color: white;
        border: none;
        border-radius: 50%;
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
        z-index: 10;
    }

    .inline-close-btn:hover {
        background: linear-gradient(135deg, #c82333, #a71e2a);
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    }

    /* Employee Details Row Animation */
    .employee-details-row {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
        border-left: 5px solid #007bff;
        animation: slideDown 0.4s ease-in-out;
    }

    .employee-details-row td {
        padding: 0 !important;
        border: none !important;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .admin-card .card-header {
        background: transparent;
        border-bottom: 1px solid #f1f1f1;
        padding: 20px 25px 15px;
    }

    .admin-card .card-body {
        padding: 25px;
    }

    .admin-card .card-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: #495057;
        margin-bottom: 0;
    }

    /* Enhanced KPI Performance Card */
    .kpi-performance-card {
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        border: none;
        border-radius: 15px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .kpi-performance-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    }

    .kpi-performance-card .card-header {
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        border-bottom: 1px solid rgba(0,123,255,0.1);
        padding: 20px 25px 10px;
    }

    .kpi-performance-card .card-title {
        font-size: 1.2rem;
        font-weight: 600;
        color: #2c3e50;
    }

    /* Chart Legend Styling */
    .chart-legend {
        background: rgba(248, 249, 250, 0.5);
        border-radius: 8px;
        padding: 12px;
        border: 1px solid rgba(0,0,0,0.05);
    }

    .chart-legend .legend-color {
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    /* KPI Performance Stats - Enhanced with color coding */
    .performance-stats {
        display: flex;
        justify-content: space-between;
        gap: 20px;
        margin-bottom: 25px;
    }

    .performance-stat {
        flex: 1;
        display: flex;
        align-items: center;
        padding: 8px 12px;
        border-radius: 12px;
        background: #ffffff;
        border: 1px solid #e9ecef;
        gap: 12px;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        position: relative;
        overflow: hidden;
    }

    .performance-stat:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    }

    .performance-stat::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: var(--stat-color, #e9ecef);
        transition: width 0.3s ease;
    }

    .performance-stat:hover::before {
        width: 6px;
    }

    /* Individual stat colors */
    .performance-stat.far-below-target {
        --stat-color: #dc3545;
    }

    .performance-stat.below-target {
        --stat-color: #ffc107;
    }

    .performance-stat.meet-target {
        --stat-color: #28a745;
    }

    .performance-stat.above-target {
        --stat-color: #007bff;
    }

    .stat-icon {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .stat-color-indicator {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    }

    .stat-content {
        text-align: left;
    }

    .performance-stat .stat-label {
        font-size: 0.85rem;
        color: #6c757d;
        font-weight: 500;
        margin-bottom: 4px;
    }

    .performance-stat .stat-number {
        font-size: 12px;
        font-weight: bold;
        color: #495057;
        line-height: 1;
    }

    /* Chart Container */
    .chart-container {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Performance Category Bars - Matching the right side in image */
    .category-header {
        text-align: center;
    }

    .category-list {
        max-height: 300px;
        overflow-y: auto;
    }

    .category-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid #f1f1f1;
    }

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

    .category-name {
        font-size: 0.85rem;
        color: #495057;
        font-weight: 500;
        min-width: 50px;
    }

    .category-bar {
        flex: 1;
        height: 8px;
        background: #e9ecef;
        border-radius: 4px;
        margin: 0 12px;
        position: relative;
        overflow: hidden;
    }

    .category-progress {
        height: 100%;
        border-radius: 4px;
        transition: width 0.8s ease;
    }

    .category-percentage {
        font-size: 0.8rem;
        font-weight: 600;
        color: #495057;
        min-width: 45px;
        text-align: right;
    }

    /* Calendar styles */
    .calendar-container {
        text-align: center;
    }

    .calendar-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: #495057;
    }

    .calendar-weekdays {
        display: flex;
        justify-content: space-between;
        margin-top: 15px;
        padding: 0 5px;
    }

    .weekday {
        font-size: 0.75rem;
        color: #6c757d;
        font-weight: 500;
        flex: 1;
        text-align: center;
    }

    .calendar-grid {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 15px;
        flex-wrap: wrap;
    }

    .calendar-day {
        width: 32px;
        height: 32px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        font-weight: 500;
        color: #6c757d;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .calendar-day:hover {
        background: #e9ecef;
    }

    .calendar-day-active {
        background: #28a745;
        color: white;
        font-weight: 600;
    }

    .calendar-events {
        text-align: left;
        border-top: 1px solid #f1f1f1;
    }

    .calendar-event {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 0;
        font-size: 0.85rem;
    }

    .event-time {
        font-weight: 500;
        color: #495057;
        min-width: 50px;
    }

    .event-details {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .event-type {
        font-size: 0.8rem;
        color: #6c757d;
    }

    .event-name {
        font-weight: 500;
        color: #495057;
    }

    /* Team KPI Overview */
    .team-kpi-overview {
        text-align: center;
        border-top: 1px solid #f1f1f1;
        padding-top: 15px;
    }

    .kpi-overview-box {
        background: #f8f9fa;
        border-radius: 8px;
        padding: 15px;
        margin-top: 10px;
    }

    .kpi-overview-title {
        font-weight: 600;
        color: #495057;
        font-size: 0.9rem;
    }

    .kpi-overview-subtitle {
        font-size: 0.8rem;
        color: #6c757d;
        margin-top: 2px;
    }

    /* Enhanced KPI Items Card Styling */
    .bg-gradient-primary {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

    .icon-circle {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
    }

    .kpi-items-badge .badge {
        font-size: 0.8rem;
        letter-spacing: 0.5px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    /* Modern KPI Table Styling */
    .modern-kpi-table {
        border-collapse: separate;
        border-spacing: 0;
        overflow: hidden;
    }

    .modern-kpi-table thead th {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        color: white;
        font-weight: 600;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border: none;
        position: relative;
        vertical-align: middle;
    }

    .modern-kpi-table thead th:first-child {
        border-radius: 0;
    }

    .modern-kpi-table thead th:last-child {
        border-radius: 0;
    }

    .modern-kpi-table tbody td {
        padding: 1rem 0.75rem;
        border: none;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        font-size: 0.9rem;
        vertical-align: middle;
        transition: all 0.3s ease;
    }

    .modern-kpi-table tbody tr {
        transition: all 0.3s ease;
        position: relative;
    }

    .modern-kpi-table tbody tr:hover {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
        transform: translateX(3px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    .modern-kpi-table tbody tr:hover td {
        border-bottom-color: rgba(102, 126, 234, 0.2);
    }

    /* Enhanced Badge Styles for Table Content */
    .kpi-type-badge {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 0.4rem 0.8rem;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
        border: none;
    }

    .score-badge {
        padding: 0.5rem 1rem;
        border-radius: 25px;
        font-weight: 700;
        font-size: 0.85rem;
        text-align: center;
        min-width: 60px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.2);
        border: 2px solid transparent;
        position: relative;
        overflow: hidden;
    }

    .score-badge::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.5s ease;
    }

    .score-badge:hover::before {
        left: 100%;
    }

    .score-excellent {
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
        color: white;
        border-color: #28a745;
    }

    .score-good {
        background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
        color: white;
        border-color: #ffc107;
    }

    .score-poor {
        background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
        color: white;
        border-color: #dc3545;
    }

    /* Work Indicator Styling */
    .work-indicator-cell {
        font-weight: 600;
        color: #2c3e50;
        max-width: 250px;
        line-height: 1.4;
    }

    .work-indicator-cell::before {
        content: '▶';
        color: #667eea;
        margin-right: 8px;
        font-size: 0.8rem;
    }

    /* Target and Weight Styling */
    .target-cell, .weight-cell {
        font-weight: 600;
        color: #495057;
        text-align: center;
    }

    .weight-cell::after {
        content: '%';
        color: #6c757d;
        font-weight: 400;
        margin-left: 2px;
    }

    /* Period and Calculation Styling */
    .period-cell, .calculation-cell, .polarity-cell {
        text-align: center;
        font-size: 0.85rem;
        color: #6c757d;
        font-weight: 500;
    }

    /* No Data Row Styling */
    .no-data-row {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        color: #6c757d;
        font-style: italic;
        text-align: center;
        padding: 2rem;
    }

    .no-data-row td {
        border: none !important;
        padding: 2rem !important;
    }

    .no-data-icon {
        font-size: 2rem;
        color: #dee2e6;
        margin-bottom: 1rem;
    }

    /* Employee Table */
    .employee-table-container {
        background: white;
        border-radius: 15px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        overflow: hidden;
    }

    /* Employee Details Collapse Section */
    .employee-details-card {
        border: none;
        border-radius: 15px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        margin: 10px 0;
        animation: slideDown 0.3s ease-in-out;
    }

    /* DataTable row expansion styles */
    .employee-details-row {
        background: #f8f9fa !important;
        border-left: 4px solid #007bff;
    }

    .employee-details-row td {
        padding: 0 !important;
        border: none !important;
    }

    .employee-details-content {
        padding: 20px;
        background: white;
        border-radius: 10px;
        margin: 10px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        border: 1px solid #e9ecef;
    }

    .expand-icon {
        cursor: pointer;
        transition: transform 0.3s ease;
        color: #007bff;
        font-size: 1.2rem;
    }

    .expand-icon.expanded {
        transform: rotate(90deg);
        color: #dc3545;
    }

    .expand-icon:hover {
        color: #0056b3;
    }

    /* Close button for inline details */
    .inline-close-btn {
        position: absolute;
        top: 10px;
        right: 15px;
        background: #dc3545;
        color: white;
        border: none;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .inline-close-btn:hover {
        background: #c82333;
        transform: scale(1.1);
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .employee-details-card .card-header {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-bottom: 2px solid #dee2e6;
        border-radius: 15px 15px 0 0;
    }

    .employee-kpi-summary {
        background: #f8f9fa;
        border-radius: 12px;
        padding: 20px;
        border: 1px solid #e9ecef;
    }

    .employee-kpi-summary .summary-item {
        text-align: center;
        margin-bottom: 10px;
    }

    .employee-kpi-summary .summary-label {
        font-size: 0.85rem;
        color: #6c757d;
        margin-bottom: 8px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .employee-kpi-summary .summary-value {
        font-size: 1rem;
        font-weight: 600;
        color: #495057;
    }

    .period-highlight {
        background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
        padding: 6px 12px;
        border-radius: 8px;
        font-size: 0.9rem;
        border: 1px solid #ffc107;
        display: inline-block;
    }

    .kpi-count-badge {
        background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 1.1rem;
        font-weight: bold;
        color: #1976d2;
        border: 1px solid #1976d2;
        display: inline-block;
    }

    .weight-badge {
        background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 1.1rem;
        font-weight: bold;
        color: #2e7d32;
        border: 1px solid #2e7d32;
        display: inline-block;
    }

    .achievement-badge {
        background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 1.1rem;
        font-weight: bold;
        color: #2e7d32;
        border: 1px solid #2e7d32;
        display: inline-block;
    }

    .status-badge {
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 0.9rem;
        font-weight: 600;
    }

    .employee-kpi-table {
        margin-top: 20px;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .employee-kpi-table th {
        background: #495057;
        color: white;
        font-weight: 600;
        padding: 15px 12px;
        font-size: 0.85rem;
        text-align: center;
        border: none;
    }

    .employee-kpi-table td {
        padding: 12px;
        vertical-align: middle;
        border-color: #e9ecef;
        font-size: 0.85rem;
        text-align: center;
    }

    .employee-kpi-table tbody tr:hover {
        background-color: #f8f9fa;
    }

    .employee-summary {
        background: #f8f9fa;
        border-radius: 10px;
        padding: 20px;
        border: 1px solid #e9ecef;
    }

    .summary-item {
        text-align: center;
    }

    .summary-label {
        font-size: 0.8rem;
        color: #6c757d;
        margin-bottom: 5px;
        font-weight: 500;
    }

    .summary-value {
        font-size: 0.9rem;
        font-weight: 600;
        color: #495057;
    }

    .employee-table table {
        margin-bottom: 0;
    }

    .employee-table th {
        background: #f8f9fa;
        font-weight: 600;
        color: #495057;
        border-bottom: 2px solid #dee2e6;
        padding: 15px 12px;
        font-size: 0.85rem;
    }

    .employee-table td {
        padding: 12px;
        vertical-align: middle;
        border-bottom: 1px solid #f1f1f1;
        font-size: 0.85rem;
    }

    .employee-avatar {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        margin-right: 10px;
        object-fit: cover;
    }

    .employee-info {
        display: flex;
        align-items: center;
    }

    .action-btn {
        padding: 6px 10px;
        border: none;
        border-radius: 6px;
        font-size: 0.75rem;
        cursor: pointer;
        margin: 0 2px;
        transition: all 0.2s ease;
    }

    .btn-view {
        background: #e3f2fd;
        color: #1976d2;
        border: 1px solid #bbdefb;
    }

    .btn-view:hover {
        background: #1976d2;
        color: white;
    }

    .btn-edit {
        background: #e8f5e8;
        color: #2e7d32;
        border: 1px solid #c8e6c9;
    }

    .btn-edit:hover {
        background: #2e7d32;
        color: white;
    }

    .btn-delete {
        background: #ffebee;
        color: #c62828;
        border: 1px solid #ffcdd2;
    }

    .btn-delete:hover {
        background: #c62828;
        color: white;
    }

    /* Enhanced Chart Container */
    .chart-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Responsive Design */
    @media (max-width: 1200px) {
        .performance-stats {
            flex-wrap: wrap;
        }
        
        .performance-stat {
            flex: 1 1 calc(50% - 10px);
            min-width: 200px;
        }
    }

    @media (max-width: 992px) {
        .performance-stats {
            flex-direction: column;
            gap: 15px;
        }
        
        .performance-stat {
            flex: none;
            width: 100%;
        }
        
        .chart-wrapper {
            height: 250px !important;
        }
        
        .calendar-grid {
            justify-content: space-around;
        }
        
        .category-list {
            max-height: none;
        }
    }

    @media (max-width: 768px) {
        .performance-stats {
            gap: 12px;
        }
        
        .performance-stat {
            padding: 12px;
            gap: 10px;
        }
        
        .performance-stat .stat-number {
            font-size: 1.2rem;
        }
        
        .performance-stat .stat-label {
            font-size: 0.8rem;
        }
        
        .chart-wrapper {
            height: 220px !important;
        }
        
        .chart-legend .d-flex {
            flex-direction: column;
            gap: 5px;
        }
        
        .chart-legend small {
            font-size: 0.75rem;
        }
        
        .category-item {
            padding: 10px 0;
        }
        
        .category-name {
            font-size: 0.8rem;
            min-width: 60px;
        }
        
        .category-percentage {
            font-size: 0.75rem;
        }
        
        .calendar-day {
            width: 28px;
            height: 28px;
            font-size: 0.8rem;
        }
        
        .calendar-weekdays .weekday {
            font-size: 0.7rem;
        }
        
        .event-name, .event-type {
            font-size: 0.8rem;
        }
        
        .running-event-card .card-body {
            padding: 20px;
        }
        
        .event-title {
            font-size: 0.9rem;
        }
    }

    @media (max-width: 576px) {
        .container-fluid {
            padding: 0 15px;
        }
        
        .welcome-header h2 {
            font-size: 1.5rem !important;
        }
        
        .welcome-header p {
            font-size: 0.9rem;
        }
        
        .btn-sm {
            font-size: 0.75rem;
            padding: 6px 12px;
        }
        
        .performance-stat {
            padding: 10px;
            margin-bottom: 10px;
        }
        
        .stat-color-indicator {
            width: 16px;
            height: 16px;
        }
        
        .performance-stat .stat-number {
            font-size: 1.1rem;
        }
        
        .performance-stat .stat-label {
            font-size: 0.75rem;
        }
        
        .chart-wrapper {
            height: 200px !important;
        }
        
        .card-title {
            font-size: 1rem !important;
        }
        
        .category-header h6 {
            font-size: 0.85rem !important;
        }
        
        .calendar-day {
            width: 24px;
            height: 24px;
            font-size: 0.75rem;
        }
        
        .calendar-weekdays .weekday {
            font-size: 0.65rem;
        }
        
        .calendar-events {
            font-size: 0.75rem;
        }
        
        .event-time {
            min-width: 45px;
            font-size: 0.75rem;
        }
        
        .running-event-card {
            margin-bottom: 20px !important;
        }
        
        .event-select {
            font-size: 0.8rem;
            min-width: 100px;
        }
        
        .admin-card .card-body {
            padding: 15px;
        }
        
        .admin-card .card-header {
            padding: 15px;
        }
        
        .kpi-overview-box {
            padding: 12px;
        }
        
        .kpi-overview-title {
            font-size: 0.85rem;
        }
        
        .kpi-overview-subtitle {
            font-size: 0.75rem;
        }
    }

    @media (max-width: 576px) {
        .calendar-day {
            width: 28px;
            height: 28px;
            font-size: 0.8rem;
        }

        .employee-details-card .card-body {
            padding: 15px;
        }

        .employee-kpi-summary {
            padding: 15px;
        }

        .period-highlight,
        .kpi-count-badge,
        .weight-badge,
        .achievement-badge {
            padding: 4px 8px;
            font-size: 0.8rem;
        }

        /* Make table more compact on very small screens */
        .employee-kpi-table {
            font-size: 0.7rem;
        }

        .employee-kpi-table th,
        .employee-kpi-table td {
            padding: 6px 4px;
            white-space: nowrap;
        }

        /* Allow horizontal scroll for table on very small screens */
        .employee-kpi-details .table-responsive {
            border: 1px solid #dee2e6;
            border-radius: 0.375rem;
        }
    }

        /* Mobile responsiveness for modern KPI table */
        .modern-kpi-table {
            font-size: 0.75rem;
        }

        .modern-kpi-table thead th {
            padding: 0.5rem 0.25rem;
            font-size: 0.7rem;
        }

        .modern-kpi-table tbody td {
            padding: 0.75rem 0.5rem;
        }

        .kpi-type-badge {
            padding: 0.25rem 0.5rem;
            font-size: 0.65rem;
        }

        .score-badge {
            padding: 0.3rem 0.6rem;
            font-size: 0.75rem;
            min-width: 50px;
        }

        .work-indicator-cell {
            max-width: 120px;
            font-size: 0.8rem;
        }

        .icon-circle {
            width: 35px;
            height: 35px;
            font-size: 1rem;
        }

        /* Stack table headers and content vertically on very small screens */
        .modern-kpi-table thead th .d-flex {
            flex-direction: column;
            align-items: center;
            gap: 0.25rem;
        }

        .modern-kpi-table thead th i {
            margin: 0 !important;
        }

    @media (max-width: 576px) {
        /* Very compact mobile view */
        .modern-kpi-table thead th {
            padding: 0.4rem 0.2rem;
            font-size: 0.65rem;
        }

        .modern-kpi-table tbody td {
            padding: 0.6rem 0.3rem;
            font-size: 0.7rem;
        }

        .work-indicator-cell {
            max-width: 100px;
            font-size: 0.7rem;
        }

        .work-indicator-cell::before {
            display: none; /* Hide arrow on very small screens */
        }

        .kpi-type-badge {
            padding: 0.2rem 0.4rem;
            font-size: 0.6rem;
        }

        .score-badge {
            padding: 0.25rem 0.5rem;
            font-size: 0.7rem;
            min-width: 45px;
        }

        .no-data-row .no-data-icon {
            font-size: 1.5rem;
        }

        .no-data-row h6 {
            font-size: 0.9rem;
        }

        .no-data-row p {
            font-size: 0.8rem;
        }

        /* Card header improvements for mobile */
        .kpi-items-badge {
            display: none; /* Hide badge on very small screens */
        }

        .icon-circle {
            width: 30px;
            height: 30px;
            font-size: 0.9rem;
        }
    }

    /* Smooth transitions for collapse */
    .collapsing {
        transition: height 0.35s ease;
    }

    /* Enhanced button styles */
    .btn-outline-secondary {
        transition: all 0.3s ease;
    }

    .btn-outline-secondary:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }

    /* Loading animation enhancement */
    .spinner-border {
        animation: spinner-border 0.75s linear infinite;
    }

    @keyframes spinner-border {
        to {
            transform: rotate(360deg);
        }
    }

    /* New Event Modal Styles */
    .modal-xl {
        max-width: 1200px;
    }

    .event-badge {
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, #28a745, #20c997);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    }

    .event-badge:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    }

    .event-plus {
        color: white;
        font-size: 20px;
        font-weight: bold;
    }

    #newEventModal .modal-content {
        border: none;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }

    #newEventModal .modal-header {
        border-radius: 15px 15px 0 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    #newEventModal .modal-footer {
        border-radius: 0 0 15px 15px;
        border-top: 1px solid #e9ecef;
    }

    #newEventModal .card {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
        border-radius: 12px;
    }

    #newEventModal .dropdown-toggle::after {
        margin-left: auto;
    }

    #newEventModal .table th {
        background-color: #f8f9fa;
        font-weight: 600;
        font-size: 0.875rem;
        padding: 12px 8px;
    }

    #newEventModal .table td {
        padding: 10px 8px;
        vertical-align: middle;
    }

    #newEventModal .avatar-sm {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    #newEventModal .badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    #newEventModal .sticky-top {
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .employee-checkbox:checked {
        background-color: #28a745;
        border-color: #28a745;
    }

    .btn-success.btn-sm {
        padding: 4px 8px;
        font-size: 0.75rem;
    }

    .table-responsive {
        border-radius: 8px;
    }

    .form-select:focus,
    .form-control:focus {
        border-color: #86b7fe;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

    /* Participant count badge animation */
    #selectedParticipantsCount {
        animation: fadeInScale 0.3s ease-in-out;
    }

    @keyframes fadeInScale {
        from {
            opacity: 0;
            transform: scale(0.8);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    /* Hover effects for table rows */
    #employeeTableBody tr:hover {
        background-color: rgba(13, 110, 253, 0.05);
    }

    /* Custom scrollbar for employee table */
    .table-responsive::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }

    .table-responsive::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .table-responsive::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 3px;
    }

    .table-responsive::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }