/* Prayer Times Widget Styles */
/* Color Palette:
   - Primary (Pine Teal): #00685E
   - Secondary (Soft Seafoam): #A3D9CF
   - Action (Deep Ochre): #C28B2E
   - Background (Alabaster White): #F8F9F8
   - Text (Charcoal Grey): #2D3436
*/

.prayer-times-widget {
    max-width: 600px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #F8F9F8;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Date Header */
.prayer-times-header {
    padding: 15px 20px;
    background-color: #00685E;
    color: white;
}

.current-date {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    color: white;
}

/* Navigation below widget */
.prayer-times-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 15px 20px;
    background-color: #00685E;
    color: white;
}

/* Navigation Buttons */
.prev-day,
.next-day {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.prev-day:hover:not([disabled]),
.next-day:hover:not([disabled]) {
    background-color: #A3D9CF;
    border-color: #A3D9CF;
    color: #2D3436;
}

.prev-day:disabled,
.next-day:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Prayer Times Table */
.prayer-times-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.prayer-times-table thead {
    background-color: #00685E;
    color: white;
}

.prayer-times-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prayer-times-table th:first-child {
    text-align: left;
}

.prayer-times-table th:nth-child(2),
.prayer-times-table th:nth-child(3) {
    text-align: center;
}

.prayer-times-table tbody tr {
    border-bottom: 1px solid #A3D9CF;
    transition: background-color 0.2s ease;
}

.prayer-times-table tbody tr:nth-child(even) {
    background-color: #A3D9CF;
}

.prayer-times-table tbody tr:hover {
    background-color: #A3D9CF;
}

.prayer-times-table tbody tr:nth-child(even):hover {
    background-color: #8dc9bd;
}

.prayer-times-table td {
    padding: 14px 15px;
    color: #2D3436;
    font-size: 15px;
}

.prayer-name {
    font-weight: 600;
    text-align: left;
}

.prayer-time {
    text-align: center;
    font-weight: 500;
}

/* Jumah Row Highlight */
.jumah-row {
    background-color: #A3D9CF !important;
    font-weight: 600;
}

/* Loading State */
.prayer-times-widget.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Mobile Responsive Design */
@media screen and (max-width: 600px) {
    .prayer-times-widget {
        margin: 10px;
        border-radius: 6px;
    }
    
    .prayer-times-header {
        padding: 12px 15px;
    }
    
    .current-date {
        font-size: 14px;
    }
    
    .prayer-times-nav {
        padding: 12px 15px;
        gap: 12px;
    }
    
    .prev-day,
    .next-day {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .prayer-times-table th,
    .prayer-times-table td {
        padding: 10px 8px;
        font-size: 14px;
    }
    
    .prayer-times-table th {
        font-size: 12px;
    }
}

@media screen and (max-width: 400px) {
    .prayer-times-table th,
    .prayer-times-table td {
        padding: 8px 5px;
        font-size: 13px;
    }
    
    .prev-day,
    .next-day {
        font-size: 12px;
        padding: 5px 10px;
    }
}

/* Print Styles */
@media print {
    .prayer-times-header {
        background-color: white !important;
        color: #2D3436 !important;
        border-bottom: 2px solid #00685E;
    }
    
    .prayer-times-nav {
        display: none;
    }
    
    .prev-day,
    .next-day {
        display: none;
    }
    
    .current-date {
        color: #2D3436 !important;
    }
}
