/* ===== RESET E VARIÁVEIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #206062;
    --secondary-color: #206062;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --border-color: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #6b7280;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #fff;
}

/* ===== MODAL CUSTOMIZADO ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    animation: slideIn 0.3s ease;
}

.modal-header {
    padding: 2rem;
    text-align: center;
    border-bottom: 2px solid var(--border-color);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    border-top: 2px solid var(--border-color);
}

.btn-secondary {
    background: var(--text-secondary);
    color: white;
}

.btn-secondary:hover {
    background: var(--dark-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    to {
        transform: translateX(-50%) translateY(-20px);
        opacity: 0;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER E NAVEGAÇÃO ===== */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 0.5rem 0;
    position: relative;
}

.navbar .container {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    align-items: center;
    gap: 2rem;
}

.logo {
    position: relative;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: bold;
  
    
 
}

.logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.logo-mobile {
    display: none !important;
}

.logo-desktop {
    display: block !important;
}

.logo i {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.1);
}

.btn-login,
.btn-register {
    padding: 0.5rem 1.5rem !important;
    border-radius: 5px;
    font-weight: 600;
}

.btn-login {
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
}

.btn-register {
    background: var(--primary-color);
    color: #fff !important;
}

.user-info {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(rgba(37, 99, 235, 0.1), rgba(30, 64, 175, 0.2)), url('/assets/images/bannerporto.png') center/cover no-repeat;
    color: #fff;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(30, 64, 175, 0.4));
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 1;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== HERO CAROUSEL ===== */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-content .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff !important;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    text-shadow: none;
}

.hero-content .btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #ea580c, #c2410c);
    color: #fff !important;
    text-decoration: none;
}

/* Navegação do Carrossel */
.carousel-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
}

.carousel-prev,
.carousel-next {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

/* Indicadores do Carrossel */
.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .navbar .container {
        display: grid;
        grid-template-columns: 1fr auto;
        justify-content: center;
        align-items: center;
    }
    
    .logo {
        position: relative;
        top: auto;
        left: auto;
        margin: 0;
        justify-self: center;
        grid-column: 1 / -1;
        grid-row: 1;
    }
    
    .logo a {
        padding: 0;
        font-size: 0;
        gap: 0;
        background: transparent;
        box-shadow: none;
    }
    
    .logo img {
        height: 50px;
    }
    
    .logo-desktop {
        display: none !important;
    }
    
    .logo-mobile {
        display: block !important;
    }

    /* Hero Carousel Mobile */
    .hero-carousel {
        height: 350px;
    }
    
    .carousel-slide {
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center center;
        background-color: white;
    }
    
    .carousel-slide .carousel-overlay {
        display: none;
    }
    
    .carousel-slide .hero-content {
        display: none;
    }

    .carousel-nav {
        padding: 0 1rem;
    }

    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .carousel-indicators {
        bottom: 1.5rem;
    }
}

/* Media query específica para smartphones */
@media (max-width: 480px) {
    .hero-carousel {
        height: 300px;
        background: white;
    }
    
    .carousel-slide {
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center center;
        background-color: white;
        align-items: center;
        justify-content: center;
    }
    
    .carousel-slide .carousel-overlay {
        display: none;
    }
    
    .carousel-slide .hero-content {
        display: none;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        background: rgba(0, 0, 0, 0.5);
        border: 2px solid rgba(255, 255, 255, 0.8);
    }
    
    .carousel-prev:hover,
    .carousel-next:hover {
        background: rgba(0, 0, 0, 0.7);
    }
    
    .indicator {
        width: 10px;
        height: 10px;
        background: rgba(0, 0, 0, 0.6);
    }
    
    .indicator.active {
        background: rgba(0, 0, 0, 0.9);
    }
    
    .carousel-indicators {
        bottom: 1rem;
    }
}
    
    .nav-menu {
        margin: 0;
    }
    
    .hero {
        padding: 0;
        min-height: auto;
        background: none !important;
        display: block;
    }
    
    .hero::before {
        content: '';
        display: block;
        width: 100%;
        height: 200px;
        background: url('/assets/images/bannerporto.png') center/100% auto no-repeat;
        position: relative;
        z-index: 1;
    }
    
    .hero .container {
        padding: 2rem 1rem;
        background: #fff;
        position: relative;
        z-index: 2;
    }
    
    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
        line-height: 1.3;
        color: var(--primary-color);
        text-shadow: none;
    }
    
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.4;
        color: var(--primary-color);
        text-shadow: none;
    }
    
    .hero .btn {
        font-size: 0.9rem;
        padding: 0.7rem 1.5rem;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #ea580c, #c2410c);
}

.btn-primary {
    background: var(--primary-color);
}

.btn-success {
    background: var(--success-color);
}

.btn-danger {
    background: var(--danger-color);
}

/* Estilos específicos para botões de veículos */
.veiculo-card .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    width: 100%;
    text-align: center;
}

.veiculo-card .btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #ea580c, #c2410c);
    color: #fff !important;
    text-decoration: none !important;
}

.veiculo-card .btn-primary {
    background: var(--primary-color) !important;
}

/* Garantir que todos os botões funcionem corretamente */
a.btn, button.btn, input[type="submit"].btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    background: linear-gradient(135deg, #f97316, #ea580c) !important;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

a.btn:hover, button.btn:hover, input[type="submit"].btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #ea580c, #c2410c) !important;
    color: #fff !important;
    text-decoration: none !important;
}

a.btn.btn-primary, button.btn.btn-primary {
    background: var(--primary-color) !important;
}

a.btn.btn-primary:hover, button.btn.btn-primary:hover {
    background: #1a5355 !important;
}
    background: var(--primary-color);
}

.btn-success {
    background: var(--success-color);
}

/* Garantir hover verde para botões de sucesso (ex.: WhatsApp) */
.btn-success:hover,
.veiculo-card .btn-success:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #34d399, #059669);
}

.btn-danger {
    background: var(--danger-color);
}

/* ===== CARDS DE VEÍCULOS ===== */
.veiculos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Ajustes visuais para botões dentro dos cards de veículo */
.veiculo-card .btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    font-size: 1rem;
    gap: 0.5rem; /* mantém espaço para ícone quando houver */
}

.veiculo-card .btn i {
    margin-right: 0.35rem;
}

.veiculo-card .veiculo-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.veiculo-card .status-badge {
    align-self: flex-start;
    width: fit-content;
}

.veiculo-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.veiculo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.veiculo-imagem {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.veiculo-info {
    padding: 1.5rem;
}

.veiculo-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.veiculo-detalhes {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.veiculo-detalhes span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.preco {
    font-size: 1.5rem;
    color: var(--success-color);
    font-weight: bold;
    margin: 1rem 0;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-disponivel {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.status-alugado {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.status-manutencao {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-color);
}

/* ===== FORMULÁRIOS ===== */
.form-container {
    max-width: 500px;
    margin: 3rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    margin: 0 0.2rem;
}

/* ===== ALERTAS ===== */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-info {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
}

/* ===== TABELAS ===== */
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--light-color);
    font-weight: 600;
    color: var(--text-primary);
}

tr:hover {
    background: rgba(37, 99, 235, 0.05);
}

/* ===== WHATSAPP FLUTUANTE ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6);
    }
}

/* Responsivo para mobile */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark-color);
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ===== BOTÃO FLUTUANTE WHATSAPP ===== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ===== FILTROS ===== */
.filtros {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

/* ===== Ajustes seção de disponibilidade (detalhes) ===== */
.detalhes-imagem .alert-disponibilidade {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.detalhes-imagem #calendario-disponibilidade {
    margin-top: 0.5rem;
}

.detalhes-imagem .reserva-selecao {
    background: #fff;
    padding: 0.9rem;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(16,24,40,0.04);
    margin-top: 0.75rem;
}

.detalhes-imagem #selecionar-area { gap: 0.5rem; }
.detalhes-imagem #data-retirada-display,
.detalhes-imagem #data-devolucao-display { 
    font-size: 0.95rem; 
    color: var(--text-secondary); 
    display: block !important;
    visibility: visible !important;
}

/* Estilização para displays de data */
#data-retirada-display,
#data-retirada-display-side,
#data-devolucao-display,
#data-devolucao-display-side {
    display: block !important;
    visibility: visible !important;
    min-height: 20px;
}

.detalhes-imagem #conteudo-resumo { grid-template-columns: 1fr 1fr; gap: 0.5rem; align-items: center; }
.detalhes-imagem #valor-total-display { font-weight: 700; color: var(--dark-color); }

.detalhes-imagem .btn { border-radius: 10px; padding: 0.6rem 0.9rem; font-size: 0.95rem; }

@media (max-width: 768px) {
    .detalhes-imagem .reserva-selecao { padding: 0.75rem; }
    .detalhes-imagem #conteudo-resumo { grid-template-columns: 1fr; }
}

/* Helpers para mostrar/ocultar por breakpoint */
.mobile-only { display: block; }
.desktop-only { display: none; }

@media (min-width: 992px) {
    .mobile-only { display: none; }
    .desktop-only { display: block; }
}

.filtros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1000;
    }
    
    .nav-menu {
        position: absolute;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.1);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .veiculos-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
    }
}

/* ===== SEÇÕES EXTRAS ===== */
.section {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

/* Media Query para Cards Features Mobile */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .feature-card {
        padding: 1.2rem 0.8rem;
        border-radius: 8px;
    }
    
    .feature-card i {
        font-size: 2rem;
        margin-bottom: 0.7rem;
    }
    
    .feature-card h3 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }
    
    .feature-card p {
        font-size: 0.8rem;
        line-height: 1.4;
        margin: 0;
    }
}

/* Media Query para smartphones pequenos */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        margin: 1rem 0;
    }
    
    .feature-card {
        padding: 1rem 0.6rem;
        border-radius: 6px;
    }
    
    .feature-card i {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-card h3 {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
        line-height: 1.2;
    }
    
    .feature-card p {
        font-size: 0.75rem;
        line-height: 1.3;
    }
}

/* ===== PAGINAÇÃO ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-primary);
}

.pagination a:hover {
    background: var(--primary-color);
    color: #fff;
}

.pagination .active {
    background: var(--primary-color);
    color: #fff;
}

/* ===== CALENDÁRIO DE DISPONIBILIDADE ===== */
.calendario-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.calendario-mes {
    background: #fff;
    padding: 0.6rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.calendario-mes h4 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.calendario-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.dia-semana {
    text-align: center;
    font-weight: bold;
    font-size: 0.7rem;
    color: var(--text-secondary);
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.dia {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.dia-vazio {
    aspect-ratio: 1;
}

.dia.disponivel {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.dia.disponivel:hover {
    background: rgba(16, 185, 129, 0.2);
    transform: scale(1.05);
}

.dia.selecionado-periodo {
    background: rgba(37, 99, 235, 0.2) !important;
    border: 1px solid var(--primary-color) !important;
}

.dia.data-retirada {
    background: var(--primary-color) !important;
    color: white !important;
    font-weight: bold;
    position: relative;
}

.dia.data-retirada::before {
    content: '🚗';
    position: absolute;
    top: 1px;
    right: 1px;
    font-size: 0.65rem;
}

.dia.data-devolucao {
    background: var(--secondary-color) !important;
    color: white !important;
    font-weight: bold;
    position: relative;
}

.dia.data-devolucao::before {
    content: '🏁';
    position: absolute;
    top: 1px;
    right: 1px;
    font-size: 0.65rem;
}

/* Regras específicas para garantir visibilidade no layout desktop (container side) */
@media (min-width: 992px) {
    .desktop-only #calendario-disponibilidade-side .dia.selecionado-periodo,
    .desktop-only #calendario-disponibilidade-side .dia.data-retirada,
    .desktop-only #calendario-disponibilidade-side .dia.data-devolucao {
        box-shadow: none !important;
    }

    .desktop-only #calendario-disponibilidade-side .dia.selecionado-periodo {
        background: rgba(37, 99, 235, 0.22) !important;
        border: 1px solid var(--primary-color) !important;
        color: var(--text-primary) !important;
    }

    .desktop-only #calendario-disponibilidade-side .dia.data-retirada {
        background: var(--primary-color) !important;
        color: #fff !important;
    }

    .desktop-only #calendario-disponibilidade-side .dia.data-devolucao {
        background: var(--secondary-color) !important;
        color: #fff !important;
    }
}

.dia.ocupado {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.3);
    cursor: not-allowed;
    position: relative;
}

.dia.ocupado::after {
    content: '✕';
    position: absolute;
    font-size: 1.2rem;
    opacity: 0.5;
}

.dia.passado {
    background: rgba(107, 114, 128, 0.1);
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.5;
}

.calendario-legenda {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 5px;
}

.calendario-legenda > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.calendario-legenda span {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    display: inline-block;
}

.cor-disponivel {
    background: rgba(16, 185, 129, 0.3);
    border: 1px solid var(--success-color);
}

.cor-ocupado {
    background: rgba(239, 68, 68, 0.3);
    border: 1px solid var(--danger-color);
}

.cor-passado {
    background: rgba(107, 114, 128, 0.3);
    border: 1px solid var(--text-secondary);
}

.alert-disponibilidade {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(16, 185, 129, 0.1));
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.alert-disponibilidade i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Carousel de Calendários */
.calendario-container {
    width: 100%;
    overflow: visible;
}

.calendario-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.calendario-carousel {
    display: flex;
    gap: 0;
    transition: transform 0.3s ease-in-out;
}

.calendario-mes {
    min-width: 100%;
    flex-shrink: 0;
    width: 100%;
}

.calendario-controles {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
    width: 100%;
}

.btn-calendario {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 0.7rem 1.3rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-calendario:hover {
    transform: translateY(-3px);
}

.btn-calendario:disabled {
    background: linear-gradient(135deg, #e0e0e0, #d0d0d0);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-calendario:disabled:hover {
    transform: none;
    box-shadow: none;
}

.calendario-indicador {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    min-width: 200px;
    text-align: center;
}

@media (max-width: 768px) {
    .calendario-carousel {
        gap: 0;
    }
    
    .calendario-mes {
        min-width: 100%;
    }
    
    .calendario-controles {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .calendario-indicador {
        order: -1;
    }
}

/* ===== PAGINAÇÃO ===== */
.paginacao {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0 1rem 0;
    flex-wrap: wrap;
}

.btn-paginacao {
    background: var(--primary-color);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-paginacao:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.numeros-pagina {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.numero-pagina {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
    font-weight: 500;
}

.numero-pagina:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
}

.numero-pagina.ativo {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.reticencias {
    color: var(--text-secondary);
    padding: 0 0.5rem;
}

@media (max-width: 768px) {
    .paginacao {
        gap: 0.5rem;
    }
    
    .btn-paginacao {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .numeros-pagina {
        gap: 0.3rem;
    }
    
    .numero-pagina {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Página de Reserva - Responsiva */
.reserva-veiculo-topo {
    margin-bottom: 2rem;
}

.veiculo-resumo-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
}

.veiculo-info-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    align-items: start;
}

.veiculo-imagem img {
    width: 100%;
    border-radius: 8px;
}

.veiculo-detalhes h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.veiculo-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 5px;
}

.veiculo-specs div {
    text-align: center;
}

.veiculo-specs i {
    color: var(--primary-color);
    margin-right: 0.3rem;
}

.veiculo-preco {
    font-size: 2rem;
    font-weight: bold;
    color: var(--success-color);
    margin: 1rem 0;
}

.veiculo-preco small {
    font-size: 1rem;
    color: var(--text-secondary);
}

.veiculo-inclusos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.veiculo-inclusos p {
    margin: 0;
    font-size: 0.9rem;
}

.veiculo-inclusos i {
    color: var(--success-color);
    margin-right: 0.5rem;
}

.resumo-valor-container {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 2rem;
    border-radius: 10px;
    color: white;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.reserva-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
}

.reserva-calendario-section {
    width: 100%;
}

.reserva-form-section {
    width: 100%;
}

.reserva-calendario-container {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 0;
}

.reserva-titulo-calendario {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.reserva-datas-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.data-display {
    background: white;
    padding: 1rem;
    border-radius: 5px;
}

.data-retirada-display {
    border: 2px solid var(--primary-color);
}

.data-devolucao-display {
    border: 2px solid var(--border-color);
}

.reserva-grid-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.reserva-form-container {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.reserva-resumo-veiculo {
    position: relative;
}

.resumo-veiculo-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 100px;
}

@media (max-width: 768px) {
    .veiculo-resumo-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .veiculo-info-card {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }
    
    .veiculo-detalhes h3 {
        font-size: 1.4rem;
        text-align: center;
    }
    
    .veiculo-specs {
        grid-template-columns: repeat(3, 1fr);
        font-size: 0.85rem;
        gap: 0.5rem;
        padding: 0.8rem;
    }
    
    .veiculo-preco {
        font-size: 1.6rem;
        text-align: center;
    }
    
    .veiculo-inclusos {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .resumo-valor-container {
        padding: 1rem;
        position: relative;
        top: 0;
    }
    
    .reserva-grid-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .reserva-calendario-container {
        padding: 1rem;
    }
    
    .reserva-titulo-calendario {
        font-size: 1.2rem;
    }
    
    .reserva-datas-display {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .data-display {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .reserva-grid-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .reserva-form-container {
        padding: 1rem;
        order: 2;
    }
    
    .reserva-resumo-veiculo {
        order: 1;
    }
    
    .resumo-veiculo-card {
        position: relative;
        top: 0;
        padding: 1rem;
    }
}

/* Página de Detalhes - Responsiva */
.detalhes-veiculo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.detalhes-imagem img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.detalhes-titulo {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.detalhes-preco {
    font-size: 2.5rem;
    margin: 1.5rem 0;
    font-weight: bold;
    color: var(--success-color);
}

.detalhes-preco small {
    font-size: 1rem;
    color: var(--text-secondary);
}

.detalhes-especificacoes {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.detalhes-especificacoes h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.especificacoes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.especificacoes-grid > div {
    padding: 0.5rem;
}

.especificacoes-grid i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.btn-reservar {
    width: 100%;
    text-align: center;
    font-size: 1.2rem;
    padding: 1rem;
    display: block;
}

@media (max-width: 768px) {
    .detalhes-veiculo-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .detalhes-titulo {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .status-badge {
        display: inline-block;
        margin: 0.5rem 0 1rem 0;
    }
    
    .detalhes-preco {
        font-size: 2rem;
        text-align: center;
        margin: 1rem 0;
    }
    
    .detalhes-preco small {
        font-size: 0.9rem;
    }
    
    .detalhes-especificacoes {
        padding: 1rem;
    }
    
    .especificacoes-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
        font-size: 0.9rem;
    }
    
    .especificacoes-grid > div {
        padding: 0.5rem;
        text-align: center;
    }
    
    .especificacoes-grid strong {
        display: block;
        margin-top: 0.3rem;
    }
    
    .btn-reservar {
        font-size: 1rem;
        padding: 0.8rem;
    }
}

/* ===== PÁGINA DE CONTATO ===== */
.contato-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .contato-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ===== DASHBOARD SAAS ===== */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-label {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.stat-value {
    color: #1e293b;
    font-size: 1.875rem;
    font-weight: 700;
    margin: 0;
}

.dashboard-link-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    display: block;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.dashboard-link-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.dashboard-link-card h3 {
    color: #1e293b;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem 0;
}

.dashboard-link-card p {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
}

.dashboard-link-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.dashboard-arrow {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.dashboard-link-card:hover .dashboard-arrow {
    color: #206062;
    transform: translateY(-50%) translateX(5px);
}

.badge-pendencia {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    z-index: 10;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ===== ADMIN SIDEBAR ===== */
.admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: white;
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.admin-sidebar::-webkit-scrollbar {
    width: 6px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.sidebar-menu {
    padding: 1rem 0;
}

.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-section-title {
    padding: 0.75rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    font-size: 0.95rem;
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-item.active {
    background: rgba(32, 96, 98, 0.2);
    color: white;
    border-left: 3px solid #206062;
}

.sidebar-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #206062;
}

.sidebar-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar-badge {
    margin-left: auto;
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.sidebar-header-badge {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 0.45rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.5), 0 0 0 3px rgba(239, 68, 68, 0.2);
    animation: pulse-glow 2s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(239, 68, 68, 0.5), 0 0 0 3px rgba(239, 68, 68, 0.2);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 25px rgba(239, 68, 68, 0.7), 0 0 0 6px rgba(239, 68, 68, 0.15);
        transform: scale(1.05);
    }
}

.sidebar-header {
    position: relative;
}

.sidebar-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-pendencias-resumo {
    margin: 0.75rem;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #f87171;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(248, 113, 113, 0.25);
    animation: slideDown 0.3s ease;
}

.pendencias-titulo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 1rem 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.pendencias-titulo i {
    font-size: 1.3rem;
    animation: wobble 1s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes wobble {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.pendencias-lista {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.6rem;
}

.pendencia-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    background: white;
    margin-bottom: 0.5rem;
    border-radius: 10px;
    color: #111827;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #fee2e2;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pendencia-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, #f87171, #ef4444);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.pendencia-item:hover::before {
    transform: scaleY(1);
}

.pendencia-item:hover {
    background: #fffbeb;
    transform: translateX(6px) scale(1.02);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.25);
    border-color: #fbbf24;
}

.pendencia-item:last-child {
    margin-bottom: 0;
}

.pendencia-item i:first-child {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
    font-size: 1.2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
}

.pendencia-item:hover i:first-child {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.pendencia-item i:last-child {
    margin-left: auto;
    color: #9ca3af;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.pendencia-item:hover i:last-child {
    color: #ef4444;
    transform: translateX(4px);
}

.pendencia-dismiss {
    margin-left: auto;
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.pendencia-dismiss:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg);
}

.pendencia-dismiss:active {
    transform: rotate(90deg) scale(0.9);
}

@keyframes fadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.8); }
}

.sidebar-pendencias-resumo {
    transition: all 0.3s ease;
}

.pendencia-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pendencia-item span {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.sidebar-mobile-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 998;
    background: #206062;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    display: none;
}

/* Layout com sidebar */
.admin-layout {
    margin-left: 280px;
    min-height: 100vh;
    background: #f8fafc;
}

.admin-layout .section {
    width: 100%;
}

/* Mobile */
@media (max-width: 1024px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    .admin-sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .sidebar-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .admin-layout {
        margin-left: 0;
    }
    
    /* Footer admin responsivo */
    footer[style*="margin-left: 280px"] {
        margin-left: 0 !important;
    }
    
    body.sidebar-open {
        overflow: hidden;
    }
}

/* Responsivo para grid de 2 colunas no dashboard */
@media (max-width: 768px) {
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    div[style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* ===== SISTEMA DE NOTIFICAÇÕES ===== */
.notificacoes-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 380px;
    max-height: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notificacoes-header {
    background: linear-gradient(135deg, #206062 0%, #206062 100%);
    color: white;
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notificacao-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.notificacao-item:hover {
    background: #f8fafc;
}

.notificacao-item:last-child {
    border-bottom: none;
}

.notificacao-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notificacao-content {
    flex: 1;
    min-width: 0;
}

.notificacao-titulo {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1f2937;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.notificacao-mensagem {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notificacao-tempo {
    font-size: 0.8rem;
    color: #94a3b8;
}

.notificacao-empty {
    padding: 3rem 2rem;
    text-align: center;
    color: #94a3b8;
}

.notificacao-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.notificacao-empty p {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Ajuste para menu notificações */
#menuNotificacoes {
    position: relative;
}

#menuNotificacacoes > a {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
