
/* =========================
   Bhavat Bhavam & Course UI Enhancements
   ========================= */

/* Custom Background Utility for Cards/Accordions */
.bg-light-dark {
    background-color: rgba(0, 0, 0, 0.05);
    color: #212529; /* Dark text for light mode */
}

body.dark-mode .bg-light-dark {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Accordion Button Specifics */
.accordion-button.bg-light-dark {
    color: #212529; /* Force dark text in light mode */
    box-shadow: none; /* Remove default blue focus shadow if desired */
}

.accordion-button.bg-light-dark:not(.collapsed) {
    background-color: rgba(0, 0, 0, 0.1); /* Slightly darker when open */
    color: #000;
}

body.dark-mode .accordion-button.bg-light-dark {
    color: #ffffff;
}

body.dark-mode .accordion-button.bg-light-dark:not(.collapsed) {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Fix Accordion Chevron Color */
body.dark-mode .accordion-button::after {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Accordion Body Contrast */
.accordion-body.bg-dark-subtle {
    background-color: rgba(0, 0, 0, 0.02) !important;
    color: #212529;
}

body.dark-mode .accordion-body.bg-dark-subtle {
    background-color: rgba(0, 0, 0, 0.4) !important; /* Darker inset */
    color: #e0e0e0;
}

/* Text Color Contrast Overrides */

/* Light Mode: Darker shades for visibility on white/light backgrounds */
.text-warning {
    color: #b45309 !important; /* Darker orange-gold */
}
.text-info {
    color: #055160 !important; /* Dark teal */
}
.text-success {
    color: #146c43 !important; /* Dark green */
}
.text-primary {
    color: #0d6efd !important; /* Standard blue is usually fine, but ensuring */
}

/* Dark Mode: Lighter/Brighter shades for visibility on dark backgrounds */
body.dark-mode .text-warning {
    color: #ffc107 !important; /* Bright yellow */
}
body.dark-mode .text-info {
    color: #0dcaf0 !important; /* Bright cyan */
}
body.dark-mode .text-success {
    color: #20c997 !important; /* Bright teal/green */
}
body.dark-mode .text-primary {
    color: #6ea8fe !important; /* Light blue */
}
body.dark-mode .text-danger {
    color: #ff6b6b !important; /* Light red */
}
body.dark-mode .text-muted {
    color: #adb5bd !important; /* Lighter gray */
}

/* Pulse Animation for Buttons */
.pulse-animation {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}
