/* District Portal Styles */

/* General Styles */
.district-portal-login-container,
.district-portal-dashboard,
.district-portal-all-registrations,
.district-portal-registration-details {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Login Form Styles */
.district-portal-login-container {
    max-width: 500px;
    text-align: center;
    padding: 30px;
}

.district-portal-login-container h2 {
    margin-bottom: 20px;
    color: #23282d;
}

.login-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-actions {
    margin-top: 30px;
}

/* Dashboard Header */
.dashboard-header,
.page-header,
.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.dashboard-header h1,
.page-header h1,
.details-header h1 {
    margin: 0;
    font-size: 24px;
    color: #23282d;
}

.dashboard-actions .logout-button,
.header-actions .back-button,
.header-actions .download-button {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.header-actions .download-button {
    background-color: #4CAF50;
    color: white;
}

.header-actions .download-button:hover {
    background-color: #45a049;
}

/* Stats Overview */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background: #f9f9f9;
}

.stat-icon {
    margin-right: 15px;
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
}

.stat-content h3 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #666;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #23282d;
}

/* Status Colors */
.stat-card.total .stat-icon,
.status-badge.status-total {
    background-color: #e9f5fe;
    color: #0073aa;
}

.stat-card.approved .stat-icon,
.status-badge.status-approved {
    background-color: #e8f7ed;
    color: #2ecc71;
}

.stat-card.pending .stat-icon,
.status-badge.status-pending {
    background-color: #fef8e8;
    color: #f39c12;
}

.stat-card.rejected .stat-icon,
.status-badge.status-rejected {
    background-color: #fde8e8;
    color: #e74c3c;
}

.stat-card.blocked .stat-icon,
.status-badge.status-blocked {
    background-color: #f0f0f0;
    color: #95a5a6;
}

.stat-card.amount .stat-icon {
    background-color: #e8f7ed;
    color: #2ecc71;
}

.stat-card.rate .stat-icon {
    background-color: #e9f5fe;
    color: #0073aa;
}

/* Charts Section */
.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-container {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.chart-container h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    color: #23282d;
}

/* Recent Registrations */
.recent-registrations {
    margin-bottom: 30px;
}

.recent-registrations h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    color: #23282d;
}

.view-all-link {
    margin-top: 20px;
    text-align: center;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* All Registrations Page */
.filters-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 13px;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.filter-actions {
    display: flex;
    gap: 10px;
}

.search-group {
    flex: 2;
}

.summary-section {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-label {
    font-weight: 600;
    color: #666;
}

.summary-value {
    font-size: 18px;
    font-weight: 600;
    color: #23282d;
}

.registrations-table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

.registrations-table th {
    white-space: nowrap;
}

.blocked-row {
    background-color: #f8f8f8;
}

/* Pagination */
.pagination {
    margin-top: 20px;
}

/* Registration Details Page */
.registration-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

.membership-number {
    font-size: 16px;
}

.membership-number span {
    color: #666;
    margin-right: 5px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.details-card {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.details-card h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    color: #23282d;
    display: flex;
    align-items: center;
    gap: 10px;
}

.details-card h2 i {
    color: #0073aa;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
}

.details-table th,
.details-table td {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.details-table th {
    width: 40%;
    color: #666;
    font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 768px) {

    .stats-overview,
    .dashboard-charts,
    .details-grid {
        grid-template-columns: 1fr;
    }

    .filter-row {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .dashboard-header,
    .page-header,
    .details-header,
    .registration-status {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .dashboard-actions,
    .header-actions {
        width: 100%;
    }
}