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

/* ======================================================
   GLOBAL
====================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {

    --primary: #dc2626;
    --primary-dark: #991b1b;
    /* --primary: #26bbdc;
    --primary-dark: #044164; */

    --success: #16a34a;
    --danger: #ef4444;
    --warning: #f59e0b;

    --dark: #0f172a;
    --dark-soft: #111827;

    --text: #1e293b;
    --muted: #64748b;

    --border: #e2e8f0;

    --bg: #f8fafc;
    --white: #ffffff;

    --shadow:
        0 10px 30px rgba(15, 23, 42, .06);

}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
}

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

.sidebar {
    width: 280px;
    height: 100vh;
    position: fixed;
    overflow-y: auto;
    overflow-x: hidden;
    top: 0;
    left: 0;
    background:
        linear-gradient(180deg,
            #1f2937,
            #0f172a);

    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 999;
    transition:
        transform .3s ease,
        width .3s ease;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 40px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background:
        linear-gradient(135deg,
            var(--primary),
            var(--primary-dark));

    display: flex;
    justify-content: center;
    align-items: center;

    color: white;
    font-size: 22px;

    box-shadow:
        0 15px 30px rgba(220, 38, 38, .25);
}

.logo-box h2 {
    color: white;
    font-size: 24px;
}

.logo-box small {
    color: rgba(255, 255, 255, .6);
}

.menu-title {
    color: rgba(255, 255, 255, .35);
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 16px;
    margin-left: 12px;
}

.sidebar a {
    width: 100%;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 18px;
    text-decoration: none;
    color: rgba(255, 255, 255, .75);
    margin-bottom: 10px;
    transition: .25s ease;
    font-weight: 500;
}

.sidebar a i {
    width: 22px;
    font-size: 16px;
}

.sidebar a:hover {
    background: rgba(255, 255, 255, .06);
    color: white;
    transform: translateX(4px);
}

.sidebar a.active {
    background:
        linear-gradient(135deg,
            var(--primary),
            var(--primary-dark));

    color: white;

    box-shadow:
        0 10px 30px rgba(220, 38, 38, .25);
}

.sidebar-footer {
    margin-top: 30px;
}

/* SCROLLBAR */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .15);
    border-radius: 999px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, .28);
}

.profile-page {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 25px;
}

.profile-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-user-card,
.profile-info-box,
.profile-box {
    background: #fff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .04);
}

.profile-user-card {
    text-align: center;
}

.profile-user-photo,
.profile-user-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: auto;
    margin-bottom: 20px;
}

.profile-user-photo {
    object-fit: cover;
}

.profile-user-avatar {
    background: linear-gradient(135deg, #ef4444, #991b1b);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
}

.profile-role-badge {
    display: inline-block;
    margin-top: 15px;
    background: #fee2e2;
    color: #dc2626;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.profile-info-title,
.profile-box-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    margin-bottom: 20px;
}

.profile-success,
.profile-danger {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.profile-success {
    background: #dcfce7;
    color: #166534;
}

.profile-danger {
    background: #fee2e2;
    color: #991b1b;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.profile-table {
    width: 100%;
    border-collapse: collapse;
}

.profile-table th {
    background: #f8fafc;
    padding: 16px;
    text-align: left;
}

.profile-table td {
    padding: 16px;
    border-top: 1px solid #f1f5f9;
}

.profile-detail {
    margin-top: 14px;
}

.profile-detail small {
    display: block;

    color: #94a3b8;

    font-size: 12px;

    margin-top: 10px;
}

.profile-detail p {
    margin-top: 5px;

    display: flex;
    align-items: center;
    gap: 8px;

    color: #0f172a;

    font-weight: 500;
}

.profile-detail i {
    color: #94a3b8;
    font-size: 13px;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

@media(max-width:900px) {

    .profile-page {
        grid-template-columns: 1fr;
    }

    .profile-form-grid {
        grid-template-columns: 1fr;
    }

}

@media(max-width:768px) {

    .profile-user-card,
    .profile-info-box,
    .profile-box {
        padding: 20px;
        border-radius: 20px;
    }

    .profile-user-photo,
    .profile-user-avatar {
        width: 90px;
        height: 90px;
    }

    .profile-user-avatar {
        font-size: 30px;
    }

    .profile-user-card h2 {
        font-size: 24px;
    }

    .profile-box-title {
        font-size: 18px;
    }

    .profile-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .table-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .profile-table {
        width: 100%;
        min-width: 700px;

        border-collapse: collapse;
    }

    .profile-box .btn {
        width: 100%;
        justify-content: center;
    }

    .profile-role-badge,
    .profile-success,
    .profile-danger {
        font-size: 11px;
        padding: 7px 14px;
    }

    .profile-detail p {
        font-size: 14px;
        line-height: 1.5;
    }

}

.sidebar-footer {
    margin-top: auto;

    padding: 20px;

    display: flex;
    flex-direction: column;
    gap: 15px;
}

.logout-form {
    width: 100%;
}

.logout-btn {
    width: 100%;

    border: none;

    background: rgba(255, 255, 255, .08);

    color: white;

    padding: 14px 16px;

    border-radius: 16px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    cursor: pointer;

    font-size: 14px;
    font-weight: 600;

    transition: .2s ease;
}

.logout-btn:hover {
    background: #dc2626;

    transform: translateY(-2px);
}

.logout-btn i {
    font-size: 15px;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 14px;

    border-radius: 18px;

    background: white;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
}

.profile-card-photo {
    width: 52px;
    height: 52px;

    border-radius: 50%;

    object-fit: cover;
}

.profile-card-avatar {
    width: 52px;
    height: 52px;

    border-radius: 50%;

    background: linear-gradient(135deg,
            #ef4444,
            #991b1b);

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    font-weight: 700;
}

.profile-card-info {
    display: flex;
    flex-direction: column;
}

.profile-card-info h4 {
    margin: 0;
    font-size: 14px;
    color: #0f172a;
}

.profile-card-info small {
    color: #64748b;
    font-size: 11px;
    margin-top: 2px;
}

.user-detail-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.user-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-detail-header h1 {
    font-size: 34px;
    margin: 0;
    color: #0f172a;
}

.user-detail-header p {
    margin-top: 8px;
    color: #64748b;
}

.user-detail-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 24px;
}

.user-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.user-card-modern {
    background: white;
    border-radius: 30px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .05);
}

.user-detail-photo,
.user-detail-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin: auto;
    object-fit: cover;
}

.user-detail-avatar {
    background: linear-gradient(135deg, #ef4444, #991b1b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 52px;
    font-weight: 700;
}

.user-card-modern h2 {
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 28px;
}

.user-card-modern p {
    color: #64748b;
    margin-bottom: 20px;
}

.user-role-badge {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: #fee2e2;
    color: #dc2626;
    font-weight: 600;
    font-size: 13px;
}

.mini-info {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.mini-info small {
    display: block;
    color: #94a3b8;
    margin-bottom: 6px;
}

.status-card {
    background: white;
    padding: 24px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .04);
}

.status-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    margin-bottom: 18px;
}

.status-success {
    background: #dcfce7;
    color: #166534;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.status-danger {
    background: #fee2e2;
    color: #dc2626;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.user-detail-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.modern-box {
    background: white;
    border-radius: 28px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .04);
}

.modern-box-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
}

.biodata-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.biodata-item {
    background: #f8fafc;
    border-radius: 18px;
    padding: 20px;
}

.biodata-item small {
    display: block;
    color: #64748b;
    margin-bottom: 8px;
}

.history-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-radius: 20px;
    background: #f8fafc;
    margin-bottom: 16px;
}

.history-card h4 {
    margin: 0 0 8px;
}

.history-card small {
    color: #64748b;
}

.empty-box {
    padding: 25px;
    border-radius: 20px;
    background: #f8fafc;
    text-align: center;
    color: #64748b;
}

@media(max-width:1000px) {

    .user-detail-grid {
        grid-template-columns: 1fr;
    }

    .biodata-grid {
        grid-template-columns: 1fr;
    }

}

/* ======================================================
   MAIN
====================================================== */

.main {
    margin-left: 280px;
    min-height: 100vh;
    padding: 30px;
    transition:
        margin-left .3s ease,
        width .3s ease;
}


/*
|--------------------------------------------------------------------------
| DESKTOP HIDE SIDEBAR
|--------------------------------------------------------------------------
*/

.sidebar.hide-sidebar {

    transform: translateX(-100%);

}

.main.full-main {

    margin-left: 0 !important;

    width: 100%;

}

/*
|--------------------------------------------------------------------------
| HAMBURGER BUTTON
|--------------------------------------------------------------------------
*/

.mobile-menu-btn {

    width: 46px;
    height: 46px;

    border: none;

    border-radius: 14px;

    background: white;

    color: var(--dark);

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;

    box-shadow: var(--shadow);

    transition: .25s ease;

}

.mobile-menu-btn:hover {

    transform: translateY(-2px);

    background: var(--primary);

    color: white;

}

/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 992px) {

    .sidebar {

        transform: translateX(-100%);

    }

    .sidebar.show-sidebar {

        transform: translateX(0);

    }

    .main {

        margin-left: 0 !important;

        width: 100%;

    }

}

/* ======================================================
   NAVBAR
====================================================== */

.navbar {
    width: 100%;
    background: white;
    border-radius: 28px;
    padding: 22px 28px;
    margin-bottom: 28px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    box-shadow: var(--shadow);
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-profile-mini img,
.navbar-profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.navbar-profile-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;

    text-decoration: none;
}

.navbar-profile-mini small {
    font-size: 11px;
    font-weight: 600;

    color: #64748b;

    transition: .2s ease;
}

.navbar-profile-mini:hover small {
    color: #dc2626;
}

.navbar-profile-avatar {
    background: linear-gradient(135deg,
            #ef4444,
            #991b1b);

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 700;
}

.navbar h3 {
    font-size: 26px;
    color: var(--dark);
}

.navbar small {
    color: var(--muted);
}

/* ==========================================
FILTER LAPORAN
========================================== */

.filter-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-select {
    flex: 1;
    min-width: 350px;
}

.filter-row .btn {
    height: 54px;
    padding: 0 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* ==========================================
TOM SELECT FULL WIDTH
========================================== */

.ts-wrapper {
    width: 100% !important;
}

.ts-wrapper.single .ts-control {
    width: 100% !important;

    min-height: 58px;

    display: flex;
    align-items: center;

    padding: 14px 18px;

    background: #2f3446 !important;

    border: 1px solid rgba(255, 255, 255, .08) !important;

    border-radius: 16px !important;

    color: #fff;

    font-size: 16px;
}

.ts-control input {
    color: #fff !important;
    font-size: 16px;
}

.ts-dropdown {
    width: 100% !important;
}

.search-form {
    margin-bottom: 20px;
}

.search-box {
    width: 100%;
    max-width: 340px;

    height: 52px;

    background: white;

    border: 1px solid #e2e8f0;

    border-radius: 18px;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 0 18px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .04);

    transition: .2s ease;
}

.search-box:hover {
    border-color: #cbd5e1;
}

.search-box:focus-within {

    border-color: #f87171;

    box-shadow:
        0 10px 30px rgba(239, 68, 68, .12);

    transform: translateY(-1px);
}

.search-box i {
    color: #94a3b8;
    font-size: 14px;
}

.search-box input {
    width: 100%;

    border: none;
    outline: none;

    background: transparent;

    font-size: 14px;

    font-family: inherit;

    color: #0f172a;
}

.search-box input::placeholder {
    color: #94a3b8;
}

.history-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;

    margin-top: 10px;
}

.history-meta small {
    color: #64748b;

    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 12px;
}

.history-meta i {
    color: #94a3b8;
    width: 14px;
}

/*
|--------------------------------------------------------------------------
| LIVE EVENT
|--------------------------------------------------------------------------
*/

.live-wrapper {

    margin-top: 28px;
    margin-bottom: 28px;

    background: #ffffff;

    border-radius: 24px;

    padding: 24px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);

}

.live-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 22px;

    flex-wrap: wrap;

    gap: 12px;

}

.live-header h3 {

    margin: 0;

    font-size: 22px;

}

.live-header small {

    color: var(--muted);

}

.live-badge {

    display: flex;

    align-items: center;

    gap: 8px;

    background: rgba(239, 68, 68, 0.1);

    color: #ef4444;

    padding: 10px 16px;

    border-radius: 999px;

    font-weight: 700;

    font-size: 13px;

}

.live-dot {

    width: 10px;

    height: 10px;

    background: #ef4444;

    border-radius: 50%;

    animation: pulseLive 1s infinite;

}

@keyframes pulseLive {

    0% {

        transform: scale(1);

        opacity: 1;

    }

    50% {

        transform: scale(1.5);

        opacity: .5;

    }

    100% {

        transform: scale(1);

        opacity: 1;

    }

}

.live-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));

    gap: 18px;

}

.live-card {

    border-radius: 22px;

    padding: 22px;

    color: white;

    position: relative;

    overflow: hidden;

}

.live-bad {

    background: linear-gradient(135deg, #ef4444, #dc2626);

}

.live-bam {

    background: linear-gradient(135deg, #f59e0b, #d97706);

}

.live-type {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    background: rgba(255, 255, 255, .2);

    padding: 8px 14px;

    border-radius: 999px;

    font-size: 13px;

    font-weight: 700;

    margin-bottom: 16px;

}

.live-card h4 {

    margin: 0;

    font-size: 20px;

    line-height: 1.4;

}

.live-card p {

    margin-top: 10px;

    margin-bottom: 8px;

    opacity: .9;

}

.live-card small {

    opacity: .85;

}

.live-empty {

    grid-column: 1/-1;

    text-align: center;

    padding: 50px 20px;

    border: 2px dashed #e5e7eb;

    border-radius: 20px;

    color: var(--muted);

}

.live-empty i {

    font-size: 42px;

    margin-bottom: 14px;

}

.live-region {

    margin-top: 10px;

    margin-bottom: 8px;

    opacity: .95;

    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 14px;

}

.live-place {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 10px;

    font-size: 13px;

    background: rgba(255, 255, 255, .18);

    padding: 8px 12px;

    border-radius: 12px;

    width: fit-content;

}

.live-card small {

    display: flex;

    align-items: center;

    gap: 8px;

    opacity: .9;

    font-size: 13px;

}

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

.mobile-menu-btn {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: none;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--dark);
    font-size: 18px;
    box-shadow: var(--shadow);
    transition: .25s ease;
}

.mobile-menu-btn:hover {

    transform: translateY(-2px);
    background: var(--primary);
    color: white;

}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .6);
    z-index: 998;
    display: none;
}

.show-overlay {
    display: block;
}

.show-sidebar {
    left: 0 !important;
}

/* ======================================================
   PAGE HEADER
====================================================== */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.page-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
}

.page-header small {
    color: var(--muted);
    font-size: 14px;
}

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

.table-wrapper {
    background: var(--white);
    border-radius: 28px;
    padding: 24px;
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.table thead th {
    background: #f1f5f9;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    padding: 18px;
    text-align: left;
    white-space: nowrap;
}

.table tbody td {
    padding: 18px;
    border-top: 1px solid var(--border);
    vertical-align: middle;
}

.table tbody tr {
    transition: .2s ease;
}

.table tbody tr:hover {
    background: #f8fafc;
}

/* ======================================================
   USER AVATAR
====================================================== */

.table-user {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fecaca;
}

/* ======================================================
   BUTTON
====================================================== */

.btn {
    height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    transition: .25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

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

.btn-primary {
    background:
        linear-gradient(135deg,
            var(--primary),
            var(--primary-dark));

    color: white;
}

.btn-warning {
    background: #fef3c7;
    color: #92400e;
}

.btn-danger {
    background: #fee2e2;
    color: #b91c1c;
}

.btn-success {
    background: #dcfce7;
    color: #166534;
}

.btn-sm {
    height: 40px;
    padding: 0 14px;
    font-size: 13px;
}

.btn-dark {

    background: linear-gradient(135deg,
            #0f172a,
            #1e293b);

    color: white;

    box-shadow:
        0 10px 25px rgba(15, 23, 42, .18);

}

.btn-dark:hover {

    transform: translateY(-2px);

    box-shadow:
        0 14px 30px rgba(15, 23, 42, .25);

}

.btn-info {
    background: #0bbdb7;
    color: white;
}

.btn-info:hover {
    background: #028b85;
}

/* ======================================================
   BADGE
====================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    /* border-radius: 999px; */
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge-blue {
    background: #fee2e2;
    color: #b91c1c;
}

.badge-green {
    background: #dcfce7;
    color: #166534;
}

.badge-orange {
    background: #fed7aa;
    color: #c2410c;
}

.badge-red {
    background: #fee2e2;
    color: #b91c1c;
}

/* SELECT SEARCH */

.search-select{
    position:relative;
}

.search-result{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    margin-top:4px;
    background:#fff;
    border:1px solid #d1d5db;
    border-radius:8px;
    max-height:220px;
    overflow-y:auto;
    z-index:999999;
    box-shadow:0 8px 20px rgba(0,0,0,.12);
}

.search-item{
    padding:10px 14px;
    cursor:pointer;
    transition:.15s;
}

.search-item:hover{
    background:#f3f4f6;
}

.search-item small{
    color:#6b7280;
}

/* ===================================================== */
/* ACCORDION ANGGOTA */
/* ===================================================== */

.anggota-collapse {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
}

.anggota-collapse summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    background: #f8fafc;
    transition: .25s;
    user-select: none;
}

.anggota-collapse summary:hover {
    background: #f1f5f9;
}

.anggota-collapse summary::-webkit-details-marker {
    display: none;
}

.anggota-collapse[open] summary {
    background: #ecfdf5;
    border-bottom: 1px solid #d1fae5;
}

.anggota-table {
    padding: 20px;
    overflow-x: auto;
}

/* ======================================================
   ACTION GROUP
====================================================== */

.action-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ======================================================
   FORM
====================================================== */

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.form-control {
    width: 100%;
    height: 54px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: white;
    padding: 0 18px;
    outline: none;
    font-family: inherit;
    transition: .25s ease;
}

textarea.form-control {
    height: 120px;
    padding-top: 14px;
    resize: none;
}

.form-control:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(220, 38, 38, .10);
}

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

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .65);
    backdrop-filter: blur(4px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    width: 100%;
    max-width: 560px;
    background: white;
    border-radius: 30px;
    padding: 30px;
    box-shadow:
        0 20px 60px rgba(15, 23, 42, .25);

    animation: modalShow .25s ease;
    max-height: 95vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

.modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: .2s ease;
}

.modal-close:hover {
    background: #e2e8f0;
}

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

.alert-success {
    background: #dcfce7;
    color: #166534;
    padding: 16px 18px;
    border-radius: 16px;
    margin-bottom: 20px;
    font-weight: 500;

    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-danger {
    background: #fee2e2;
    color: #b91c1c;
    padding: 16px 18px;
    border-radius: 16px;
    margin-bottom: 20px;
    font-weight: 500;

    display: flex;
    align-items: center;
    gap: 12px;
}

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

.pagination {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    box-shadow: var(--shadow);
}

/* ======================================================
   LANDING PAGE
====================================================== */

.landing-body {
    background:
        radial-gradient(circle at top left, rgba(239, 68, 68, .20), transparent 25%),
        radial-gradient(circle at bottom right, rgba(127, 29, 29, .25), transparent 30%),
        #0f172a;

    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.landing-navbar {
    width: 100%;
    height: 90px;
    padding: 0 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.landing-logo-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background:
        linear-gradient(135deg,
            var(--primary),
            var(--primary-dark));

    display: flex;
    justify-content: center;
    align-items: center;
}

.landing-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.landing-menu a {
    color: rgba(255, 255, 255, .8);
    text-decoration: none;
}

.hero-section {
    min-height: calc(100vh - 90px);
    padding: 60px 7%;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 60px;
}

.hero-left h1 {
    font-size: 68px;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-left h1 span {
    color: #f87171;
}

.hero-left p {
    color: rgba(255, 255, 255, .7);
    font-size: 18px;
    line-height: 1.9;
}

.hero-action {
    display: flex;
    gap: 16px;
    margin-top: 40px;
}

.hero-btn-primary {
    height: 56px;
    padding: 0 28px;
    border-radius: 18px;
    background:
        linear-gradient(135deg,
            var(--primary),
            var(--primary-dark));

    color: white;
    text-decoration: none;

    display: inline-flex;
    align-items: center;
    gap: 12px;

    font-weight: 700;
}

.hero-btn-secondary {
    height: 56px;
    padding: 0 28px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .1);

    color: white;
    text-decoration: none;

    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.hero-stats {
    display: flex;
    gap: 20px;
    margin-top: 60px;
}

.stat-card {
    flex: 1;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .06);
    padding: 24px;
    border-radius: 24px;
}

.dashboard-preview {
    background: rgba(255, 255, 255, .05);
    border-radius: 32px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .06);
}

.feature-section {
    padding: 100px 7%;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: rgba(255, 255, 255, .05);
    border-radius: 28px;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, .06);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 22px;
    background:
        linear-gradient(135deg,
            var(--primary),
            var(--primary-dark));

    display: flex;
    justify-content: center;
    align-items: center;

    margin-bottom: 24px;
}

.cta-section {
    padding: 0 7% 100px;
}

.cta-card {
    background:
        linear-gradient(135deg,
            #7f1d1d,
            #450a0a);

    border-radius: 40px;
    padding: 80px;
    text-align: center;
}

/* ======================================================
   AUTH PAGE
====================================================== */

.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    position: relative;
    z-index: 10;
}

.card {
    width: 100%;
    max-width: 470px;

    background:
        rgba(255, 255, 255, .06);

    backdrop-filter: blur(18px);

    border:
        1px solid rgba(255, 255, 255, .08);

    border-radius: 36px;

    padding: 40px;

    box-shadow:
        0 25px 60px rgba(0, 0, 0, .35);
}

.auth-card-login {
    animation: authShow .35s ease;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
}

.auth-brand img {
    width: 82px;
    height: 82px;
    object-fit: contain;
    border-radius: 22px;

    background: rgba(255, 255, 255, .06);

    padding: 10px;
}

.auth-brand h2 {
    color: white;
    font-size: 32px;
    line-height: 1.1;
}

.light-text {
    font-weight: 400;
    opacity: .8;
}

.bold-text {
    font-weight: 800;
}

.auth-brand p {
    color: rgba(255, 255, 255, .7);
    margin-top: 8px;
    line-height: 1.7;
}

/* ======================================================
   AUTH FORM
====================================================== */

.auth-container .form-group {
    margin-bottom: 20px;
}

.auth-container .form-group label {
    color: rgba(255, 255, 255, .85);
    margin-bottom: 10px;
}

.auth-container .form-control {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .08);
    color: white;
}

.auth-container .form-control::placeholder {
    color: rgba(255, 255, 255, .45);
}

.auth-container .form-control:focus {

    border-color: rgba(239, 68, 68, .45);

    box-shadow:
        0 0 0 4px rgba(239, 68, 68, .12);
}

.input-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    cursor: pointer;
    color: rgba(255, 255, 255, .7);
    user-select: none;
}

/* ======================================================
   AUTH BUTTON
====================================================== */

.auth-btn {
    width: 100%;
    height: 56px;
    margin-top: 10px;
    font-size: 15px;
    font-weight: 700;
}

/* ======================================================
   AUTH LINK
====================================================== */

.auth-link {
    margin-top: 24px;
    text-align: center;
    color: rgba(255, 255, 255, .7);
}

.auth-link a {
    color: #fca5a5;
    text-decoration: none;
    font-weight: 700;
}

/* ======================================================
   AUTH FOOTER
====================================================== */

.auth-footer {
    margin-top: 28px;
    text-align: center;
    color: rgba(255, 255, 255, .65);
    font-size: 12px;
}

.footer-line {
    width: 60px;
    height: 2px;

    background:
        linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, .8),
            transparent);

    margin: 0 auto 16px;
}

.footer-small {
    font-size: 11px;
    opacity: .6;
    margin-top: 4px;
}

/* ======================================================
   REGISTER SPLIT
====================================================== */

.auth-card-split {
    width: 100%;
    max-width: 1100px;

    display: grid;
    grid-template-columns: 1fr 1fr;

    overflow: hidden;

    border-radius: 40px;

    background:
        rgba(255, 255, 255, .05);

    backdrop-filter: blur(20px);

    border:
        1px solid rgba(255, 255, 255, .06);

    box-shadow:
        0 25px 60px rgba(0, 0, 0, .35);
}

.auth-left {
    padding: 60px;

    background:
        linear-gradient(135deg,
            rgba(220, 38, 38, .95),
            rgba(127, 29, 29, .95));

    color: white;
}

.auth-left-logo {
    width: 100px;
    margin-bottom: 30px;
}

.auth-left h2 {
    font-size: 46px;
    line-height: 1.2;
    margin-bottom: 18px;
}

.subtitle {
    color: rgba(255, 255, 255, .82);
    line-height: 1.9;
    margin-bottom: 40px;
}

.benefits {
    list-style: none;
}

.benefits li {
    margin-bottom: 18px;
    line-height: 1.8;
}

.auth-right {
    padding: 60px;
}

.auth-right h2 {
    color: white;
    font-size: 34px;
    margin-bottom: 30px;
}

/* ======================================================
   AUTH ANIMATION
====================================================== */

@keyframes authShow {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/* ======================================================
   AUTH RESPONSIVE
====================================================== */

@media(max-width: 992px) {

    .auth-card-split {
        grid-template-columns: 1fr;
    }

    .auth-left {
        display: none;
    }

}

@media(max-width: 768px) {

    .card {
        padding: 28px;
        border-radius: 30px;
    }

    .auth-brand {
        flex-direction: column;
        text-align: center;
    }

    .auth-brand img {
        width: 90px;
        height: 90px;
    }

    .auth-brand h2 {
        font-size: 28px;
    }

    .auth-right {
        padding: 35px 24px;
    }

    .auth-right h2 {
        font-size: 28px;
    }

}


/* ======================================================
   DASHBOARD
====================================================== */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: white;
    border-radius: 30px;
    padding: 26px;
    box-shadow: var(--shadow);

    display: flex;
    align-items: center;
    gap: 18px;

    transition: .25s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.dashboard-icon {
    width: 72px;
    height: 72px;
    border-radius: 24px;

    display: flex;
    justify-content: center;
    align-items: center;

    color: white;
    font-size: 26px;
}

.bg-blue {
    background:
        linear-gradient(135deg,
            #3b82f6,
            #1d4ed8);
}

.bg-red {
    background:
        linear-gradient(135deg,
            #ef4444,
            #991b1b);
}

.bg-green {
    background:
        linear-gradient(135deg,
            #22c55e,
            #15803d);
}

.bg-orange {
    background:
        linear-gradient(135deg,
            #f59e0b,
            #c2410c);
}

.dashboard-info small {
    color: var(--muted);
    font-size: 14px;
}

.dashboard-info h2 {
    font-size: 36px;
    color: var(--dark);
    margin-top: 6px;
}

.dashboard-welcome {
    background:
        linear-gradient(135deg,
            #7f1d1d,
            #0f172a);

    border-radius: 36px;
    padding: 45px;
    overflow: hidden;
    position: relative;
}

.welcome-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.welcome-content small {
    color: rgba(255, 255, 255, .65);
    letter-spacing: 2px;
}

.welcome-content h2 {
    font-size: 42px;
    color: white;
    margin: 16px 0;
}

.welcome-content p {
    color: rgba(255, 255, 255, .75);
    line-height: 1.9;
    max-width: 700px;
}

.welcome-content img {
    width: 180px;
    object-fit: contain;
}

/* ======================================================
   DASHBOARD RESPONSIVE
====================================================== */

@media(max-width: 1200px) {

    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media(max-width: 768px) {

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card {
        padding: 22px;
    }

    .dashboard-info h2 {
        font-size: 28px;
    }

    .dashboard-welcome {
        padding: 30px 24px;
    }

    .welcome-content {
        flex-direction: column;
        text-align: center;
    }

    .welcome-content h2 {
        font-size: 30px;
    }

    .welcome-content img {
        width: 130px;
    }

}

/* ======================================================
   ANIMATION
====================================================== */

@keyframes modalShow {

    from {
        transform: translateY(20px) scale(.97);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

}

@keyframes mobileModal {

    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }

}

/* ======================================================
   TABLET
====================================================== */

@media (max-width: 1100px) {

    .hero-section {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 992px) {

    .sidebar {
        left: -100%;
        transition: .3s ease;
    }

    .main {
        margin-left: 0;
        padding: 20px;
    }

    .mobile-menu-btn {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar {
        padding: 18px 20px;
    }

    .search-box {
        width: 220px;
    }

}

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

@media (max-width: 768px) {

    body {
        font-size: 13px;
    }

    .landing-navbar {
        padding: 25px 20px;
        height: auto;
        flex-direction: column;
        gap: 20px;
    }

    .landing-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }

    .hero-section {
        padding: 40px 20px 80px;
    }

    .hero-left h1 {
        font-size: 42px;
    }

    .hero-action {
        flex-direction: column;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .table-wrapper {
        padding: 18px;
        border-radius: 22px;
    }


    .table thead th,
    .table tbody td {
        padding: 14px;
    }

    .btn {
        width: 100%;
    }

    .action-group {
        flex-direction: column;
        align-items: stretch;
    }

    .modal {
        padding: 14px;
        align-items: flex-end;
    }

    .modal-content {
        max-width: 100%;
        border-radius: 28px 28px 0 0;
        padding: 24px;
        animation: mobileModal .25s ease;
    }

    .search-box {
        display: none;
    }

}

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

@media (max-width: 480px) {

    .table {
        min-width: 600px;
    }

    .modal-content {
        padding: 20px;
    }

    .btn-sm {
        width: 100%;
    }

    .hero-left h1 {
        font-size: 34px;
    }

}
