/* GLOBAL RESET */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #020617; /* Darker Navy */
    color: #fff;
    overflow-x: hidden;
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    background: linear-gradient(180deg, #020617, #0f172a);
    padding: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1001;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #3b82f6;
    text-align: center;
}

.menu {
    list-style: none;
    padding: 0;
}

.menu li {
    padding: 0;
    margin-bottom: 8px;
    border-radius: 12px;
    transition: 0.3s;
}

.menu li a {
    padding: 12px 15px;
    text-decoration: none;
    color: #94a3b8;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.menu li:hover, .menu li.active {
    background: rgba(59, 130, 246, 0.1);
}

.menu li:hover a, .menu li.active a {
    color: #fff;
}

/* MAIN CONTENT */
.main-content {
    margin-left: 240px; 
    padding: 100px 30px 30px 30px;
    min-height: 100vh;
}

/* TOPBAR */
.topbar {
    position: fixed;
    top: 0;
    left: 240px; 
    right: 0;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

/* ACTION ALERT CARDS (KYC & REK) */
.action-alert-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.alert-card {
    padding: 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    text-decoration: none;
    transition: 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.alert-card:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

.bg-danger { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.bg-warning { background: linear-gradient(135deg, #f59e0b, #d97706); }

/* STATS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    padding: 25px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-5px);
}

.stat-card h4 {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
}

.stat-card h2 {
    font-size: 28px;
    margin: 12px 0;
    font-weight: 700;
}

.stat-card span {
    font-size: 12px;
    font-weight: 500;
}

/* COLORS FOR STAT CARDS */
.stat-card.blue h2 { color: #3b82f6; }
.stat-card.green h2 { color: #10b981; }
.stat-card.orange h2 { color: #f59e0b; }
.stat-card.purple h2 { color: #8b5cf6; }

/* DATA GRID (CHART & TABLE) */
.grid-2 {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 25px;
}

.card {
    background: rgba(30, 41, 59, 0.5);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card h3 {
    margin-top: 0;
    font-size: 18px;
    margin-bottom: 20px;
    color: #f1f5f9;
}

/* TABLE ACTIVITY */
.table-activity {
    width: 100%;
    border-collapse: collapse;
}

.table-activity th {
    text-align: left;
    color: #64748b;
    font-size: 13px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table-activity td {
    padding: 15px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

/* BADGES */
.badge {
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-pembayaran { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.badge-withdraw { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.badge-pending { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .grid-2 { grid-template-columns: 1fr; }
    .sidebar { width: 80px; padding: 20px 10px; }
    .logo, .menu li a span { display: none; }
    .main-content, .topbar { margin-left: 80px; left: 80px; }
}

/* Styling Tambahan untuk Tabel Profit & Loss */
.table-activity tr:last-child td {
    padding-top: 15px;
    padding-bottom: 15px;
}

.table-activity small {
    display: block;
    margin-top: 4px;
    font-size: 11px;
}

.card h3 i {
    margin-right: 10px;
}
