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

h1, h2 {
    color: #667eea !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: black;
    min-height: 100vh;
    color: white;
}

.dashboard-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.task-tracker-section {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.tracker-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding: 2rem 0;
    /* // max-width: 900px; */
}

.header-visual {
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.task-icon {
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(102, 126, 234, 0.3));
}

.subtitle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0 1.5rem 0;
    gap: 1rem;
}

.subtitle-line {
    height: 1px;
    width: 60px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
}

.subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.feature-highlights {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.highlight-tag {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.highlight-tag:hover {
    transform: translateY(-2px);
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes orbit {
    0% { transform: rotate(0deg) translateX(50px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(50px) rotate(-360deg); }
}

.tracker-header h1 {
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tracker-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .tracker-header h1 {
        font-size: 2.2rem;
    }

    .tracker-description {
        font-size: 1rem;
    }

    .feature-highlights {
        justify-content: center;
        gap: 0.5rem;
    }

    .highlight-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

.filters-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.filters-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #667eea;
}

.reload-button {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.reload-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.reload-button:active {
    transform: translateY(0);
}

.reload-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.filter-select, .filter-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-select:focus, .filter-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.filter-select option {
    background: #2a2a2a;
    color: white;
}

.analytics-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.analytics-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 320px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.analytics-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.8s ease;
}

.analytics-card:hover::before {
    left: 100%;
}

.analytics-card:hover {
    transform: translateY(-10px);
    border-color: rgba(102, 126, 234, 0.4);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 20px 40px rgba(102, 126, 234, 0.2),
        0 10px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.analytics-number {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.analytics-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.analytics-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

.tasks-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    min-height: 400px;
}

.tasks-header {
    font-size: 1.3rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.task-table th,
.task-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.task-table th {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.task-table td {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.task-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.week-cell {
    font-weight: 600;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.date-cell {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.name-cell {
    color: #4CAF50;
    font-weight: 500;
}

.total-cell {
    background: rgba(102, 126, 234, 0.15);
    font-weight: bold;
    color: #667eea;
}

.complexity-expert {
    /* // color: #ff6b6b; */
    color: #9a6bffff;
    font-weight: 600;
}

.complexity-hard {
    /* // color: #ffa726; */
    color: #9a6bffff;
    font-weight: 600;
}

.complexity-medium {
    /* // color: #66bb6a; */
    color: #9a6bffff;
    font-weight: 600;
}

/* Trainer Statistics Table Styles */
.trainer-stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.trainer-stats-table th,
.trainer-stats-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trainer-stats-table th {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
}

.trainer-stats-table td {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
}

.trainer-stats-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.trainer-name {
    color: #4CAF50;
    font-weight: 600;
    text-align: left;
}

.merged-stat {
    color: #4CAF50;
    font-weight: 600;
}

.rework-stat {
    color: #ffa726;
    font-weight: 600;
}

.resubmitted-stat {
    color: #2196F3;
    font-weight: 600;
}

.discarded-stat {
    color: #ff6b6b;
    font-weight: 600;
}

.percentage-stat {
    font-weight: 500;
    opacity: 0.8;
}

.total-row {
    background: rgba(102, 126, 234, 0.1);
    border-top: 2px solid rgba(102, 126, 234, 0.3);
}

.total-row td {
    font-weight: bold;
    color: #667eea;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #4CAF50;
    animation: spin 1s ease-in-out infinite;
}

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

.table-wrapper {
    overflow: auto;
    border-radius: 15px;
    /* // max-height: 800px; */
}

.no-data {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    padding: 3rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .task-tracker-section {
        padding: 0 1rem;
    }

    .tracker-header h1 {
        font-size: 2.2rem;
    }

    .tracker-description {
        font-size: 1rem;
    }

    .filters-container {
        padding: 1.5rem;
    }

    .filters-header {
        flex-direction: column;
        gap: 1rem;
    }

    .filters-grid {
        grid-template-columns: 1fr;
    }

    .analytics-container {
        grid-template-columns: 1fr;
    }

    .analytics-number {
        font-size: 2rem;
    }

    .task-table th,
    .task-table td,
    .trainer-stats-table th,
    .trainer-stats-table td {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
}