/* ========================
   RESET & GLOBAL
======================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: #f4f7fb;
    color: #1e293b;
}

/* ========================
   LAYOUT
======================== */
.dashboard-layout {
    display: flex;
}

/* ========================
   SIDEBAR
======================== */
.sidebar {
    width: 240px;
    height: 100vh;
    background: linear-gradient(180deg, #0a2540, #0d3b66);
    color: white;
    padding: 25px 20px;
    position: fixed;
    display: flex;
    flex-direction: column;
}

/* LOGO */
.logo {
    margin-bottom: 30px;
}

.logo h2 {
    font-size: 22px;
}

.logo span {
    font-size: 12px;
    color: #94a3b8;
}

/* USER BOX */
.user-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    
    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden; /* penting */
}

/* NAVIGATION */
.sidebar nav {
    flex: 1;
}

.sidebar nav a {
    display: block;
    color: #cbd5e1;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar nav a:hover {
    background: rgba(255,255,255,0.08);
    color: white;
}

.sidebar nav a.active {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
}

/* LOGOUT BUTTON */
.logout {
    display: block;
    padding: 12px;
    text-align: center;
    background: #2563eb;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

.logout:hover {
    background: #1d4ed8;
}

/* ========================
   MAIN CONTENT
======================== */
.main {
    margin-left: 240px;
    padding: 30px;
    width: 100%;
}

/* HEADER */
.header {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* ========================
   HERO CARD (WELCOME)
======================== */
.hero {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: white;
    padding: 25px;
    border-radius: 18px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.hero h2 {
    font-size: 20px;
    margin-bottom: 5px;
}

.hero p {
    font-size: 14px;
    opacity: 0.9;
}

/* ========================
   GRID
======================== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* ========================
   CARD
======================== */
.card {
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-3px);
}

.card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #64748b;
}

.card p {
    font-size: 20px;
    font-weight: bold;
}

/* ========================
   BADGE STATUS
======================== */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}

/* APPROVED */
.badge.success {
    background: #d1fae5;
    color: #065f46;
}

/* WAITING */
.badge.warning {
    background: #fef3c7;
    color: #92400e;
}

/* REJECTED */
.badge.danger {
    background: #fee2e2;
    color: #991b1b;
}

/* ========================
   TABLE (UNTUK IURAN / EVENT)
======================== */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    text-align: left;
    font-size: 13px;
    color: #64748b;
    padding: 10px 0;
}

.table td {
    padding: 10px 0;
    border-top: 1px solid #e5e7eb;
}

/* ========================
   BUTTON
======================== */
.btn {
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
}

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 768px) {

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }

    .main {
        margin-left: 0;
    }

}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    font-size: 13px;
    color: #64748b;
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

/* FOTO PROFILE */
.profile-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e5e7eb;
}



/* GRID FORM */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* INPUT */
.form-group input {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.profile-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e5e7eb;
}


.sidebar-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}
/* USER BOX */
.user-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

/* FOTO */
.sidebar-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover; /* ðŸ”¥ biar tidak peot */
    border: 2px solid rgba(255,255,255,0.2);
}

/* FALLBACK HURUF */
.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* INFO */
.user-info strong {
    display: block;
    font-size: 14px;
}

.user-info small {
    color: #cbd5e1;
    font-size: 12px;
}

.badge.success {
    background: #10b981;
    color: white;
}

.badge.warning {
    background: #f59e0b;
    color: white;
}

.badge.danger {
    background: #ef4444;
    color: white;
}

.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.card img {
    height: 180px;
    object-fit: cover;
}

.btn {
    display: inline-block;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
}

.btn-primary {
    background: #2563eb;
    color: white;
}


/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* CARD */
.card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* ========================
   SELECT (DROPDOWN)
======================== */
.form-group select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: white;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}

/* hover */
.form-group select:hover {
    border-color: #2563eb;
}

/* focus */
.form-group select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* BUTTON */
.btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

.btn-primary {
    background: #2563eb;
    color: white;
}
.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.table img {
    border-radius: 8px;
    object-fit: cover;
}

/* BUTTON BASE */
.btn {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
    border: none;
    cursor: pointer;
}

/* PRIMARY */
.btn-primary {
    background: #2563eb;
    color: white;
}

/* SUCCESS */
.btn-success {
    background: #10b981;
    color: white;
}

/* WARNING (EDIT) */
.btn-warning {
    background: #f59e0b;
    color: white;
}

/* DANGER (DELETE) */
.btn-danger {
    background: #ef4444;
    color: white;
}

.avatar-lg {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* IMAGE */
.avatar-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* FALLBACK HURUF */
.avatar-lg:not(:has(img)) {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    font-size: 28px;
    font-weight: bold;
}

/* ========================
   MOBILE RESPONSIVE
======================== */
@media (max-width: 768px) {

    /* SIDEBAR */
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        width: 220px;
        height: 100%;
        transition: 0.3s;
        z-index: 1000;
    }

    .sidebar.active {
        left: 0;
    }

    /* MAIN */
    .main {
        margin-left: 0;
        padding: 15px;
    }

    /* HEADER */
    .header {
        font-size: 20px;
    }

    /* GRID MEMBER */
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* CARD */
    .card {
        padding: 15px;
    }

    /* AVATAR */
    .avatar-lg {
        width: 70px;
        height: 70px;
    }

}

/* EXTRA SMALL (HP kecil) */
@media (max-width: 480px) {

    .grid {
        grid-template-columns: 1fr;
    }

}

/* ========================
   FIX TOGGLE SIDEBAR (MOBILE ONLY)
======================== */

.menu-btn {
    display: none;
    position: fixed;
    top: 15px;
    right: 10px; /* ðŸ”¥ tetap kiri */
    z-index: 9999;
    background: #2563eb;
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 18px;
}

/* mobile */
@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }
}
/* mobile */
@media (max-width: 768px) {

    /* tampilkan tombol */
    .menu-btn {
        display: block;
    }

    /* sidebar hidden default */
    .sidebar {
        left: -100% !important;
        position: fixed !important;
        top: 0;
        width: 220px;
        height: 100%;
        transition: 0.3s;
        z-index: 1500;
    }

    /* saat aktif */
    .sidebar.active {
        left: 0 !important;
    }

    /* main full */
    .main {
        margin-left: 0 !important;
    }
}

/* ========================
   FIX AVATAR MEMBER (ANTI PEOT)
======================== */

/* HAPUS efek img global di card */
.card img {
    height: auto !important;
}

/* AVATAR */
.avatar-lg {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 10px;
}

/* IMAGE DI DALAM AVATAR */
.avatar-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* FALLBACK */
.avatar-lg span {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    font-size: 28px;
    font-weight: bold;
}

/* GRID PENGURUS */
.grid-inti {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* AVATAR FIX */
.card img {
    height: auto !important;
}

.avatar-lg {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 10px;
}

.avatar-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-lg span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #3b82f6;
    color: white;
    font-weight: bold;
    font-size: 26px;
}

/* NO HP */
.hp {
    font-size: 13px;
    color: #10b981;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .grid-inti {
        grid-template-columns: 1fr;
    }
}

.modal-warning {
    position: fixed !important;
    z-index: 99999;

    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    width: 100vw;
    height: 100vh;

    background: rgba(0,0,0,0.6);

    display: flex;
    justify-content: center;
    align-items: center;
}

/* BOX */
.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;

    width: 400px;
    max-width: 90%;

    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.text-center {
    text-align: center;
}

/* ===== GLOBAL FIX ===== */
img{
    max-width:100%;
    height:auto;
}

/* ===== MINI CARD ===== */
.mini-card{
    width:260px;
    border-radius:12px;
    padding:10px;
    margin:auto;
    background: linear-gradient(135deg,#1e3a8a,#2563eb);
    color:white;
    box-shadow:0 10px 25px rgba(0,0,0,0.3);
}

/* HEADER */
.mini-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.mini-header img{
    height:18px;
    width:auto;
}

/* STATUS */
.mini-status{
    font-size:10px;
    padding:3px 8px;
    border-radius:10px;
}

.mini-status.green{
    background:#16a34a;
}

.mini-status.red{
    background:#dc2626;
}

/* BODY */
.mini-body{
    display:flex;
    margin-top:8px;
}

/* FOTO */
.mini-photo{
    width:45px;
    height:55px;
    border-radius:6px;
    object-fit:cover;
}

/* INFO */
.mini-info{
    margin-left:8px;
    flex:1;
}

/* ROW */
.mini-info .row{
    display:flex;
    justify-content:space-between;
    font-size:10px;
    margin-bottom:2px;
}

.mini-info span{
    opacity:0.7;
}

.mini-info b{
    font-weight:500;
}

/* QR */
.qr-box{
    text-align:center;
    margin-top:10px;
}

.qr-box img{
    width:110px;
}

/* BUTTON */
.btn-group{
    text-align:center;
    margin-top:10px;
}

/* FIX CARD OVERFLOW */
.card{
    overflow:hidden;
}
/* WRAPPER */
.member-wrapper{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:12px;
}

/* MINI CARD */
.mini-card{
    width:280px;
    border-radius:14px;
    padding:12px;
    background: linear-gradient(135deg,#1e3a8a,#2563eb);
    color:white;
    box-shadow:0 12px 25px rgba(0,0,0,0.3);
}

/* HEADER */
.mini-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.mini-header img{
    height:20px;
}

/* STATUS */
.mini-status{
    font-size:10px;
    padding:4px 10px;
    border-radius:12px;
}

.mini-status.green{
    background:#16a34a;
}

.mini-status.red{
    background:#dc2626;
}

/* BODY */
.mini-body{
    display:flex;
    margin-top:10px;
}

/* FOTO */
.mini-photo{
    width:50px;
    height:65px;
    border-radius:6px;
    object-fit:cover;
}

/* INFO */
.mini-info{
    margin-left:10px;
    flex:1;
}

/* ROW */
.mini-info .row{
    display:flex;
    justify-content:space-between;
    font-size:11px;
    margin-bottom:3px;
}

.mini-info span{
    opacity:0.7;
}

.mini-info b{
    font-weight:500;
}

/* QR */
.qr-box{
    text-align:center;
}

.qr-box img{
    width:120px;
    border-radius:8px;
}

/* BUTTON */
.btn-group{
    display:flex;
    gap:10px;
}

.btn-group .btn{
    padding:8px 12px;
    font-size:12px;
}

/* GLOBAL FIX */
.card{
    overflow:hidden;
}

/* EVENT CARD */
.event-card{
    background:white;
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 6px 18px rgba(0,0,0,0.08);
    transition:0.25s;
    display:flex;
    flex-direction:column;
}

.event-card:hover{
    transform:translateY(-4px);
}

/* IMAGE */
.event-img img{
    width:100%;
    height:150px;
    object-fit:cover;
}

/* BODY */
.event-body{
    padding:15px;
    display:flex;
    flex-direction:column;
    flex:1;
}

/* TITLE */
.event-body h3{
    font-size:15px;
    margin-bottom:8px;
}

/* DESC */
.event-desc{
    font-size:12px;
    color:#64748b;

    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;

    margin-bottom:10px;
}

/* INFO */
.event-info{
    font-size:12px;
    color:#475569;
    display:flex;
    flex-direction:column;
    gap:3px;
    margin-bottom:10px;
}

/* BUTTON FULL */
.btn-full{
    margin-top:auto;
    text-align:center;
    width:100%;
}

/* GRID */
.grid-event{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
    gap:20px;
}

/* CARD */
.event-card{
    background:white;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 6px 18px rgba(0,0,0,0.08);
    transition:0.25s;
}

.event-card:hover{
    transform:translateY(-4px);
}

/* IMAGE */
.event-img{
    width:100%;
    height:150px;
    overflow:hidden;
}

.event-img img{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* CONTENT */
.event-content{
    padding:12px;
}

/* TITLE */
.event-content h4{
    font-size:14px;
    margin-bottom:5px;
}

/* CATEGORY */
.event-category{
    font-size:11px;
    color:#f59e0b;
    display:block;
    margin-bottom:5px;
}

/* DATE */
.event-date{
    font-size:11px;
    color:#94a3b8;
    margin-bottom:8px;
}

/* BUTTON */
.btn-event{
    display:block;
    text-align:center;
    padding:6px;
    font-size:12px;
    background:#2563eb;
    color:white;
    border-radius:8px;
    text-decoration:none;
}

.flyer-modal{
    display:none;
    position:fixed;
    z-index:99999;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.9);

    justify-content:center;
    align-items:center;
}

.flyer-modal.show{
    display:flex;
}

.flyer-content{
    max-width:90%;
    max-height:90%;
    border-radius:10px;
}

.flyer-close{
    position:absolute;
    top:20px;
    right:25px;
    color:white;
    font-size:30px;
    cursor:pointer;
}

.event-img{
    cursor:pointer;
}

/* EVENT GRID */
.grid-event{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
    gap:20px;
}

/* CARD */
.event-card{
    background:white;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 6px 18px rgba(0,0,0,0.08);
    transition:0.25s;
}

.event-card:hover{
    transform:translateY(-4px);
}

/* IMAGE */
.event-img{
    width:100%;
    height:150px;
    overflow:hidden;
}

.event-img img{
    width:100%;
    height:100%;
    object-fit:cover;
    cursor:pointer;
}

/* CONTENT */
.event-content{
    padding:12px;
}

.event-content h4{
    font-size:14px;
    margin-bottom:5px;
}

.event-category{
    font-size:11px;
    color:#f59e0b;
    display:block;
    margin-bottom:5px;
}

.event-date{
    font-size:11px;
    color:#94a3b8;
    margin-bottom:8px;
}

/* BUTTON */
.btn-event{
    display:block;
    text-align:center;
    padding:6px;
    font-size:12px;
    background:#2563eb;
    color:white;
    border-radius:8px;
    text-decoration:none;
}

/* MODAL */
.flyer-modal{
    display:none;
    position:fixed;
    z-index:99999;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.9);
    justify-content:center;
    align-items:center;
}

.flyer-modal.show{
    display:flex;
}

.flyer-content{
    max-width:90%;
    max-height:90%;
    border-radius:10px;
}

.flyer-close{
    position:absolute;
    top:20px;
    right:25px;
    color:white;
    font-size:30px;
    cursor:pointer;
}

.alert{
    padding:10px 15px;
    border-radius:10px;
    margin-bottom:15px;
    font-size:13px;
}

.alert.success{
    background:#d1fae5;
    color:#065f46;
}

.alert.warning{
    background:#fef3c7;
    color:#92400e;
}

.dashboard-container {
    display: flex;
}

.dashboard-main {
    flex: 1;
    padding: 20px;
    background: #f5f7fb;
}

.dashboard-header h2 {
    margin-bottom: 5px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* EVENT INFO */
.event-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* TABLE */
.table-modern {
    width: 100%;
    border-collapse: collapse;
}

.table-modern th {
    text-align: left;
    padding: 12px;
    background: #f1f5f9;
    font-size: 14px;
}

.table-modern td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

/* BADGE */
.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: white;
}

.badge.success { background: #22c55e; }
.badge.warning { background: #f59e0b; }
.badge.danger { background: #ef4444; }

/* BUTTON */
.btn-sm {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    text-decoration: none;
    color: white;
    margin-right: 5px;
}

.btn-sm.success { background: #22c55e; }
.btn-sm.danger { background: #ef4444; }
.btn-sm.primary { background: #3b82f6; }

.btn {
    padding: 8px 14px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
}

.btn-success {
    background: #10b981;
}

.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: white;
}

.badge-success {
    background: #22c55e;
}

.badge-danger {
    background: #ef4444;
}

.badge-warning {
    background: #f59e0b;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}

.table-modern th,
.table-modern td {
    text-align: left;
    vertical-align: middle;
}

.table-modern td:nth-child(1){
    width: 50px;
}

.table-modern td:nth-child(4),
.table-modern td:nth-child(5){
    width: 120px;
}

.table-modern td:nth-child(6){
    width: 150px;
}

.aksi {
    display: flex;
    gap: 5px;
}

.event-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* TAB */
.tab-menu {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tab-btn {
    padding: 8px 15px;
    border: none;
    background: #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
}

.tab-btn.active {
    background: #3b82f6;
    color: white;
}

/* CONTENT */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* TABLE */
.table-modern {
    width: 100%;
    border-collapse: collapse;
}

.table-modern th {
    background: #f1f5f9;
    padding: 10px;
    text-align: left;
}

.table-modern td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

/* BUTTON */
.btn-sm {
    padding: 5px 8px;
    border-radius: 6px;
    color: white;
    text-decoration: none;
}

.btn-sm.success { background: #22c55e; }
.btn-sm.danger { background: #ef4444; }

/* BADGE */
.badge {
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 12px;
    color: white;
}

.badge.success { background: #22c55e; }
.crop-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);

    display: none;
    justify-content: center;
    align-items: center;

    z-index: 999999;
}

.crop-box {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    width: 95%;
    max-width: 400px;

    display: flex;
    flex-direction: column;
    align-items: center;

    max-height: 90vh;
}

.crop-box img {
    max-width: 100%;
    max-height: 50vh; /* 🔥 FIX */
    object-fit: contain;
}

.cropper-container {
    max-width: 100% !important;
}
.crop-wrapper {
    width: 100%;
    height: 50vh; /* FIX tinggi */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}