:root {
    --fenadep-blue: #5b8def;
    --fenadep-violet: #8f7cf7;
    --fenadep-pink: #f27bbd;
    --fenadep-bg: #f5f7fb;
    --fenadep-card: #ffffff;
    --fenadep-muted: #6b7280;
    --fenadep-border: #e5e7eb;
}

* {
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, #f8faff 0%, #f4f6fb 100%);
    color: #1f2937;
}

.auth-body {
    background: radial-gradient(circle at top left, rgba(91, 141, 239, 0.16), transparent 32%),
        radial-gradient(circle at bottom right, rgba(242, 123, 189, 0.16), transparent 28%),
        linear-gradient(180deg, #f8fbff, #eef2ff);
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: 290px;
    background: rgba(255, 255, 255, 0.92);
    border-right: 1px solid var(--fenadep-border);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.brand-mark,
.auth-logo {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--fenadep-blue), var(--fenadep-violet));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(91, 141, 239, 0.25);
}

.brand-title {
    font-weight: 800;
    font-size: 1rem;
}

.brand-subtitle {
    color: var(--fenadep-muted);
    font-size: 0.85rem;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    color: #374151;
    margin-bottom: 0.35rem;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background: linear-gradient(135deg, rgba(91, 141, 239, 0.12), rgba(143, 124, 247, 0.12));
    color: #1d4ed8;
}

.app-main {
    flex: 1;
    min-width: 0;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(245, 247, 251, 0.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.75);
    padding: 1rem 1.25rem;
}

.app-content {
    padding-bottom: 2rem;
}

.card,
.alert,
.dropdown-menu,
.form-control,
.btn {
    border-radius: 1.25rem;
}

.stat-card .card-body {
    padding: 1.25rem;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.stat-label {
    color: var(--fenadep-muted);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.auth-card {
    width: min(100%, 440px);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(229, 231, 235, 0.8);
}

.btn-primary {
    background: linear-gradient(135deg, var(--fenadep-blue), var(--fenadep-violet));
    border: none;
    box-shadow: 0 10px 24px rgba(91, 141, 239, 0.22);
}

.btn-primary:hover {
    filter: brightness(0.96);
}

.table > :not(caption) > * > * {
    padding: 1rem 0.75rem;
}

.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-icon-btn {
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(31, 41, 55, 0.08);
}

.action-icon-btn i {
    font-size: 0.95rem;
    line-height: 1;
}

.tab-pane .dataTables_wrapper {
    width: 100%;
}

.tab-pane table.dataTable {
    width: 100% !important;
}

@media (max-width: 991.98px) {
    .app-shell {
        flex-direction: column;
    }

    .app-sidebar {
        display: none;
    }

    .app-header {
        padding: 0.85rem 1rem;
    }
}
