/* ============================================================
   Portal Keanggotaan Organisasi - Stylesheet
   ============================================================ */
:root{
  --primary:#2c3e7b;
  --secondary:#5b6cb0;
  --sidebar-w:260px;
}
*{box-sizing:border-box}
body{font-family:'Segoe UI',system-ui,-apple-system,sans-serif;background:#f4f6f9;margin:0;font-size:14px}
.wrapper{display:flex;width:100%}

/* SIDEBAR */
.sidebar{width:var(--sidebar-w);min-height:100vh;background:linear-gradient(180deg,#2c3e7b,#1a2750);color:#cfd6ee;position:fixed;top:0;left:0;transition:all .3s;z-index:1000;overflow-y:auto}
.sidebar.active{margin-left:calc(var(--sidebar-w) * -1)}
.sidebar-header{padding:20px;background:rgba(0,0,0,.2);text-align:center;border-bottom:1px solid rgba(255,255,255,.08)}
.sidebar-header h5{margin:0;font-size:15px;color:#fff;font-weight:600}
.sidebar-header small{color:#9fb0e0}
.sidebar ul.components{padding:10px 0;list-style:none;margin:0}
.sidebar ul li a{display:block;padding:12px 22px;color:#cfd6ee;text-decoration:none;transition:.2s;border-left:3px solid transparent}
.sidebar ul li a:hover{background:rgba(255,255,255,.08);color:#fff;border-left-color:#5b6cb0}
.sidebar ul li.active>a{background:rgba(91,108,176,.25);color:#fff;border-left-color:#5b6cb0;font-weight:600}
.sidebar ul li a i{width:22px;margin-right:8px;text-align:center}

/* KONTEN */
#content{width:calc(100% - var(--sidebar-w));margin-left:var(--sidebar-w);min-height:100vh;transition:all .3s}
#content.active{width:100%;margin-left:0}
.topbar{background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.08);padding:8px 18px;border:none}
.notif-count{position:absolute;top:-5px;right:-5px;font-size:10px}
.notif-menu{min-width:300px;max-width:340px}
.notif-menu .dropdown-item{white-space:normal;padding:10px 14px;border-bottom:1px solid #eee}
.notif-menu .dropdown-item:hover{background:#f8f9fa}

/* KARTU STATISTIK */
.stat-card{background:#fff;border-radius:10px;padding:22px;box-shadow:0 2px 8px rgba(0,0,0,.06);display:flex;align-items:center;justify-content:space-between;transition:.2s}
.stat-card:hover{box-shadow:0 4px 16px rgba(0,0,0,.1)}
.stat-card .stat-icon{width:54px;height:54px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:22px;color:#fff}
.stat-card .stat-info h3{margin:0;font-size:26px;font-weight:700;color:#333}
.stat-card .stat-info p{margin:0;color:#888;font-size:13px}
.bg-blue{background:#2c3e7b}.bg-green{background:#27ae60}.bg-orange{background:#e67e22}.bg-red{background:#c0392b}.bg-purple{background:#8e44ad}.bg-teal{background:#16a085}

/* KARTU */
.card{border:none;border-radius:10px;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.card-header{background:#fff;border-bottom:1px solid #eee;font-weight:600;border-radius:10px 10px 0 0!important}
.table thead th{background:#f8f9fa;font-size:12px;text-transform:uppercase;letter-spacing:.3px;color:#666}
.table td{vertical-align:middle}
.badge{font-weight:500;padding:5px 10px}

/* FORM */
.form-control:focus{border-color:#5b6cb0;box-shadow:0 0 0 .2rem rgba(91,108,176,.2)}
.btn-primary{background:#2c3e7b;border-color:#2c3e7b}
.btn-primary:hover{background:#1a2750;border-color:#1a2750}

/* LOGIN */
.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#2c3e7b,#5b6cb0)}
.login-card{width:100%;max-width:420px;background:#fff;border-radius:14px;padding:36px;box-shadow:0 10px 40px rgba(0,0,0,.2)}
.login-card .logo{text-align:center;font-size:36px;color:#2c3e7b;margin-bottom:6px}
.login-card h4{text-align:center;margin-bottom:24px;color:#333}
.login-card .form-group label{font-weight:600;color:#444}
.role-tabs{display:flex;gap:8px;margin-bottom:18px}
.role-tabs a{flex:1;text-align:center;padding:9px;border-radius:8px;background:#f0f2f8;color:#666;text-decoration:none;font-size:13px;font-weight:600;transition:.2s}
.role-tabs a.active{background:#2c3e7b;color:#fff}

/* UTIL */
.text-muted-2{color:#999!important}
.avatar{width:42px;height:42px;border-radius:50%;object-fit:cover}
.avatar-lg{width:90px;height:90px;border-radius:50%;object-fit:cover;border:3px solid #fff;box-shadow:0 2px 6px rgba(0,0,0,.15)}
.cursor-pointer{cursor:pointer}
.list-group-item{border:none;border-bottom:1px solid #f0f0f0}
.list-group-item:last-child{border-bottom:none}

/* TABLE RESPONSIVE */
.table-responsive{overflow-x:auto}
.table-actions .btn{padding:3px 8px;font-size:12px}

/* BADGE WARNA KUSTOM */
.badge-success{background:#27ae60}.badge-danger{background:#c0392b}.badge-warning{background:#e67e22}.badge-info{background:#3498db}.badge-primary{background:#2c3e7b}.badge-secondary{background:#95a5a6}

/* EMPTY STATE */
.empty-state{text-align:center;padding:40px 20px;color:#999}
.empty-state i{font-size:48px;margin-bottom:12px;display:block;opacity:.4}

/* TIMELINE */
.timeline-item{padding:14px 18px;border-left:3px solid #2c3e7b;margin-left:10px;margin-bottom:12px;background:#fff;border-radius:0 8px 8px 0;box-shadow:0 1px 3px rgba(0,0,0,.05)}
.timeline-item small{color:#999}

/* CHART */
.chart-container{position:relative;height:260px}

@media (max-width:768px){
  .sidebar{margin-left:calc(var(--sidebar-w) * -1)}
  .sidebar.active{margin-left:0}
  #content{width:100%;margin-left:0}
  #content.active{margin-left:var(--sidebar-w)}
  .stat-card{padding:16px}
  .login-card{margin:16px}
}
