/* Death Sahyog Suchi Styling */

:root {
    --primary-color: #8b0000;
    --primary-dark: #660000;
    --primary-light: #ffe6e6;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #212529;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
}

body {
    background-color: #f5f5f5;
}

/* Page Header Section */
.members-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 60px 20px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    z-index: -1;
}

.members-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    z-index: 0;
}

.members-header-content {
    position: relative;
    z-index: 1;
}

.members-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.members-header p {
    font-size: 1.1rem;
    margin-bottom: 0;
    opacity: 0.95;
}

/* Main Content */
.main-content {
    background-color: white;
    padding: 30px 0;
}

/* Page Header */
.page-header {
    padding-bottom: 2rem;
    border-bottom: 3px solid var(--primary-color);
    margin-bottom: 2rem;
}

.page-header h1 {
    color: var(--dark-color);
    font-weight: 700;
    font-size: 2.5rem;
}

.page-header p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

/* Statistics Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.stat-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.stat-card p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

/* Filter Section */
.filter-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.filter-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

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

.filter-group label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.filter-group input,
.filter-group select {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.filter-buttons {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    margin-top: 15px;
}

/* Button Styles */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

/* Members / Suchi Section */
.members-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--dark-color);
}

/* Table Styles */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.table thead {
    background-color: #f8f9fa;
    border-bottom: 2px solid var(--border-color);
}

.table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
    white-space: nowrap;
}

.table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.table td {
    padding: 15px;
    color: #333;
    font-size: 0.95rem;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-verified {
    background-color: #d4edda;
    color: #155724;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-approved {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-rejected {
    background-color: #f8d7da;
    color: #842029;
}

/* Text Utilities */
.text-pink {
    color: #e84a5f;
}

.amount-cell {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.05rem;
}

.unique-id {
    font-family: 'Courier New', monospace;
    font-weight: 500;
    color: var(--primary-color);
}

.date-cell {
    color: #666;
    font-size: 0.9rem;
}

/* Loading State */
.loading-row {
    text-align: center;
    padding: 40px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-item {
    margin: 0;
}

.page-link {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: var(--light-bg);
    border-color: var(--primary-color);
}

.page-link.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-link:disabled {
    color: #ccc;
    border-color: #ddd;
    cursor: not-allowed;
}

/* Spinner */
.spinner-border {
    border-width: 0.3rem;
}

/* Alert Messages */
.alert {
    border-radius: 8px;
    border: none;
    padding: 20px;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 1.75rem;
    }

    .members-header h1 {
        font-size: 1.75rem;
    }

    .stats-section {
        grid-template-columns: 1fr;
    }

    .filter-row {
        grid-template-columns: 1fr;
    }

    .table th,
    .table td {
        padding: 10px;
        font-size: 0.85rem;
    }

    .amount-cell {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .members-header {
        padding: 40px 15px;
    }

    .members-header h1 {
        font-size: 1.5rem;
    }

    .members-header p {
        font-size: 0.95rem;
    }

    .table {
        font-size: 0.85rem;
    }

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

    .btn {
        width: 100%;
        justify-content: center;
    }

    .pagination {
        gap: 3px;
    }

    .page-link {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}
