:root {
    --primary-color: #000000;
    --secondary-color: #2c3e50;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --gray-color: #bdc3c7;
    --text-color: #333333;
    --white: #ffffff;
    --border-color: #ddd;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body { 
    background-color: var(--light-color); 
    color: var(--text-color);
    line-height: 1.6;
}

/* Estilos para a página de login */
.login-page {
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.login-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('../img/logo-locabras-02.png');
    background-repeat: no-repeat;
    background-position: center 30%;
    background-size: 300px;
    opacity: 0.1;
    z-index: 0;
}

.login-thumbnails {
    position: absolute;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    padding: 20px;
    opacity: 0.05;
    z-index: 0;
}

.login-thumbnails img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
}

.login-container { 
    background: var(--white); 
    padding: 30px; 
    border-radius: 8px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
    width: 100%; 
    max-width: 400px; 
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    z-index: 1;
}

.login-container h2 { 
    text-align: center; 
    color: var(--danger-color); 
    margin-bottom: 20px;
    font-size: 24px;
}

.form-group { 
    margin-bottom: 20px; 
    text-align: left;
}

.form-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 600; 
    color: var(--dark-color);
    font-size: 14px;
}

.form-group input { 
    width: 100%; 
    padding: 12px 15px; 
    border: 1px solid var(--border-color); 
    border-radius: 4px; 
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.btn-login { 
    width: 100%; 
    padding: 12px; 
    background-color: var(--danger-color); 
    color: var(--white); 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-login:hover { 
    background-color: #c0392b; 
}

.error { 
    color: var(--danger-color); 
    text-align: center; 
    margin-bottom: 20px; 
    display: none;
    font-size: 14px;
    padding: 10px;
    background-color: rgba(231, 76, 60, 0.1);
    border-radius: 4px;
}

.error.show {
    display: block;
}

/* Adicione aqui o/* ===== ESTILOS GERAIS ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--dark-color);
    font-weight: 600;
}

.card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

/* ===== HEADER E NAVEGAÇÃO ===== */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
}

.logo h1 {
    font-size: 20px;
    margin-left: 10px;
    color: var(--danger-color);
}

.user-menu {
    display: flex;
    align-items: center;
}

.user-info {
    margin-right: 15px;
    text-align: right;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
}

.user-role {
    font-size: 12px;
    color: var(--gray-color);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--danger-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* ===== SIDEBAR ===== */
.sidebar {
    background-color: var(--secondary-color);
    color: var(--white);
    width: 250px;
    height: calc(100vh - 70px);
    position: fixed;
    top: 70px;
    left: 0;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
}

.menu-item {
    padding: 0;
}

.menu-item a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--white);
    text-decoration: none;
    transition: background-color 0.3s;
}

.menu-item a:hover, .menu-item a.active {
    background-color: rgba(255,255,255,0.1);
}

.menu-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* ===== CONTEÚDO PRINCIPAL ===== */
.main-content {
    margin-left: 250px;
    padding: 20px;
    min-height: calc(100vh - 70px);
    background-color: var(--light-color);
}

/* ===== DASHBOARD ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
    color: white;
}

.stat-icon.blue {
    background-color: #3498db;
}

.stat-icon.green {
    background-color: var(--success-color);
}

.stat-icon.orange {
    background-color: var(--warning-color);
}

.stat-icon.red {
    background-color: var(--danger-color);
}

.stat-info h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.stat-info p {
    color: var(--gray-color);
    font-size: 14px;
}

/* ===== TABELAS ===== */
.table-container {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.table-title {
    font-size: 18px;
    font-weight: 600;
}

.table-actions {
    display: flex;
    gap: 10px;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* ===== FORMULÁRIOS ===== */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.form-column {
    flex: 1;
    padding: 0 10px;
    min-width: 250px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* ===== BOTÕES ===== */
.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn i {
    margin-right: 5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #333;
}

.btn-success {
    background-color: var(--success-color);
    color: var(--white);
}

.btn-success:hover {
    background-color: #219653;
}

.btn-danger {
    background-color: var(--danger-color);
    color: var(--white);
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-warning {
    background-color: var(--warning-color);
    color: var(--white);
}

.btn-warning:hover {
    background-color: #e67e22;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background-color: #f8f9fa;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s;
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.modal {
    background: var(--white);
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transform: translateY(-20px);
    transition: transform 0.3s;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--gray-color);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ===== PAGINAÇÃO ===== */
.pagination {
    display: flex;
    justify-content: center;
    padding: 15px 0;
    list-style: none;
}

.pagination li {
    margin: 0 5px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a:hover, .pagination a.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* ===== ALERTAS ===== */
.alert {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.alert i {
    margin-right: 10px;
    font-size: 18px;
}

.alert-success {
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.alert-danger {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.alert-warning {
    background-color: rgba(243, 156, 18, 0.1);
    color: var(--warning-color);
    border: 1px solid rgba(243, 156, 18, 0.2);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 992px) {
    .sidebar {
        width: 70px;
    }
    
    .sidebar .menu-text {
        display: none;
    }
    
    .main-content {
        margin-left: 70px;
    }
    
    .menu-item i {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-column {
        flex: 0 0 100%;
    }
    
    .table-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .table-actions {
        margin-top: 10px;
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 576px) {
    .sidebar {
        width: 0;
        overflow: hidden;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .user-menu {
        margin-top: 10px;
        width: 100%;
        justify-content: space-between;
    }
    
    .modal {
        margin: 0 10px;
    }
}

/* ===== UTILITÁRIOS ===== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

