/* css/style.css - Tema Coco & Cia Moderno (Corrigido) */
:root {
    --coco-green-dark: #1b5e20;
    --coco-green: #2E7D32;
    --coco-green-light: #43A047;
    --coco-yellow: #FFC107;
    --coco-orange: #FF9800;
    --bg-light: #f4f6f9;
    --text-dark: #2c3e50;
    --navbar-height: 70px;
}

body {
    background-color: var(--bg-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    min-height: 100vh;
}

/* === NAVBAR MODERNA === */
.navbar-custom {
    background: linear-gradient(135deg, var(--coco-green-dark) 0%, var(--coco-green) 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.logo-container img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s;
}

.navbar-brand:hover .logo-container img {
    transform: rotate(-10deg) scale(1.1);
}

.custom-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.custom-link:hover,
.custom-link.active {
    color: #fff !important;
}

/* Animação do sublinhado amarelo */
.custom-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 5px;
    left: 50%;
    background-color: var(--coco-yellow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.custom-link:hover::after,
.custom-link.active::after {
    width: 70%;
}

/* === ÁREA DO USUÁRIO (Cápsula) === */
.user-pill {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 5px 15px !important;
    /* Ajuste de padding */
    transition: all 0.3s ease;
}

.user-pill:hover,
.show>.user-pill {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.avatar-circle {
    width: 30px;
    height: 30px;
    background: var(--coco-yellow);
    color: var(--coco-green-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* === CORREÇÃO DO DROPDOWN (MODAL CONTA) === */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    margin-top: 10px !important;
    padding: 10px;
}

/* A animação só ocorre quando o menu tem a classe 'show' (está aberto) */
.dropdown-menu.show {
    animation: slideInDown 0.2s ease-out forwards;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    border-radius: 8px;
    padding: 8px 15px;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background-color: #f1f3f5;
}

/* === TELA DE LOGIN (CORREÇÃO DE LARGURA) === */
.login-body {
    /* Garante que o body ocupe a tela toda e centralize o conteúdo */
    background: radial-gradient(circle at top right, #e8f5e9 0%, #ffffff 40%, #fff3e0 100%);
    min-height: 100vh;
    display: flex !important;
    /* Força flexbox */
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.login-card {
    background: white;
    width: 100%;
    max-width: 400px;
    /* Limita a largura do cartão */
    border-top: 5px solid var(--coco-green);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(46, 125, 50, 0.15);
    padding: 40px;
    position: relative;
}

.login-logo {
    max-height: 90px;
    margin-bottom: 15px;
}

.btn-coco {
    background: linear-gradient(45deg, var(--coco-green) 0%, var(--coco-green-light) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px;
    transition: all 0.3s;
}

.btn-coco:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
    color: white;
}

/* === CONTEÚDO GERAL === */
.main-content {
    margin-top: 30px;
    margin-bottom: 60px;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hover-card {
    border-radius: 15px !important;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.hover-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

footer {
    background-color: #1b1e21;
    border-top: 3px solid var(--coco-yellow);
    color: #bbb;
    padding: 20px 0;
    margin-top: auto;
}