/* Reset basico de estilos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0b0e14;
    color: #e2e8f0;
}

/* Layout em Grid para dividir Sidebar e Conteudo */
.dashboard-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

/* Estilo da Barra Lateral */
.sidebar {
    background-color: #111622;
    padding: 20px;
    border-right: 1px solid #1e293b;
}

.logo h2 {
    color: #38bdf8;
    font-size: 22px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu a {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #94a3b8;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.menu a:hover, .menu a.active {
    background: linear-gradient(90deg, #1e293b, #0f172a);
    color: #38bdf8;
    border-left: 4px solid #38bdf8;
}

/* Area de Conteudo Principal */
.main-content {
    padding: 30px;
    background-color: #0b0e14;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 15px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #111622;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #1e293b;
}

/* Grid de Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background-color: #111622;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card h3 {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.card p {
    font-size: 28px;
    font-weight: bold;
}

.icon-blue { color: #38bdf8; font-size: 24px; }
.icon-yellow { color: #fbbf24; font-size: 24px; }
.icon-green { color: #4ade80; font-size: 24px; }

.status-online { color: #4ade80; font-size: 20px !important; }

/* Tabela estilo CRM */
.crm-section {
    background-color: #111622;
    border-radius: 12px;
    border: 1px solid #1e293b;
    padding: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-refresh {
    background-color: #38bdf8;
    color: #0b0e14;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.crm-table-container {
    overflow-x: auto;
}

.crm-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.crm-table th {
    padding: 12px 16px;
    color: #94a3b8;
    border-bottom: 2px solid #1e293b;
    font-size: 14px;
}

.crm-table td {
    padding: 16px;
    border-bottom: 1px solid #1e293b;
    font-size: 15px;
}

.loading-row {
    text-align: center;
    color: #64748b;
    padding: 40px !important;
}