/* Custom CSS to enhance Bootstrap */

/* Global tweaks */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
}

/* Header and navigation */
.navbar-brand {
    font-size: 1.5rem;
}

/* Cards */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.card-header {
    border-bottom: none;
}

/* Tables */
.table th {
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.table-hover tbody tr:hover {
    background-color: rgba(66, 133, 244, 0.05);
}

/* Stats dashboard */
.stats .card-body {
    padding: 1.5rem;
}

/* Button styles */
.btn {
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.btn-primary {
    background-color: #4285F4;
    border-color: #4285F4;
}

.btn-primary:hover {
    background-color: #3367d6;
    border-color: #3367d6;
}

.btn-success {
    background-color: #34a853;
    border-color: #34a853;
}

.btn-success:hover {
    background-color: #2d8e47;
    border-color: #2d8e47;
}

/* Alerts */
.alert {
    border: none;
    border-left: 4px solid;
}

.alert-success {
    background-color: rgba(52, 168, 83, 0.1);
    border-left-color: #34a853;
    color: #155724;
}

.alert-info {
    background-color: rgba(66, 133, 244, 0.1);
    border-left-color: #4285F4;
    color: #0c5460;
}

.alert-warning {
    background-color: rgba(251, 188, 4, 0.1);
    border-left-color: #fbbc04;
    color: #856404;
}

.alert-danger {
    background-color: rgba(234, 67, 53, 0.1);
    border-left-color: #ea4335;
    color: #721c24;
}

/* Forms */
.form-control:focus {
    border-color: #4285F4;
    box-shadow: 0 0 0 0.2rem rgba(66, 133, 244, 0.25);
}

.form-check-input:checked {
    background-color: #4285F4;
    border-color: #4285F4;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Animation for loading */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.pulse {
    animation: pulse 1.5s infinite ease-in-out;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .dark-mode {
        background-color: #121212;
        color: #e0e0e0;
    }
    
    .dark-mode .card,
    .dark-mode .list-group-item,
    .dark-mode .navbar,
    .dark-mode .modal-content {
        background-color: #1e1e1e;
        color: #e0e0e0;
    }
    
    .dark-mode .text-muted {
        color: #adb5bd !important;
    }
}

/* Add your existing styles here if you want to preserve them */
/* You can also override Bootstrap variables with custom ones */

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-5 {
        font-size: 1.75rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
}

/* Custom badge styles */
.badge {
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.35em 0.65em;
}

/* Enhance focus states for accessibility */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid rgba(66, 133, 244, 0.5);
    outline-offset: 2px;
}

/* Custom chart container */
#labelChart {
    min-height: 300px;
}

/* Shadow utilities */
.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Google-inspired color palette */
.text-google-blue {
    color: #4285F4;
}

.text-google-red {
    color: #EA4335;
}

.text-google-yellow {
    color: #FBBC04;
}

.text-google-green {
    color: #34A853;
}

.bg-google-blue {
    background-color: #4285F4;
}

.bg-google-red {
    background-color: #EA4335;
}

.bg-google-yellow {
    background-color: #FBBC04;
}

.bg-google-green {
    background-color: #34A853;
}