/* ============================================================
   CUSTOM — Estilos globais do sistema | cadernopessoas
   ============================================================ */

:root {
    --font-base: 'Inter', system-ui, -apple-system, sans-serif;
    --sidebar-width: 280px;
    --color-primary-dark: #0f172a;
    --color-primary: #1e293b;
    --color-accent: #3b82f6;
    --color-bg-light: #f8fafc;
}

body {
    font-family: var(--font-base);
    background-color: var(--color-bg-light);
}

/* ── Utilities e Cores Frias ── */
.bg-light-blue {
    background-color: var(--color-bg-light) !important;
}

.text-primary {
    color: var(--color-accent) !important;
}

.bg-primary {
    background-color: var(--color-accent) !important;
}

.btn-primary {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

/* ── Sidebar ── */
.sidebar-custom {
    background-color: var(--color-primary-dark);
}

#sidebar-wrapper {
    width: var(--sidebar-width);
    min-height: 100vh;
    flex-shrink: 0;
    transition: margin 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
}

#sidebar-wrapper.collapsed {
    margin-left: calc(-1 * var(--sidebar-width));
}

#page-content-wrapper {
    min-width: 0;
    flex: 1;
    transition: all 0.3s ease;
}

/* ── Sidebar nav items ── */
#sidebar-wrapper .list-group-item {
    background: transparent;
    border: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

#sidebar-wrapper .list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    transform: translateX(4px);
    color: #fff !important;
}

#sidebar-wrapper .list-group-item.active {
    background-color: var(--color-accent) !important;
    color: #fff !important;
}

/* ── Navbar ── */
.navbar-custom {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* ── Components ── */
.card {
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1) !important;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1) !important;
}

/* ── Badges de permissão ── */
.badge-admin {
    background-color: #ef4444;
    color: white;
    padding: 0.35em 0.65em;
}

.badge-editor {
    background-color: var(--color-accent);
    color: white;
    padding: 0.35em 0.65em;
}

.badge-visualizador {
    background-color: #64748b;
    color: white;
    padding: 0.35em 0.65em;
}

/* ── Form Inputs ── */
.form-control,
.form-select,
.input-group-text {
    border-color: #e2e8f0;
}

.form-control:focus,
.form-select:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

.smooth-hover {
    transition: all 0.2s ease;
}

.smooth-hover:hover {
    transform: translateY(-2px);
}