
#quote {
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--secondary-text);
    font-style: italic;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-left: 5px solid var(--hover-color);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

#quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 6rem;
    color: var(--hover-color);
    opacity: 0.2;
    font-family: Georgia, serif;
}

#quote::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--hover-color);
    opacity: 0.05;
    border-radius: 50%;
    transform: translate(30%, 30%);
}

/* Date Bar Styling */
.imgContent .date-bar {
    background: linear-gradient(135deg, var(--base-variant), var(--hover-color));
    padding: 1.2rem 2rem;
    border-radius: 20px;
    margin: 15px auto 0;
    max-width: 700px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 10;
}

.imgContent .date-bar:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.date-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.calendar-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--text-color);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.date-text .hijri-date {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-color);
    display: block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.date-text .greg-date {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.9;
    font-weight: 500;
    margin-top: 0.3rem;
}

.calendar-btn {
    background-color: rgba(255, 255, 255, 0.25);
    color: var(--text-color);
    padding: 0.9rem 1.8rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.calendar-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.calendar-btn:active {
    transform: translateY(0);
}

/* Prayer Times Section */
.prayer-times-section {
    max-width: 1000px;
    margin: 20px auto 50px;
    padding: 0 30px;
}

.prayer-time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.time-card {
    background: linear-gradient(135deg, var(--base-variant), var(--base-color));
    padding: 1.8rem 1.2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.time-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--hover-color), transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.time-card:hover::before {
    transform: scaleX(1);
}

.time-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--hover-color);
}

.time-name {
    font-size: 1rem;
    color: var(--secondary-text);
    margin-bottom: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.time-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--hover-color);
    font-family: 'Courier New', monospace;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hijri Info Display */
.hijri-info {
    text-align: center;
    font-size: 1.2rem;
    color: var(--secondary-text);
    margin: 30px 0;
    font-weight: 500;
    padding: 1.5rem;
    background: var(--base-variant);
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

/* Calendar Modal */
.calendar-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.calendar-content {
    background: var(--base-color);
    color: var(--secondary-text);
    padding: 2.5rem;
    border-radius: 25px;
    max-width: 650px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--hover-color);
}

.calendar-header h3 {
    margin: 0;
    color: var(--secondary-text);
    font-size: 1.5rem;
    font-weight: 700;
}

#calendar-close {
    background: var(--hover-color);
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#calendar-close:hover {
    transform: rotate(90deg);
    background: var(--base-variant);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 1.5rem;
}

.calendar-day-name {
    font-weight: bold;
    text-align: center;
    padding: 0.8rem 0.5rem;
    background: var(--hover-color);
    border-radius: 10px;
    color: var(--text-color);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.calendar-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 0.5rem;
    min-height: 70px;
    background: var(--base-variant);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.calendar-day:hover {
    transform: scale(1.08);
    border-color: var(--hover-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
}

.calendar-day.empty:hover {
    transform: none;
    border-color: transparent;
    box-shadow: none;
}

.calendar-day.today {
    background: linear-gradient(135deg, var(--hover-color), var(--base-variant));
    color: var(--text-color);
    font-weight: bold;
    box-shadow: 0 0 20px rgba(19, 94, 164, 0.5);
    border-color: var(--text-color);
}

.calendar-day .greg {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.calendar-day .hijri {
    font-size: 0.75rem;
    opacity: 0.85;
    margin-top: 0.2rem;
    font-weight: 500;
}

/* Responsive Design for Mobile */
@media (max-width: 800px) {
    #quote {
        font-size: 1.1rem;
        line-height: 1.6;
        padding: 1.5rem;
        border-left-width: 3px;
    }
    
    #quote::before {
        font-size: 4rem;
        top: -5px;
        left: 5px;
    }
    
    .imgContent .date-bar {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1rem;
        text-align: center;
        margin: 5px auto 0;
        max-width: calc(100% - 20px);
        width: 95%;
        position: relative;
        z-index: 1;
    }
    
    .date-left {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .calendar-icon {
        width: 1.8rem;
        height: 1.8rem;
    }
    
    .date-text {
        width: 100%;
    }
    
    .date-text .hijri-date {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .date-text .greg-date {
        font-size: 0.85rem;
    }
    
    .calendar-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 200px;
    }
    
    .prayer-times-section {
        padding: 0 15px;
        margin: 15px auto 30px;
    }
    
    .prayer-time-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 1rem;
    }
    
    .time-card {
        padding: 1.2rem 0.8rem;
    }
    
    .time-name {
        font-size: 0.85rem;
    }
    
    .time-value {
        font-size: 1.5rem;
    }
    
    .hijri-info {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .calendar-content {
        padding: 1.5rem;
        width: 95%;
    }
    
    .calendar-header h3 {
        font-size: 1.2rem;
    }
    
    #calendar-close {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .calendar-days {
        gap: 5px;
    }
    
    .calendar-day-name {
        padding: 0.5rem 0.3rem;
        font-size: 0.75rem;
    }
    
    .calendar-day {
        min-height: 55px;
        padding: 0.5rem 0.3rem;
    }
    
    .calendar-day .greg {
        font-size: 1rem;
    }
    
    .calendar-day .hijri {
        font-size: 0.65rem;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .imgContent .date-bar {
        padding: 0.7rem 0.5rem;
        gap: 0.5rem;
        width: 98%;
        margin: 3px auto 0;
    }
    
    .calendar-icon {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .date-text .hijri-date {
        font-size: 0.9rem;
    }
    
    .date-text .greg-date {
        font-size: 0.75rem;
    }
    
    .calendar-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

/* Custom Scrollbar for Calendar Modal */
.calendar-content::-webkit-scrollbar {
    width: 8px;
}

.calendar-content::-webkit-scrollbar-track {
    background: var(--base-variant);
    border-radius: 10px;
}

.calendar-content::-webkit-scrollbar-thumb {
    background: var(--hover-color);
    border-radius: 10px;
}

.calendar-content::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-text);
}
