/*
 * Akati Admin - modern theme layer.
 *
 * This sits ON TOP of the existing sb-admin-2.min.css (which bundles all of
 * Bootstrap 4's grid/utility/component CSS - every admin page structurally
 * depends on it for layout, modals, dropdowns, forms, etc.). This file only
 * restyles the *visual* layer: colors, shadows, radius, spacing, typography,
 * sidebar/topbar/card/table/button polish. Nothing here changes markup
 * structure or removes a Bootstrap class - just overrides its appearance.
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --akati-brand: #c7295b;
    --akati-brand-dark: #a01f48;
    --akati-brand-light: #ff5c8a;
    --akati-ink: #1a1d29;
    --akati-ink-soft: #5b6072;
    --akati-bg: #f4f5fa;
    --akati-surface: #ffffff;
    --akati-border: #eceef5;
    --akati-success: #1dbf73;
    --akati-danger: #e5484d;
    --akati-warning: #f5a524;
    --akati-radius-sm: 10px;
    --akati-radius: 16px;
    --akati-radius-lg: 22px;
    --akati-shadow-sm: 0 1px 2px rgba(26, 29, 41, 0.04), 0 1px 3px rgba(26, 29, 41, 0.06);
    --akati-shadow: 0 4px 16px rgba(26, 29, 41, 0.06), 0 1px 4px rgba(26, 29, 41, 0.04);
    --akati-shadow-lg: 0 12px 32px rgba(26, 29, 41, 0.10);
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--akati-bg);
    color: var(--akati-ink);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: var(--akati-ink);
}

/* ---------- Layout shell ---------- */

#content-wrapper {
    background-color: var(--akati-bg);
}

.container-fluid {
    padding: 1.75rem 2rem;
}

/* ---------- Sidebar ---------- */

.sidebar.sidebar-dark {
    background: linear-gradient(180deg, #1a1d29 0%, #262a3b 100%) !important;
}

.sidebar .sidebar-brand {
    padding: 1.75rem 1.25rem 1.25rem;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    color: #ffffff;
}

.sidebar .sidebar-brand-icon {
    display: none;
}

.sidebar hr.sidebar-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0.5rem 1.25rem;
}

.sidebar .sidebar-heading {
    color: rgba(255, 255, 255, 0.35) !important;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 1.1rem 1.25rem 0.4rem;
}

.sidebar .nav-item {
    margin: 0.1rem 0.75rem;
}

.sidebar .nav-item .nav-link {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 500;
    font-size: 0.86rem;
    border-radius: var(--akati-radius-sm);
    padding: 0.65rem 0.9rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar .nav-item .nav-link i {
    color: rgba(255, 255, 255, 0.45);
    margin-right: 0.6rem;
    width: 1.1rem;
    text-align: center;
    transition: color 0.15s ease;
}

.sidebar .nav-item .nav-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.sidebar .nav-item .nav-link:hover i {
    color: #ffffff;
}

.sidebar .nav-item.active .nav-link,
.sidebar .nav-item .nav-link[href].active {
    background: linear-gradient(135deg, var(--akati-brand) 0%, var(--akati-brand-dark) 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(199, 41, 91, 0.35);
}

.sidebar .nav-item.active .nav-link i {
    color: #ffffff;
}

#sidebarToggle {
    background: rgba(255, 255, 255, 0.08) !important;
}

/* ---------- Topbar ---------- */

.navbar.topbar {
    background: var(--akati-surface) !important;
    border-bottom: 1px solid var(--akati-border);
    box-shadow: none !important;
}

.navbar-search .form-control {
    background: var(--akati-bg) !important;
    border-radius: var(--akati-radius-sm) !important;
}

.navbar-search .btn-primary,
.navbar-search .input-group-text {
    background: var(--akati-brand) !important;
    border-color: var(--akati-brand) !important;
}

.nav-item.dropdown .nav-link span {
    color: var(--akati-ink) !important;
    font-weight: 600 !important;
}

.img-profile {
    border-color: var(--akati-brand) !important;
}

/* ---------- Cards ---------- */

.card {
    border: 1px solid var(--akati-border);
    border-radius: var(--akati-radius);
    box-shadow: var(--akati-shadow);
}

.card.shadow {
    box-shadow: var(--akati-shadow) !important;
}

.card-header {
    background: var(--akati-surface);
    border-bottom: 1px solid var(--akati-border);
    border-radius: var(--akati-radius) var(--akati-radius) 0 0 !important;
    padding: 1.1rem 1.4rem;
}

.card-header h6, .card-header .h6 {
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.card-header h6.text-primary, .card-body h3 {
    color: var(--akati-brand) !important;
}

.card-body {
    padding: 1.4rem;
}

/* ---------- Buttons ---------- */

.btn {
    border-radius: var(--akati-radius-sm);
    font-weight: 600;
    font-size: 0.86rem;
    padding: 0.55rem 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--akati-brand) 0%, var(--akati-brand-dark) 100%);
    border: none;
    box-shadow: 0 4px 14px rgba(199, 41, 91, 0.3);
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, var(--akati-brand-dark) 0%, var(--akati-brand) 100%);
    box-shadow: 0 6px 18px rgba(199, 41, 91, 0.4);
}

.btn-success {
    background: var(--akati-success);
    border: none;
}

.btn-danger {
    background: var(--akati-danger);
    border: none;
}

.btn-sm {
    border-radius: 8px;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
}

/* ---------- Tables ---------- */

.table {
    color: var(--akati-ink);
}

.table thead th {
    background: var(--akati-bg);
    border-bottom: 1px solid var(--akati-border) !important;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--akati-ink-soft);
    font-weight: 700;
    padding: 0.85rem 1rem;
}

.table td {
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--akati-border);
    vertical-align: middle;
    font-size: 0.88rem;
}

.table-bordered, .table-bordered td, .table-bordered th {
    border: 1px solid var(--akati-border);
}

.table-hover tbody tr:hover {
    background-color: rgba(199, 41, 91, 0.03);
}

/* ---------- Forms ---------- */

.form-control {
    border-radius: var(--akati-radius-sm);
    border-color: var(--akati-border);
    font-size: 0.88rem;
    padding: 0.55rem 0.85rem;
}

.form-control:focus {
    border-color: var(--akati-brand);
    box-shadow: 0 0 0 3px rgba(199, 41, 91, 0.12);
}

/* .custom-select (incl. DataTables' "Show X entries" control) needs its
   own right padding kept wider than the rest of .form-control - that's
   where Bootstrap positions the dropdown chevron, and the rule above would
   otherwise shrink it enough for the chevron to crowd/overlap the text. */
select.form-control,
.custom-select {
    padding-right: 1.75rem;
}

label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--akati-ink-soft);
}

/* ---------- Alerts ---------- */

.alert {
    border: none;
    border-radius: var(--akati-radius-sm);
    font-size: 0.88rem;
}

.alert-danger {
    background: #fdeceb;
    color: #b32620;
}

.alert-success {
    background: #e7f9f0;
    color: #0e7a4b;
}

/* ---------- Dropdowns & modals ---------- */

.dropdown-menu {
    border: 1px solid var(--akati-border);
    border-radius: var(--akati-radius);
    box-shadow: var(--akati-shadow-lg);
}

.modal-content {
    border: none;
    border-radius: var(--akati-radius);
    box-shadow: var(--akati-shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--akati-border);
}

.modal-footer {
    border-top: 1px solid var(--akati-border);
}

/* ---------- Badges ---------- */

.badge {
    font-weight: 600;
    border-radius: 999px;
    padding: 0.35em 0.75em;
}

/* ---------- Footer ---------- */

footer.sticky-footer {
    background: var(--akati-surface) !important;
    border-top: 1px solid var(--akati-border);
}
