@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --bg-color: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --sidebar-width: 250px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
}

/* Sidebar y Wrapper */
#wrapper {
    overflow-x: hidden;
}

#sidebar-wrapper {
    min-height: 100vh;
    width: var(--sidebar-width);
    transition: margin 0.25s ease-out;
}

#page-content-wrapper {
    min-width: 100vw;
}

@media (min-width: 768px) {
    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }
}

.list-group-item.active {
    background-color: rgba(79, 70, 229, 0.1) !important;
    color: var(--primary-color) !important;
}

/* Cards y Botones */
.card {
    border-radius: 12px;
}

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

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

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.25);
    border-color: var(--primary-color);
}

/* Badges de Estado */
.badge-success { background-color: #10b981; color: white; }
.badge-danger { background-color: #ef4444; color: white; }
.badge-secondary { background-color: #64748b; color: white; }
.badge { font-weight: 500; padding: 0.4em 0.8em; border-radius: 6px; }

/* Utilidades para Iconos en Cards */
.bg-primary-subtle { background-color: #e0e7ff !important; }
.text-primary { color: var(--primary-color) !important; }

.bg-success-subtle { background-color: #d1fae5 !important; }
.text-success { color: #059669 !important; }

.bg-danger-subtle { background-color: #fee2e2 !important; }
.text-danger { color: #dc2626 !important; }

/* Ajustes DataTables */
div.dataTables_wrapper div.dataTables_filter input {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.375rem 0.75rem;
}

table.dataTable.table-hover > tbody > tr:hover > * {
    box-shadow: inset 0 0 0 9999px rgba(79, 70, 229, 0.05);
}

/* Fondo Login */
.login-body {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
}
