.language-selection p.text-muted,
.language-selection .small,
.language-selection .subheading,
.language-selection .instruction,
.language-selection .subtitle,
.language-selection .subtext {
    color: #FFD700 !important;
    font-weight: 500;
    font-size: 1.05rem;
}

/* Custom Styles for Hindu Panchang Website */

:root {
    --primary-color: #FF6B35;
    --secondary-color: #F7931E;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
}

body {
/* Navbar dark theme for daily-panchang.html */
.navbar, .navbar-light, .navbar-expand-lg {
    background: #181A2A !important;
    color: #FFD700 !important;
    border-bottom: 2px solid #FFD700 !important;
}
.navbar .navbar-brand, .navbar .nav-link, .navbar .navbar-nav {
    color: #FFD700 !important;
    font-weight: 600;
}
.navbar .nav-link i {
    color: #FFD700 !important;
}
    font-family: 'Inter', sans-serif;
    background: #181A2A !important;
    /* Deep indigo/blue for horoscopic feel */
    color: #F3E9FF !important;
    /* Light lavender text for contrast */
    line-height: 1.6;
}

/* Language Selection Styling */
.language-selection {
    max-width: 500px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.language-list .redirect {
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
    background: #23244A !important;
    /* dark card */
    color: #F3E9FF !important;
}

.language-list .redirect small,
.language-list .redirect .text-muted,
.card small,
.card .text-muted {
    color: #FFD700 !important;
    /* gold for visibility */
    box-shadow: 0 2px 8px rgba(44, 20, 80, 0.25);
}

.language-list .redirect:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(44, 20, 80, 0.35);
    border-left: 4px solid #FFD700;
    background: #2C2D5A !important;
    color: #FFD700 !important;
    background: #181A2A !important;
    /* deeper indigo for cards */
    color: #F3E9FF !important;
    border: 4px solid #FFD700 !important;
    box-shadow: none !important;
    box-shadow: 0 4px 24px rgba(44, 20, 80, 0.25);
}

.card-body {
    background: #181A2A !important;
    color: #F3E9FF !important;
}

.subtitle,
.instruction,
.subheading,
.text-muted,
p.text-muted {
    color: #FFD700 !important;
    font-weight: 500;
    font-size: 1.08rem;
}
}

.card .card-title,
.card .card-text,
.card .card-body,
.card .card-header,
.card .card-footer {
    color: #F3E9FF !important;
}

.card .text-muted,
.card small {
    color: #FFD700 !important;
    font-weight: 500;
}

.card .btn,
.card .btn-outline-secondary,
.card .btn-outline-primary {
    background: #23244A !important;
    color: #FFD700 !important;
    border-color: #FFD700 !important;
}

.card .btn:hover,
.card .btn-outline-secondary:hover,
.card .btn-outline-primary:hover {
    background: #FFD700 !important;
    color: #181A2A !important;
    border-color: #FFD700 !important;
}
}

.card .card-title,
.card .card-text,
.card .card-body,
.card .card-header,
.card .card-footer {
    color: #F3E9FF !important;
}

.card .text-muted,
.card small {
    color: #FFD700 !important;
}
}

.card.confirmation-modal {
    background: #23244A !important;
    color: #F3E9FF !important;
    border: 2px solid #FFD700 !important;
}

.card.confirmation-modal .text-muted,
.card.confirmation-modal small {
    color: #FFD700 !important;
}
}

/* Panchang Type Cards */
.panchang-type-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 4px solid #FFD700 !important;
    border-radius: 16px !important;
}

.panchang-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 4px solid #FFD700 !important;
    border-radius: 16px !important;
}

/* Calendar Styling */
.calendar-container {
    overflow: hidden;
    border-radius: 8px;
}

.calendar-day-header {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.calendar-day-header:last-child {
    border-right: none;
}

.calendar-day {
    min-height: 120px;
    padding: 8px;
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
}

.calendar-day:hover {
    background-color: #f8f9fa;
}

.calendar-day:last-child {
    border-right: none;
}

.calendar-day.other-month {
    background-color: #f8f9fa;
    color: #6c757d;
}

.calendar-day.today {
    background: linear-gradient(45deg, #fff3cd, #fff);
    border: 2px solid var(--warning-color);
}

.calendar-day.festival {
    background: linear-gradient(45deg, #d1ecf1, #fff);
}

.day-number {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.day-events {
    font-size: 0.75rem;
}

.event-badge {
    display: block;
    padding: 2px 4px;
    margin-bottom: 2px;
    border-radius: 3px;
    color: white;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.event-major {
    background-color: var(--success-color);
}

.event-fasting {
    background-color: var(--warning-color);
    color: #000;
}

.event-regional {
    background-color: var(--info-color);
}

.event-ekadashi {
    background-color: var(--secondary-color);
}

/* Festival Card Styling */
.festival-card {
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.festival-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.festival-card.major {
    border-left-color: var(--success-color);
}

.festival-card.fasting {
    border-left-color: var(--warning-color);
}

.festival-card.regional {
    border-left-color: var(--info-color);
}

.festival-card.ekadashi {
    border-left-color: var(--secondary-color);
}

/* Muhurat Cards */
.muhurat-card {
    border-top: 4px solid var(--primary-color);
}

.quality-excellent {
    background: var(--success-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}

.quality-good {
    background: var(--warning-color);
    color: #000;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}

.quality-average {
    background: var(--info-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calendar-day {
        min-height: 80px;
        font-size: 0.85rem;
    }

    .day-events {
        font-size: 0.7rem;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .card-body {
        padding: 1rem;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .btn-group .btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .calendar-day {
        min-height: 60px;
        padding: 4px;
    }

    .day-number {
        font-size: 0.9rem;
    }

    .festival-card {
        margin-bottom: 1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .panchang-info {
        margin-top: 2rem;
    }
}

/* Loading Animation */
.loading-fade {
    opacity: 0.7;
    pointer-events: none;
}

/* Custom Button Styling */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 500;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #E55A2B 0%, #E5841E 100%);
    transform: translateY(-1px);
}

/* SVG Icon Styling */
.navbar-brand img {
    filter: brightness(0) saturate(100%) invert(37%) sepia(87%) saturate(1945%) hue-rotate(12deg) brightness(99%) contrast(101%);
}

/* Smooth Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
    border-color: var(--primary-color);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #E55A2B;
}

/* Print Styles */
@media print {

    .navbar,
    .btn,
    .modal {
        display: none !important;
    }

    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }

    body {
        background: #181A2A !important;
        color: #F3E9FF !important;
    }
}

/* Fixed header ad styling */
#header-fixed-ad {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    background: transparent;
    padding: 6px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* When a header ad is present, add extra top padding so content isn't hidden */
body.with-header-ad {
    --header-ad-height: 90px; /* fallback value; script will set exact height */
}

body.with-header-ad main,
body.with-header-ad .container {
    padding-top: calc(var(--header-ad-height) + 8px);
}

@media (max-width: 576px) {
    body.with-header-ad main,
    body.with-header-ad .container {
        padding-top: calc(var(--header-ad-height) + 6px);
    }
}