/* File: FyHub/assets/css/style.css */

/* --- Importações e Configurações Globais --- */
body {
    font-family: "Inter", "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #858796;
    text-align: left;
    background-color: #f8f9fc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- COR DO MENU LATERAL (SIDEBAR) --- */
.bg-gradient-primary {
    background-color: #0d6efd;
    background-image: linear-gradient(135deg, #0d6efd 0%, #0043a8 100%);
    background-size: cover;
}

/* --- Layout Wrapper --- */
#wrapper {
    display: flex;
    flex: 1;
    width: 100%;
}

#content-wrapper {
    background-color: #f8f9fc;
    width: 100%;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#content {
    flex: 1 0 auto;
}

/* --- Menu Lateral (Sidebar) --- */
.sidebar {
    width: 16rem;
    min-height: 100vh;
    transition: all 0.3s ease;
}

.sidebar-toggled .sidebar {
    width: 6.5rem !important;
    overflow: visible;
}

.sidebar .nav-item {
    position: relative;
    margin-bottom: 0.5rem;
}

.sidebar .nav-item:last-child {
    margin-bottom: 1rem;
}

/* LINK BASE DO MENU */
.sidebar .nav-item .nav-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 0 50px 50px 0; /* Borda arredondada à direita para efeito moderno */
    margin-right: 10px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Transição suave */
}

.sidebar .nav-item .nav-link i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    width: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* --- NOVO: EFEITO HOVER (Ao passar o rato) --- */
.sidebar .nav-item .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.15); /* Fundo sutil */
    transform: translateX(8px); /* Desloca para a direita */
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1); /* Sombra suave */
}

.sidebar .nav-item .nav-link:hover i {
    color: #fff;
    transform: scale(1.2); /* Ícone aumenta */
}

/* Estado Ativo (Página Atual) */
.sidebar .nav-item.active .nav-link {
    font-weight: 800;
    color: #fff;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: inset 3px 0 0 #fff; /* Indicador sutil interno */
}

.sidebar .nav-item.active .nav-link i {
    color: #fff;
}

.sidebar .nav-item .nav-link span {
    display: inline;
}

/* Modo Colapsado */
.sidebar-toggled .sidebar .nav-item .nav-link span {
    display: none;
}
.sidebar-toggled .sidebar .nav-item .nav-link {
    text-align: center;
    padding: 0.75rem 0.5rem;
    width: 6.5rem;
    border-radius: 0; /* Remove arredondamento no modo colapsado */
}
.sidebar-toggled .sidebar .nav-item .nav-link:hover {
    transform: none; /* Sem deslocamento no modo colapsado */
    background-color: rgba(255, 255, 255, 0.1);
}
.sidebar-toggled .sidebar .nav-item .nav-link i {
    margin-right: 0;
    font-size: 1.4rem;
}

.sidebar-heading {
    text-align: left;
    padding: 0 1rem;
    font-weight: 800;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.sidebar-toggled .sidebar .sidebar-heading {
    text-align: center;
    font-size: 0.6rem;
    padding: 0 5px;
}

.sidebar-divider {
    margin: 0 1rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Sidebar Brand */
.sidebar .sidebar-brand {
    height: 5rem;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 800;
    padding: 1.5rem 1rem;
    text-align: center;
    letter-spacing: 0.05rem;
    z-index: 1;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sidebar-brand-icon img {
    height: 45px;
    width: auto;
}
.sidebar-toggled .sidebar .sidebar-brand-text {
    display: none;
}

/* Botão Toggle */
#sidebarToggle {
    width: 2.5rem;
    height: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border: none;
    color: white;
    transition: background-color 0.2s;
}
#sidebarToggle:hover {
    background-color: rgba(255, 255, 255, 0.4);
}
#sidebarToggle::after {
    font-weight: 900;
    content: '\f104'; /* Angle Left */
    font-family: 'Font Awesome 6 Free';
}
.sidebar-toggled #sidebarToggle::after {
    content: '\f105'; /* Angle Right */
}

/* Topbar */
.topbar {
    height: 4.375rem;
}
.topbar .nav-item .nav-link {
    height: 4.375rem;
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    color: #d1d3e2;
}
.topbar .nav-item .nav-link:hover {
    color: #858796;
}
.topbar .dropdown-list .dropdown-header {
    background-color: #4e73df;
    border: 1px solid #4e73df;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    color: #fff;
}
.topbar .dropdown-list .dropdown-item {
    white-space: normal;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-left: 1px solid #e3e6f0;
    border-right: 1px solid #e3e6f0;
    border-bottom: 1px solid #e3e6f0;
    line-height: 1.3rem;
}

/* Cards & Utilidades */
.card {
    border: none;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}
.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
    font-weight: 600;
}
.text-gray-800 { color: #5a5c69 !important; }
.text-gray-600 { color: #858796 !important; }
.shadow { box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15) !important; }

/* Animações */
.fade-in { animation: fadeIn 0.5s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Footer Customizado */
.footer-custom {
    background-color: #fff;
    border-top: 1px solid #e3e6f0;
    font-size: 0.85rem;
}
.footer-custom .nav-link:hover,
.footer-custom .social-links a:hover {
    color: #0d6efd !important;
    transition: color 0.2s ease;
}
.footer-custom .hover-primary:hover i {
    transform: scale(1.1);
    transition: transform 0.2s;
}

/* Heatmap & Slots */
.heatmap-table { width: 100%; border-collapse: collapse; }
.heatmap-table th, .heatmap-table td { border: 1px solid #dee2e6; padding: 0.5rem; text-align: center; font-size: 0.8rem; min-width: 60px; }
.heatmap-table th { background-color: #f8f9fa; font-weight: 600; }
.heatmap-table td { background-color: #fff; transition: background-color 0.3s, transform 0.2s; font-weight: 500; }
.heatmap-table td:hover { transform: scale(1.1); box-shadow: 0 0 10px rgba(0,0,0,0.2); z-index: 10; position: relative; }
.best-time-slot { background-color: #007BFF !important; font-weight: bold; border: 2px solid #004a99; color: #fff !important; box-shadow: 0 0 15px rgba(0, 123, 255, 0.5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(0, 123, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); } }

/* Responsividade Mobile */
@media (max-width: 768px) {
    .sidebar { width: 6.5rem !important; display: none; }
    .sidebar.toggled { display: block; width: 100% !important; height: auto; position: relative; z-index: 100; }
    .sidebar-toggled .sidebar { display: block; width: 6.5rem !important; }
}