body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f0f2f5;
    color: #2C3E50;
}

.top-nav {
    background: #2C3E50;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    margin-right: 10px;
}

.nav-title {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li {
    margin-left: 20px;
}

.nav-text {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 12px;
    transition: background 0.3s;
}

.nav-text:hover {
    background: #3498DB;
    border-radius: 5px;
}

.nav-text.active {
    background: #3498DB;
    border-radius: 5px;
}

.lang-toggle {
    background: #3498DB;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.lang-toggle:hover {
    background: #2980B9;
}

.profile-img {
    height: 40px;
    border-radius: 50%;
}

.reports-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.reports-container h1 {
    font-size: 28px;
    color: #2C3E50;
    text-align: center;
    margin-bottom: 20px;
}

.stats-panel {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.stats-panel h2 {
    font-size: 22px;
    color: #34495E;
    margin-bottom: 20px;
}

.filter-container {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-container select, .filter-container button {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    width: 250px;
    box-sizing: border-box;
}

.filter-container button {
    border: none;
    color: #fff;
    cursor: pointer;
}

.thank-btn {
    background: #27AE60; /* لون دائم أخضر */
}

.thank-btn:hover {
    background: #219653; /* لون عند التأشير */
}

.reminder-btn {
    background: #E74C3C; /* لون دائم أحمر */
}

.reminder-btn:hover {
    background: #C0392B; /* لون عند التأشير */
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.stat-card.inactive {
    opacity: 0.6;
}

.stat-card h3 {
    font-size: 18px;
    margin: 0;
    color: #34495E;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #2C3E50;
    margin: 10px 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #ECF0F1;
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: #27AE60;
    transition: width 0.3s;
}

.progress.delayed {
    background: #E74C3C;
}

.progress.ongoing {
    background: #FFC107;
}

.chart-container {
    margin: 30px 0;
    text-align: center;
}

#pie-chart {
    max-width: 450px;
    max-height: 450px;
    margin: 0 auto;
}

.details-table {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.details-table h2 {
    font-size: 22px;
    color: #34495E;
    margin-bottom: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th, td {
    padding: 12px;
    text-align: center;
    border: 1.9px solid #00000047;
}

th:nth-child(1), td:nth-child(1) { width: 300px; }
th:nth-child(2), td:nth-child(2) { width: 200px; }
th:nth-child(3), td:nth-child(3) { width: 140px; }
th:nth-child(4), td:nth-child(4) { width: 160px; }
th:nth-child(5), td:nth-child(5) { width: 50px; }

th {
    background: #2C3E50;
    color: #fff;
    font-weight: bold;
}

.completed { background: rgba(39, 174, 96, 0.2); }
.delayed { background: rgba(231, 76, 60, 0.2); }
.in-progress { background: rgba(255, 193, 7, 0.2); }

.sort-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    margin-left: 5px;
}

.export-panel {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.export-btn, .notify-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    color: #fff;
    background: #3498DB;
}

.export-btn:hover, .notify-btn:hover {
    background: #2980B9;
}

.notify-btn {
    background: #8E44AD;
}

.notify-btn:hover {
    background: #7D3C98;
}

.footer {
    text-align: center;
    padding: 20px;
    background: #2C3E50;
    color: #fff;
    width: 100%;
}

@media print {
    .top-nav, .filter-container, .sort-btn, #select-all, .export-panel, .footer {
        display: none;
    }
    .reports-container {
        margin: 0;
        padding: 0;
    }
    .stats-panel, .details-table {
        box-shadow: none;
        padding: 0;
    }
    .stat-card {
        border: 1px solid #ddd;
    }
}