/* Layout Base */
html, body {
    height: 100%;
    background-color: #f4f6f9;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.app-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 70px; /* Espaço para navbar superior */
}

@media (max-width: 991.98px) {
    .app-wrapper {
        padding-top: 60px;
        padding-bottom: 70px; /* Espaço para navbar inferior */
    }
}

.main-content {
    flex: 1;
    position: relative;
}

/* Visibilidade das Seções */
.section-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.section-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Navbar Superior */
.navbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.navbar-brand img {
    border-radius: 6px;
}

/* Navbar Inferior (Mobile) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1090;
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #6c757d;
    font-size: 0.7rem;
    width: 20%;
    height: 100%;
    transition: color 0.2s ease;
}

.bottom-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 3px;
}

.bottom-nav-item.active {
    color: #0d6efd;
    font-weight: 600;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-header {
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
    font-weight: 600;
}

/* Utilitários */
.cursor-pointer { cursor: pointer; }
.hover-scale:hover { transform: scale(1.02); }

/* Status Pills */
.status-pill {
    position: fixed;
    bottom: 80px;
    right: 20px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 1080;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: #343a40;
    color: white;
    transition: all 0.3s ease;
}
.status-pill.bg-success { background-color: #10b981 !important; }
.status-pill.bg-warning { background-color: #f59e0b !important; color: #000 !important; }
.status-pill.bg-danger { background-color: #ef4444 !important; }

/* NOVO v4.0.21: Pop-up de Itens ao passar o mouse */
.item-hover-popup {
    position: fixed;
    background: white;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 12px;
    z-index: 2000;
    width: 250px;
    display: none;
    font-size: 0.85rem;
    pointer-events: none; /* Permite passar o mouse por cima sem travar */
}
.item-hover-popup ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.item-hover-popup li {
    border-bottom: 1px solid #eee;
    padding: 4px 0;
    display: flex;
    justify-content: space-between;
}
.item-hover-popup li:last-child { border-bottom: none; }

/* No Print */
@media print {
    .no-print { display: none !important; }
    .app-wrapper { padding-top: 0; padding-bottom: 0; }
    .bottom-nav { display: none !important; }
}
