/* ==========================================================================
   HOTSPOT CONECTA - CSS CORE
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Paleta de Cores Baseada nos Prints */
    --brand-primary: #ea580c; /* Laranja Conecta */
    --brand-primary-hover: #c2410c;
    --bg-dark: #111827; /* Fundo do Login */
    --bg-main: #f3f4f6; /* Fundo do Dashboard */
    --bg-card: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --input-bg: #eff6ff; /* Azul clarinho do input de login */
    
    /* Estrutura */
    --sidebar-width: 260px;
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   TELA DE LOGIN (Ref: image_01ef19.png)
   ========================================================================== */
.login-body {
    background-color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-card {
    background: var(--bg-card);
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.login-logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo-container img {
    max-width: 150px;
}

.login-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--input-bg);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.btn-primary {
    width: 100%;
    background-color: var(--brand-primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background-color: var(--brand-primary-hover);
}

/* ==========================================================================
   DASHBOARD - MENU E CABEÇALHO FIXOS (Ref: image_01eebd.png)
   ========================================================================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    overflow-y: auto; /* O SEGREDO DO SCROLL CASO DE ZOOM */
    z-index: 100;
    display: flex;
    flex-direction: column;
}

/* Estilizando a barra de rolagem do menu para ficar elegante */
.sidebar::-webkit-scrollbar {
    width: 6px;
}
.sidebar::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
}

.sidebar-logo {
    padding: 20px;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-logo img {
    max-width: 130px;
}

.sidebar-menu {
    padding: 20px 0;
    flex: 1;
}

.menu-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--brand-primary);
    padding: 0 20px;
    margin-bottom: 10px;
    margin-top: 15px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    gap: 12px;
    transition: all 0.2s;
}

.menu-item i {
    font-size: 1.2rem;
}

.menu-item:hover, .menu-item.active {
    color: var(--brand-primary);
    background-color: rgba(234, 88, 12, 0.05);
    border-right: 3px solid var(--brand-primary);
}

.top-header {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--header-height);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 90;
}

.header-search {
    display: flex;
    align-items: center;
    background: var(--bg-main);
    padding: 8px 15px;
    border-radius: 20px;
    width: 300px;
}

.header-search input {
    border: none;
    background: transparent;
    outline: none;
    margin-left: 10px;
    width: 100%;
    font-size: 0.9rem;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    text-align: right;
}

.user-info strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-main);
}

.user-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffedd5;
    color: var(--brand-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
}

.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    padding: 30px;
    min-height: calc(100vh - var(--header-height));
}

/* ==========================================================================
   DASHBOARD - KPI GRID
   ========================================================================== */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.kpi-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.kpi-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.kpi-info h3 {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 5px;
}

.kpi-info .val {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.section-title {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}