/* ============================================
   Prayer Time Changes - Enterprise Dashboard
   Modern, Professional Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Custom Properties */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --dark: #0f172a;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Main Wrapper */
.changes-wrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 2rem 1rem;
}

/* Hero Header */
.hero-header {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.hero-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-header h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Statistics Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.stat-icon-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.stat-icon-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
}

.stat-icon-danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: white;
}

.stat-icon-info {
    background: linear-gradient(135deg, var(--info), #2563eb);
    color: white;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* Info Card */
.info-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    border-left: 4px solid var(--info);
    transition: transform 0.3s;
    display: flex;
    gap: 1.5rem;
}

.info-card:hover {
    transform: translateX(4px);
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--info), #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.info-content p {
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
}

.user-info {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-200);
    font-size: 0.95rem;
    color: var(--gray-700);
}

/* Filter Card */
.filter-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.filter-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-filters {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.quick-filter-btn {
    background: linear-gradient(135deg, var(--gray-100), var(--gray-50));
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-filter-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.filter-col {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-select,
.form-control {
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
}

.form-select:focus,
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    outline: none;
}

.form-select:hover,
.form-control:hover {
    border-color: var(--gray-600);
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-filter,
.btn-export,
.btn-print,
.btn-reset {
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    text-decoration: none;
    border: none;
}

.btn-filter {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.btn-export {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-export:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.btn-print {
    background: linear-gradient(135deg, #059669, var(--success));
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-print:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.btn-reset {
    background: white;
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
}

.btn-reset:hover {
    border-color: var(--gray-600);
    background: var(--gray-50);
    transform: translateY(-2px);
}

/* Chart Card */
.chart-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chart-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-chart-toggle {
    background: var(--gray-100);
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-chart-toggle:hover {
    background: var(--gray-200);
}

.chart-container {
    padding: 1rem 0;
}

.chart-container canvas {
    max-height: 400px;
}

.chart-legend {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.chart-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

/* Table Card */
.table-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-bottom: 2rem;
}

.table-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 2rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.table-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.table-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    width: 250px;
}

.search-box input {
    width: 100%;
    padding: 0.625rem 2.5rem 0.625rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.search-box i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem;
    border-radius: 10px;
}

.view-toggle button {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-toggle button.active {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.view-toggle button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.table-wrapper {
    padding: 2rem;
    background: var(--gray-50);
}

/* Table View */
.table-view {
    display: none;
}

.table-view.active {
    display: block;
}

.table-responsive {
    overflow-x: auto;
    margin: 0;
    border-radius: 16px;
    background: white;
    box-shadow: var(--shadow-sm);
}

.prayer-times-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.prayer-times-table thead {
    background: linear-gradient(135deg, var(--gray-100), var(--gray-50));
    position: sticky;
    top: 0;
    z-index: 10;
}

.prayer-times-table thead th {
    padding: 1.25rem 1rem;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-700);
    border-bottom: 2px solid var(--gray-300);
    text-align: left;
    white-space: nowrap;
    background: white;
}

.prayer-times-table thead th:first-child {
    border-top-left-radius: 16px;
    padding-left: 2rem;
}

.prayer-times-table thead th:last-child {
    border-top-right-radius: 16px;
    padding-right: 2rem;
}

.prayer-times-table tbody tr {
    transition: all 0.2s;
    background: white;
}

.prayer-times-table tbody tr:hover {
    background: var(--gray-50);
    transform: scale(1.005);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.prayer-times-table tbody tr.today-row {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.08), rgba(249, 115, 22, 0.05));
    border-left: 4px solid var(--warning);
}

.prayer-times-table tbody td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    text-align: left;
    vertical-align: middle;
}

.prayer-times-table tbody td:first-child {
    padding-left: 2rem;
}

.prayer-times-table tbody td:last-child {
    padding-right: 2rem;
}

.prayer-times-table tbody tr:last-child td {
    border-bottom: none;
}

.date-cell {
    font-weight: 500;
    color: var(--dark);
    min-width: 180px;
}

.date-main {
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.date-day {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 400;
}

.today-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, var(--warning), #f97316);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.holiday-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.time-cell {
    min-width: 100px;
}

.prayer-time {
    font-size: 1rem;
    font-weight: 400;
    color: var(--dark);
    margin-bottom: 0.25rem;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
}

.change-indicator {
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    margin-top: 0.25rem;
}

.change-up {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
}

.change-down {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
}

.cell-highlight-danger {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.05), transparent);
    position: relative;
}

.cell-highlight-danger::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--danger);
}

.cell-highlight-success {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.05), transparent);
    position: relative;
}

.cell-highlight-success::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--success);
}

/* Card View */
.card-view {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.card-view.active {
    display: grid;
}

.prayer-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    border-left: 4px solid var(--primary);
}

.prayer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.prayer-card.today {
    border-left-color: var(--warning);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(249, 115, 22, 0.05));
}

.card-date-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-100);
}

.card-date {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
}

.card-day {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 400;
}

.card-badge {
    background: linear-gradient(135deg, var(--warning), #f97316);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.card-holiday {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.prayer-times-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.prayer-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.prayer-label {
    font-size: 0.75rem;
    color: var(--gray-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prayer-value {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--dark);
}

.prayer-change {
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.prayer-change.up {
    color: var(--danger);
}

.prayer-change.down {
    color: var(--success);
}

/* Legend Card */
.legend-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.legend-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 12px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.legend-item:hover {
    transform: translateX(8px);
    border-color: currentColor;
}

.legend-item-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(5, 150, 105, 0.05));
    color: var(--success);
}

.legend-item-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(220, 38, 38, 0.05));
    color: var(--danger);
}

.legend-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.legend-icon-success {
    background: var(--success);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.legend-icon-danger {
    background: var(--danger);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.legend-text {
    flex: 1;
}

.legend-text strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.legend-text span {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* No Data Card */
.no-data-card {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--warning);
}

.no-data-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--warning), #f97316);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.no-data-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.no-data-card p {
    color: var(--gray-600);
    font-size: 1rem;
    margin: 0;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    @page {
        size: A4 landscape;
        margin: 0.5cm;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body {
        background: white !important;
    }

    .changes-wrapper {
        background: white !important;
        padding: 0 !important;
    }

    .hero-header,
    .stats-grid,
    .info-card,
    .filter-card,
    .chart-card,
    .legend-card,
    .loading-overlay,
    .search-box,
    .view-toggle,
    .table-controls {
        display: none !important;
    }

    .table-card {
        box-shadow: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }

    .table-header {
        background: var(--primary) !important;
        padding: 0.75rem 1rem !important;
    }

    .table-wrapper {
        padding: 0 !important;
        background: white !important;
    }

    .table-responsive {
        overflow: visible !important;
    }

    .prayer-times-table {
        font-size: 0.7rem !important;
    }

    .prayer-times-table thead th,
    .prayer-times-table tbody td {
        padding: 0.4rem 0.3rem !important;
        font-size: 0.65rem !important;
    }

    .card-view {
        display: none !important;
    }

    .table-view {
        display: block !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-header h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .table-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .table-controls {
        width: 100%;
        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }

    .view-toggle {
        width: 100%;
        justify-content: stretch;
    }

    .view-toggle button {
        flex: 1;
        justify-content: center;
    }

    .filter-card,
    .table-card,
    .legend-card {
        padding: 1.5rem;
    }

    .table-wrapper {
        padding: 1rem;
    }

    .prayer-times-table thead th,
    .prayer-times-table tbody td {
        padding: 1rem 0.5rem;
        font-size: 0.85rem;
    }

    .filter-actions {
        flex-direction: column;
    }

    .btn-filter,
    .btn-export,
    .btn-print,
    .btn-reset {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-view {
        grid-template-columns: 1fr;
    }

    .prayer-times-grid {
        grid-template-columns: 1fr;
    }

    .info-card {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .legend-grid {
        grid-template-columns: 1fr;
    }

    .filter-row {
        grid-template-columns: 1fr;
    }

    .quick-filters {
        flex-direction: column;
    }

    .quick-filter-btn {
        width: 100%;
    }
}
