/* 🌗 THEME-AWARE CUSTOM STYLES */

/* General page layout */
.custom-page {
    padding: 1.5rem;
    background-color: #f5f5f5;
}
.dark .custom-page {
    background-color: #121212;
}

.custom-container {
    max-width: 1200px;
    margin: 0 auto;
}

.custom-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
}
.dark .custom-title {
    color: #eaeaea;
}

/* Card Styling */
.custom-card {
    border-radius: 8px;
    background-color: #fff;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e0e0e0;
}
.dark .custom-card {
    background-color: #1e1e1e;
    border-color: #333;
}

.custom-card-header {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
}
.dark .custom-card-header {
    color: #eaeaea;
    border-color: #333;
}

/* Filter form */
.custom-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.custom-form-group {
    display: flex;
    flex-direction: column;
}

.custom-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 0.5rem;
}
.dark .custom-label {
    color: #bbb;
}

.custom-input {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    background-color: #fff;
    color: #333;
}
.dark .custom-input {
    border-color: #444;
    background-color: #1e1e1e;
    color: #eaeaea;
}

.custom-input:focus {
    border-color: #2980b9;
    outline: none;
}

/* Date Section */
.custom-date-section {
    background-color: #fafafa;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
}
.dark .custom-date-section {
    background-color: #1a1a1a;
    border-color: #333;
}

.custom-date-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.custom-date-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
}
.dark .custom-date-title {
    color: #f0f0f0;
}

.custom-date-stats {
    display: flex;
    gap: 2rem;
}

.custom-stat {
    display: flex;
    flex-direction: column;
}

.custom-stat-label {
    font-size: 0.75rem;
    color: #777;
    margin-bottom: 0.25rem;
}
.dark .custom-stat-label {
    color: #aaa;
}

.custom-stat-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #28a745;
}
.custom-stat-value-count {
    color: #2980b9;
}
.custom-stat-value-users {
    color: #ff9800;
}

/* Table */
.custom-table-wrapper {
    overflow-x: auto;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}
.dark .custom-table-wrapper {
    border-color: #333;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.custom-table-head {
    background-color: #f5f5f5;
}
.dark .custom-table-head {
    background-color: #1a1a1a;
}

.custom-table-header {
    color: #555;
    font-weight: 600;
    font-size: 0.813rem;
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}
.dark .custom-table-header {
    color: #ddd;
    border-color: #333;
}

.custom-table-row {
    border-bottom: 1px solid #f0f0f0;
}
.dark .custom-table-row {
    border-color: #333;
}
.custom-table-row:hover {
    background-color: #fafafa;
}
.dark .custom-table-row:hover {
    background-color: #222;
}

.custom-table-cell {
    padding: 0.75rem 1rem;
    color: #333;
}
.dark .custom-table-cell {
    color: #ddd;
}

.custom-table-cell-name {
    font-weight: 500;
}

.custom-table-cell-email {
    color: #777;
}
.dark .custom-table-cell-email {
    color: #aaa;
}

.custom-table-cell-amount {
    color: #28a745;
    font-weight: 600;
}

.custom-table-cell-count {
    color: #2980b9;
    font-weight: 500;
}

/* Summary Cards */
.custom-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.custom-summary-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.25rem;
}
.dark .custom-summary-card {
    background-color: #1e1e1e;
    border-color: #333;
}

.custom-summary-label {
    font-size: 0.813rem;
    color: #777;
    margin-bottom: 0.5rem;
}
.dark .custom-summary-label {
    color: #aaa;
}

.custom-summary-value {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
}
.dark .custom-summary-value {
    color: #eaeaea;
}

/* Empty state */
.custom-empty-state {
    text-align: center;
    padding: 3rem;
    color: #999;
}
.dark .custom-empty-state {
    color: #888;
}

.custom-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.custom-empty-text {
    font-size: 1rem;
    font-weight: 500;
    color: #666;
}
.dark .custom-empty-text {
    color: #aaa;
}

/* Loading state */
.custom-loading {
    text-align: center;
    padding: 2rem;
    color: #999;
}
.dark .custom-loading {
    color: #bbb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .custom-form-grid {
        grid-template-columns: 1fr;
    }

    .custom-summary-grid {
        grid-template-columns: 1fr;
    }

    .custom-date-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .custom-date-stats {
        width: 100%;
        justify-content: space-between;
    }
}
