/* Estilos Customizados - Oficina Car Consert */

:root {
    --primary-color: #dc3545;
    --secondary-color: #28a745;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

.hero-img {
    width: 100%;
    max-width: 500px;
     border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    border: 3px solid #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 0;
}

main {
    padding-top: 0;
}

.container-fluid.py-4 {
    padding-top: 0.75rem;
    padding-bottom: 1rem;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #dc3545 !important;
}

.navbar-brand:hover {
    color: #b02a37 !important;
}

.navbar-brand i {
    margin-right: 8px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 80px 0;
    margin-top: 56px; /* Compensar navbar */
}

.hero-section h1 {
    font-weight: 700;
    line-height: 1.2;
}

.hero-section h2 {
    font-weight: 600;
    font-size: 2rem;
}

/* Cards */
.card {
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card-body {
    padding: 2rem;
}

.card i {
    transition: all 0.3s ease;
}

.card:hover i {
    transform: scale(1.1);
}

/* Botões */
.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 10px 24px;
}

.btn-success {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-success:hover {
    background-color: #218838;
    border-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-danger {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-outline-danger {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-danger:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Formulários */
.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

/* Tabelas */
.table {
    border-collapse: collapse;
}

.table thead {
    background-color: var(--dark-color);
    color: white;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: var(--light-color);
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.badge-success {
    background-color: var(--secondary-color);
}

.badge-danger {
    background-color: var(--primary-color);
}

.badge-warning {
    background-color: #ffc107;
    color: #333;
}

.badge-info {
    background-color: #17a2b8;
}

/* Alertas */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Footer */
footer {
    border-top: 3px solid var(--primary-color);
    margin-top: auto;
}

footer a {
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* Dashboard */
.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-card.stat-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card.stat-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.stat-card.stat-danger {
    background: linear-gradient(135deg, #dc3545 0%, #ff6b6b 100%);
}

.stat-card.stat-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.stat-card p {
    margin: 5px 0 0 0;
    opacity: 0.9;
}

/* Responsivo */
@media (max-width: 768px) {
    .hero-img {
        max-width: 100%;
        margin-top: 20px;
         border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    border: 3px solid #dc3545;
    }
    /* Garantir que navbar funcione no mobile */
    .navbar-dark .navbar-brand {
        color: #dc3545 !important;
    }

    .navbar-dark .navbar-brand:hover {
        color: #b02a37 !important;
    }

    .hero-section {
        padding: 40px 0;
        margin-top: 56px; /* Mesmo valor, mas verificar se navbar colapsa */
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section h2 {
        font-size: 1.5rem;
    }

    .btn-lg {
        padding: 8px 16px;
        font-size: 0.95rem;
    }

    .d-flex.gap-3 {
        flex-direction: column;
    }

    .d-flex.gap-3 .btn {
        width: 100%;
    }

    /* Ajustar ícone grande no hero */
    .hero-section .fas.fa-tools {
        font-size: 100px !important;
    }

    /* Ajustar navbar */
    .navbar-brand {
        font-size: 1.25rem;
        color: #dc3545 !important; /* Garantir cor no mobile */
    }

    /* Ajustar cards */
    .card-body {
        padding: 1.5rem;
    }

    .card i {
        font-size: 36px;
    }

    /* Ajustar tabelas */
    .table-responsive {
        font-size: 0.875rem;
    }

    /* Ajustar formulários */
    .form-control, .form-select {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-section h2 {
        font-size: 1.25rem;
    }

    .hero-section .fas.fa-tools {
        font-size: 80px !important;
    }

    .btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    .card-body {
        padding: 1rem;
    }

    .card i {
        font-size: 32px;
    }

    .stat-card h3 {
        font-size: 2rem;
    }
}

/* Animações */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: slideIn 0.5s ease-out;
}

/* Utilitários */
.text-danger {
    color: var(--primary-color) !important;
}

.bg-danger {
    background-color: var(--primary-color) !important;
}

.border-danger {
    border-color: var(--primary-color) !important;
}

.text-success {
    color: var(--secondary-color) !important;
}

.bg-success {
    background-color: var(--secondary-color) !important;
}

.border-success {
    border-color: var(--secondary-color) !important;
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.shadow-lg {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

.rounded-lg {
    border-radius: 12px;
}

.transition-all {
    transition: all 0.3s ease;
}
