
/* =========================================================
   SIP-NPWPD GLOBAL MODERN THEME
   ========================================================= */

:root {
    --sip-primary: #173f5f;
    --sip-primary-2: #20639b;
    --sip-accent: #3caea3;
    --sip-success: #2e9f65;
    --sip-warning: #f4b942;
    --sip-danger: #e05252;
    --sip-bg: #f4f7fb;
    --sip-card: #ffffff;
    --sip-text: #172033;
    --sip-muted: #6b7280;
    --sip-border: #e7edf4;
    --sip-radius: 16px;
    --sip-shadow: 0 8px 28px rgba(23,63,95,.07);
    --sip-shadow-hover: 0 14px 34px rgba(23,63,95,.13);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--sip-bg) !important;
    color: var(--sip-text);
}

/* Global page entrance */
@keyframes sipPageIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sipFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sipSoftPulse {
    0%,100% { opacity: 1; }
    50% { opacity: .72; }
}

@keyframes sipSpin {
    to { transform: rotate(360deg); }
}

main,
.main-content,
.content,
.container-fluid {
    animation: sipPageIn .45s ease both;
}

/* =========================================================
   CARDS
   ========================================================= */

.card {
    border: 1px solid var(--sip-border) !important;
    border-radius: var(--sip-radius) !important;
    box-shadow: var(--sip-shadow) !important;
    background: var(--sip-card);
    overflow: hidden;
    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}

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

.card-header {
    background: #fff !important;
    border-bottom: 1px solid var(--sip-border) !important;
    padding: 18px 20px !important;
}

.card-body {
    padding: 20px !important;
}

/* Jangan mengganggu card statistik dashboard */
.stat-card,
.kpi-card {
    transition:
        transform .22s ease,
        box-shadow .22s ease !important;
}

.stat-card:hover,
.kpi-card:hover {
    transform: translateY(-3px);
}

/* =========================================================
   TABLE
   ========================================================= */

.table-responsive {
    border-radius: 14px;
}

.table {
    margin-bottom: 0 !important;
    vertical-align: middle;
}

.table thead th {
    background: #f7f9fc !important;
    color: #526174 !important;
    font-size: .76rem !important;
    font-weight: 700 !important;
    letter-spacing: .035em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--sip-border) !important;
    white-space: nowrap;
    padding: 13px 14px !important;
}

.table tbody td {
    padding: 14px !important;
    border-color: #edf1f5 !important;
}

.table tbody tr {
    transition:
        background-color .18s ease,
        transform .18s ease;
}

.table tbody tr:hover {
    background: #f8fbfd !important;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    border-radius: 10px !important;
    font-weight: 600 !important;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        opacity .18s ease !important;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0) scale(.98);
}

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

.btn-primary:hover {
    background: var(--sip-primary-2) !important;
    border-color: var(--sip-primary-2) !important;
    box-shadow: 0 7px 18px rgba(32,99,155,.22);
}

.btn-success {
    box-shadow: 0 5px 14px rgba(46,159,101,.14);
}

.btn-danger {
    box-shadow: 0 5px 14px rgba(224,82,82,.12);
}

/* =========================================================
   FORMS
   ========================================================= */

.form-control,
.form-select {
    border: 1px solid #dfe6ee !important;
    border-radius: 10px !important;
    min-height: 42px;
    background: #fff !important;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--sip-accent) !important;
    box-shadow: 0 0 0 3px rgba(60,174,163,.12) !important;
}

.form-label {
    font-weight: 600;
    color: #425066;
    margin-bottom: 7px;
}

.input-group-text {
    border-color: #dfe6ee !important;
    background: #f8fafc !important;
    border-radius: 10px 0 0 10px !important;
}

/* =========================================================
   BADGES / STATUS
   ========================================================= */

.badge {
    border-radius: 999px !important;
    padding: .42em .72em !important;
    font-weight: 600 !important;
}

/* =========================================================
   ALERT
   ========================================================= */

.alert {
    border: 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 18px rgba(23,63,95,.05);
}

/* =========================================================
   PAGINATION
   ========================================================= */

.pagination {
    gap: 4px;
}

.page-link {
    border: 0 !important;
    border-radius: 9px !important;
    color: var(--sip-primary) !important;
    margin: 0 !important;
}

.page-item.active .page-link {
    background: var(--sip-primary) !important;
    color: #fff !important;
}

.page-link:hover {
    background: #edf5f8 !important;
}

/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    box-shadow: 8px 0 28px rgba(10,30,50,.08) !important;
}

.sidebar a,
.sidebar .nav-link {
    transition:
        background-color .18s ease,
        color .18s ease,
        padding-left .18s ease,
        transform .18s ease;
}

.sidebar a:hover,
.sidebar .nav-link:hover {
    transform: translateX(2px);
}

/* =========================================================
   TOPBAR
   ========================================================= */

.topbar,
.navbar {
    box-shadow: 0 4px 20px rgba(23,63,95,.05) !important;
}

/* =========================================================
   ICON / AVATAR
   ========================================================= */

.avatar,
.user-avatar {
    transition: transform .2s ease, box-shadow .2s ease;
}

.avatar:hover,
.user-avatar:hover {
    transform: scale(1.05);
}

/* =========================================================
   ACTION / FILTER AREA
   ========================================================= */

.filter-card,
.search-card {
    position: relative;
}

.filter-card .card-body,
.search-card .card-body {
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #fbfcfe 100%
    );
}

/* =========================================================
   STATUS DOT
   ========================================================= */

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-dot.active {
    animation: sipSoftPulse 2s ease-in-out infinite;
}

/* =========================================================
   LOADING
   ========================================================= */

.sip-loading {
    position: relative;
    pointer-events: none;
    opacity: .65;
}

.sip-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.55);
    z-index: 50;
}

.sip-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(23,63,95,.15);
    border-top-color: var(--sip-primary);
    border-radius: 50%;
    animation: sipSpin .7s linear infinite;
}

/* =========================================================
   MODAL
   ========================================================= */

.modal-content {
    border: 0 !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 70px rgba(15,35,55,.18) !important;
}

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

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

/* =========================================================
   DROPDOWN
   ========================================================= */

.dropdown-menu {
    border: 1px solid var(--sip-border) !important;
    border-radius: 13px !important;
    box-shadow: 0 15px 40px rgba(23,63,95,.12) !important;
    padding: 7px !important;
}

.dropdown-item {
    border-radius: 8px;
    transition: background-color .16s ease, transform .16s ease;
}

.dropdown-item:hover {
    transform: translateX(2px);
}

/* =========================================================
   TOAST
   ========================================================= */

.toast {
    border: 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 35px rgba(23,63,95,.14) !important;
}

/* =========================================================
   SECTION TITLE
   ========================================================= */

.page-title,
.section-title {
    color: var(--sip-primary);
    font-weight: 750;
    letter-spacing: -.02em;
}

.page-subtitle,
.section-subtitle {
    color: var(--sip-muted);
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 991.98px) {
    .card-body {
        padding: 16px !important;
    }

    .table {
        font-size: .9rem;
    }

    .table thead th,
    .table tbody td {
        padding: 11px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
