/* Custom CSS for Quran-Maslow Dashboard */

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Card Styling */
.card {
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1) !important;
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px 8px 0 0 !important;
}

/* Custom Colors */
.text-purple {
    color: #9B59B6 !important;
}

.bg-purple {
    background-color: #9B59B6 !important;
}

/* Navbar */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Status Bar */
#status-bar {
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

/* Metric Cards */
.card h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Graph Containers */
.dash-graph {
    border-radius: 8px;
}

/* Dark Theme Overrides */
.bg-dark {
    background-color: #1a1a1a !important;
}

.bg-dark .card {
    background-color: #2d2d2d;
    color: #f8f9fa;
    border-color: #444;
}

.bg-dark .card-header {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

.bg-dark #status-bar {
    background-color: #2d2d2d;
}

/* Verse Cards */
.border-start {
    border-left-width: 4px !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card h2 {
        font-size: 1.8rem;
    }

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

    h1 {
        font-size: 1.8rem;
    }
}

/* Loading Indicator */
._dash-loading {
    color: #9B59B6;
}

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

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

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #9B59B6;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* Badge Styling */
.badge {
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Alert Styling */
.alert {
    border-radius: 8px;
    border: none;
}

/* Button Styling */
.btn {
    border-radius: 6px;
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Enhanced Tab Styling for Needs Page and other pages */
.nav-tabs .nav-link {
    font-weight: 600;
    color: #555;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 20px;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    color: #333;
    border-bottom: 3px solid #ddd;
    background-color: #f8f9fa;
}

.nav-tabs .nav-link.active {
    color: #4A00E0;
    font-weight: 700;
    border-bottom: 3px solid #4A00E0;
    background-color: transparent;
}

/* Tab content area */
.tab-content {
    padding-top: 20px;
}

/* Needs Page Specific - Card Headers */
/* Removed bg-light override to preserve gradient backgrounds */

.card-header h5 {
    font-weight: 600;
    color: white; /* Ensure text is visible on gradient background */
}

/* Enhanced Card Shadows */
.shadow-sm {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

/* Better Contrast for Text */
.text-muted {
    color: #555 !important;
}

/* Improved Dropdown Styling */
.Select-control {
    border-color: #ccc !important;
}

.Select-control:hover {
    border-color: #4A00E0 !important;
}

/* Better Table Styling */
.table th {
    font-weight: 600;
    color: #1a1a1a;
    background-color: #f8f9fa;
}

.table td {
    color: #333;
}

/* Link Colors - Better Contrast */
a {
    color: #2980B9;
}

a:hover {
    color: #1a5276;
}
