/**
 * AutoGest Pro v6.0 - Estilos
 * @author Alceujrab
 * @version 6.0
 * @date 2025-07-03
 */

/* Base e Fontes */
:root {
    --primary-color: #1e3c72;
    --secondary-color: #2a5298;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --body-bg: #f8f9fa;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--body-bg);
    color: #333;
}

/* Layout Principal */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 250px;
    padding: 0;
    z-index: 100;
    overflow-y: auto;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.sidebar.collapsed {
    margin-left: -250px;
}

.main-content {
    margin-left: 250px;
    padding: 20px;
    transition: all 0.3s;
}

.main-content.expanded {
    margin-left: 0;
}

.sidebar-header {
    padding: 20px 15px;
    border-bottom: 1px solid #eee;
}

.sidebar .nav-link {
    color: #495057;
    padding: 12px 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.sidebar .nav-link i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
}

.sidebar .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(30, 60, 114, 0.1);
    border-left: 4px solid var(--primary-color);
}

.sidebar .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.sidebar-footer {
    padding: 15px;
    border-top: 1px solid #eee;
}

/* Informações do usuário */
.user-info {
    padding: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.api-status {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.85em;
}

/* Conteúdo */
.page {
    display: none;
}

.page.active {
    display: block;
}

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

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--primary-color);
}

/* Cards e Estatísticas */
.stats-card {
    transition: transform 0.2s;
}

.stats-card:hover {
    transform: translateY(-5px);
}

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

/* Tabelas */
.table {
    font-size: 0.9rem;
}

.table thead th {
    font-weight: 600;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.table tbody tr {
    transition: background-color 0.2s;
}

.table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Responsividade */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -250px;
    }
    
    .sidebar.collapsed {
        margin-left: 0;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .main-content.expanded {
        margin-left: 250px;
    }
}