/* Estilos gerais */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #495057;
}

.sidebar {
    min-width: 280px;
    height: 100vh;
    position: sticky;
    top: 0;
}

.sidebar .bg-primary {
    background-color: #2563eb !important;
}

.main-content {
    min-height: 100vh;
}

.menu-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.sidebar .nav-link {
    border-radius: 5px;
    margin-bottom: 3px;
    font-weight: 500;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Dashboard styles */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-title {
    font-weight: 700;
}

.icon-bg {
    width: 50px;
    height: 50px;
}

.bg-primary-light {
    background-color: rgba(37, 99, 235, 0.1);
}

.bg-success-light {
    background-color: rgba(16, 185, 129, 0.1);
}

.bg-warning-light {
    background-color: rgba(245, 158, 11, 0.1);
}

.bg-info-light {
    background-color: rgba(6, 182, 212, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-info .badge {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Formulários */
.form-control:focus, .form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

.btn-primary {
    background-color: #2563eb;
    border-color: #2563eb;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

/* Login */
.login-container {
    max-width: 400px;
    margin: 100px auto;
}

.login-card {
    border-radius: 10px;
    overflow: hidden;
}

.login-header {
    background-color: #2563eb;
    color: white;
    padding: 20px;
    text-align: center;
}

.login-logo {
    font-size: 24px;
    font-weight: bold;
}

.form-floating>label {
    color: #6c757d;
}

/* Tabelas */
.table-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
}

.table td {
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(37, 99, 235, 0.05);
}

/* Responsividade */
@media (max-width: 992px) {
    .sidebar {
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 250px;
        max-width: 80%;
        z-index: 1030;
        transition: transform 0.3s ease-in-out;
        transform: translateX(-100%);
        overflow-y: auto;
        height: 100vh;
        background-color: #2563eb;
        padding: 1rem;
    }
    
    body.sidebar-shown .sidebar {
        transform: translateX(0);
    }
    
    .toggle-sidebar {
        display: block !important;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1031;
    }

    .main-content {
        transform: translateX(0);
        transition: transform 0.3s ease-in-out;
        width: 100%;
        overflow-x: hidden;
    }

    body.sidebar-shown .main-content {
        transform: translateX(250px);
    }
    
    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1029;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    }

    body.sidebar-shown::after {
        opacity: 1;
        visibility: visible;
    }
}

/* Status badges */
.status-ativo {
    background-color: #d1fae5;
    color: #047857;
}

.status-inativo {
    background-color: #fee2e2;
    color: #b91c1c;
}

.status-pendente {
    background-color: #fff7cd;
    color: #b45309;
}

/* Notificações */
.dropdown-menu {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    border: none;
}

/* Paginação */
.pagination .page-link {
    color: #2563eb;
    border: none;
    margin: 0 3px;
    border-radius: 5px;
}

.pagination .page-item.active .page-link {
    background-color: #2563eb;
    color: #fff;
} 