/* Motoval Blue & White Theme - Custom Blue #4167a1 */
:root {
    --motoval-primary: #4167a1;
    --motoval-primary-dark: #335285;
    --motoval-primary-light: #5a7bb5;
    --motoval-nav-blue: #4167a1;
    --motoval-secondary: #f8f9fa;
    --motoval-accent: #ffffff;
    --motoval-text: #2c3e50;
    --motoval-text-light: #6c757d;
    --motoval-border: #e9ecef;
    --motoval-success: #28a745;
    --motoval-warning: #ffc107;
    --motoval-danger: #dc3545;
    --motoval-info: #17a2b8;
}

/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    color: var(--motoval-text);
    background-color: #f5f7fa;
}

/* Navigation */
.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 0 2px;
    padding: 8px 12px !important;
}

.nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: white !important;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(65, 103, 161, 0.08);
    transition: all 0.3s ease;
    background: white;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(65, 103, 161, 0.12);
}

.card-header {
    background: linear-gradient(135deg, var(--motoval-primary) 0%, var(--motoval-primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px 12px 0 0 !important;
    padding: 1rem 1.5rem;
}

.card-header h5 {
    margin: 0;
    font-weight: 600;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--motoval-primary) 0%, var(--motoval-primary-dark) 100%);
    border: none;
    border-radius: 8px;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--motoval-primary-dark) 0%, #2c5aa0 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(65, 103, 161, 0.3);
}

.btn-outline-primary {
    color: var(--motoval-primary);
    border-color: var(--motoval-primary);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--motoval-primary);
    border-color: var(--motoval-primary);
    transform: translateY(-1px);
}

/* Badges */
.badge {
    border-radius: 6px;
    font-weight: 500;
    padding: 6px 10px;
}

.badge.bg-primary {
    background: var(--motoval-primary) !important;
}

.badge.bg-info {
    background: var(--motoval-info) !important;
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table-dark {
    background: linear-gradient(135deg, var(--motoval-primary) 0%, var(--motoval-primary-dark) 100%);
}

.table-hover tbody tr:hover {
    background-color: rgba(74, 144, 226, 0.05);
}

/* Forms */
.form-control {
    border: 1px solid var(--motoval-border);
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--motoval-primary);
    box-shadow: 0 0 0 0.2rem rgba(65, 103, 161, 0.15);
}

.form-select {
    border: 1px solid var(--motoval-border);
    border-radius: 8px;
    padding: 10px 15px;
}

.form-select:focus {
    border-color: var(--motoval-primary);
    box-shadow: 0 0 0 0.2rem rgba(65, 103, 161, 0.15);
}

/* Alerts */
.alert {
    border: none;
    border-radius: 10px;
    padding: 1rem 1.5rem;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

/* Status Indicators */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Logo Styling - Seamless with Navigation */
.motoval-nav-logo {
    height: 45px;
    width: auto;
    max-width: 120px;
    transition: all 0.3s ease;
    /* No background - seamless with navigation */
    background: transparent;
    padding: 4px 8px;
    border-radius: 6px;
    /* Subtle glow effect on hover */
    filter: none;
}

.motoval-nav-logo:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.1);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.motoval-footer-logo {
    height: 35px;
    width: auto;
    max-width: 100px;
    transition: all 0.3s ease;
    /* No background - seamless with footer */
    background: transparent;
    padding: 4px 6px;
    border-radius: 6px;
    filter: none;
}

.motoval-footer-logo:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.1);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3));
}

/* Alternative logo styling for better visibility */
.motoval-logo-contrast {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

/* If logo is not visible, try this fallback */
.motoval-logo-fallback {
    background: white;
    padding: 5px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    /* Remove filter when using white background */
    filter: none !important;
}

/* Custom Utilities */
.text-motoval {
    color: var(--motoval-primary) !important;
}

.bg-motoval {
    background-color: var(--motoval-primary) !important;
}

.border-motoval {
    border-color: var(--motoval-primary) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    .navbar-brand small {
        display: none;
    }
    
    .motoval-nav-logo {
        height: 35px;
        max-width: 80px;
        padding: 6px 8px;
    }
    
    .motoval-footer-logo {
        height: 28px;
        max-width: 70px;
        padding: 4px 6px;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        border-radius: 6px !important;
        margin-bottom: 2px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--motoval-primary) 0%, var(--motoval-primary-dark) 100%);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}
