/* --- CUM LUXURY DASHBOARD THEME (REMASTERED FOR COMPATIBILITY) --- */

/* 1. CSS VARIABLES & SCOPED RESET */
:root {
    --cum-bg-dark: #0f172a;
    --cum-bg-panel: rgba(30, 41, 59, 0.75);
    --cum-border: rgba(255, 255, 255, 0.1);
    --cum-gold: #d4af37;
    --cum-gold-glow: rgba(212, 175, 55, 0.4);
    --cum-text-main: #f8fafc;
    --cum-text-muted: #94a3b8;
    --cum-success: #10b981;
    --cum-danger: #ef4444;
    --cum-primary-gradient: linear-gradient(135deg, #d4af37 0%, #b45309 100%);
    --cum-radius: 16px;
    --cum-font-head: 'Playfair Display', serif;
    --cum-font-body: 'Plus Jakarta Sans', sans-serif;
}

#cum-main-wrapper.cum-dashboard-wrapper {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 1280px;
    margin: 40px auto;
    background-color: var(--cum-bg-dark);
    color: var(--cum-text-main);
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    line-height: 1.6;
    z-index: 10;
}

/* Force Reset on Children inside Wrapper only */
#cum-main-wrapper * {
    box-sizing: border-box;
    font-family: var(--cum-font-body);
}

#cum-main-wrapper h1, 
#cum-main-wrapper h2, 
#cum-main-wrapper h3, 
#cum-main-wrapper h4, 
#cum-main-wrapper h5, 
#cum-main-wrapper h6 {
    font-family: var(--cum-font-head);
    color: var(--cum-text-main);
    margin: 0 0 15px 0;
    line-height: 1.3;
    letter-spacing: normal;
}
#cum-main-wrapper a { text-decoration: none; color: inherit; transition: 0.3s; }
#cum-main-wrapper ul, #cum-main-wrapper li { margin: 0; padding: 0; list-style: none; }
#cum-main-wrapper i { font-family: 'Font Awesome 6 Free', 'FontAwesome', sans-serif; font-weight: 900; }

/* Background Decoration */
#cum-main-wrapper::before {
    content: ''; position: absolute; top: -100px; right: -100px;
    width: 400px; height: 400px; background: radial-gradient(circle, var(--cum-gold-glow) 0%, transparent 70%);
    opacity: 0.2; pointer-events: none; z-index: 0;
}

/* 2. SHARED COMPONENTS (GLASS PANEL) */
.cum-glass-panel {
    background: var(--cum-bg-panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--cum-border);
    border-radius: var(--cum-radius);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    position: relative; z-index: 2;
    margin-bottom: 25px;
}

/* 3. HEADER SECTION (IMPROVED LAYOUT) */
.cum-header-card {
    padding: 25px 30px;
    margin-bottom: 30px;
}

/* Flex Container Utama Header */
.cum-header-content { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 30px; 
    width: 100%; 
    flex-wrap: nowrap;
}

/* Avatar Wrapper */
.cum-avatar-wrapper { 
    position: relative; 
    flex-shrink: 0; 
}
.cum-avatar-img {
    width: 80px;
    height: 80px; 
    border-radius: 50%; object-fit: cover;
    border: 3px solid var(--cum-gold); padding: 3px; background: rgba(0,0,0,0.2);
}
.cum-status-indicator { 
    position: absolute; bottom: 5px; right: 5px; width: 14px; height: 14px; 
    background: var(--cum-success); border: 2px solid var(--cum-bg-dark); border-radius: 50%; 
}

/* User Details */
.cum-user-details { 
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 5px;
}
.cum-welcome-text { 
    font-size: 24px; 
    margin-bottom: 5px !important; 
    background: linear-gradient(to right, #fff, #cbd5e1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; 
}
.cum-badges { 
    display: flex; gap: 8px; margin-bottom: 5px; flex-wrap: wrap; 
}
.cum-badge { 
    padding: 3px 10px; border-radius: 20px; font-size: 11px; 
    text-transform: capitalize; /* Tulisan Kecil Rapi (Capitalize Words) */
    letter-spacing: 0.5px; border: 1px solid var(--cum-border); color: var(--cum-text-muted); background: rgba(255,255,255,0.03); display: inline-flex; align-items: center; gap: 5px; 
}
.cum-membership-status { 
    display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 6px; background: rgba(0,0,0,0.2); width: fit-content;
}
.cum-membership-status.cum-active { color: var(--cum-success); border-left: 3px solid var(--cum-success); }
.cum-membership-status.cum-expired { color: var(--cum-danger); border-left: 3px solid var(--cum-danger); }
.cum-membership-status.cum-lifetime { color: var(--cum-gold); border-left: 3px solid var(--cum-gold); }

/* Tombol Action */
.cum-header-action { 
    flex-shrink: 0; 
    margin-left: auto;
}

/* Buttons */
.cum-btn-glass { padding: 8px 18px; border: 1px solid var(--cum-border); color: var(--cum-text-main); border-radius: 30px; text-decoration: none; transition: 0.3s; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; background: transparent; white-space: nowrap; }
.cum-btn-glass:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }
.cum-btn-primary { background: var(--cum-primary-gradient); color: #000; border: none; padding: 12px 30px; border-radius: 30px; font-weight: 700; cursor: pointer; transition: 0.3s; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; }
.cum-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3); }

/* 4. DASHBOARD GRID SYSTEM */
.cum-dashboard-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 30px;
    align-items: start;
}

/* Sidebar (COMPACT & ELEGANT) */
.cum-sidebar { padding: 20px; min-height: 500px; }
.cum-menu-label { 
    font-size: 10px; letter-spacing: 1.2px; color: var(--cum-text-muted); 
    margin: 15px 0 8px 8px;
    opacity: 0.7; font-weight: 700; 
}
.cum-menu-separator { height: 1px; background: var(--cum-border); margin: 15px 0; }

.cum-nav-link {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px;
    margin-bottom: 3px;
    border-radius: 8px;
    color: var(--cum-text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    cursor: pointer;
    font-size: 13px;
}
.cum-nav-link i { width: 18px; text-align: center; transition: 0.3s; font-size: 13px; }
.cum-nav-link:hover { background: rgba(255,255,255,0.05); color: #fff; }
.cum-nav-link.active { background: rgba(212, 175, 55, 0.15); color: var(--cum-gold); border: 1px solid rgba(212, 175, 55, 0.2); }
.cum-nav-link.active i { color: var(--cum-gold); transform: scale(1.1); }
.cum-nav-badge { background: var(--cum-danger); color: #fff; font-size: 9px; padding: 2px 5px; border-radius: 8px; margin-left: auto; line-height: 1; }

/* 5. CONTENT AREA */
.cum-main-content { min-width: 0; }

/* Tab Visibility Logic */
.cum-tab-content { display: none; opacity: 0; transition: opacity 0.3s ease; }
.cum-tab-content.active { display: block; opacity: 1; }

/* Stats Grid */
.cum-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.cum-stat-card { padding: 20px; display: flex; align-items: center; gap: 15px; transition: transform 0.3s; }
.cum-stat-card:hover { transform: translateY(-5px); }
.cum-stat-icon { width: 45px; height: 45px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; background: rgba(255,255,255,0.05); }
.cum-stat-info { display: flex; flex-direction: column; }
.cum-stat-label { font-size: 12px; color: var(--cum-text-muted); }
.cum-stat-value { font-size: 22px; font-weight: 700; color: #fff; line-height: 1.2; }
.cum-stat-value.small-text { font-size: 16px; }

/* Glow Effects */
.glow-blue .cum-stat-icon { color: #60a5fa; box-shadow: 0 0 15px rgba(96, 165, 250, 0.2); }
.glow-purple .cum-stat-icon { color: #a78bfa; box-shadow: 0 0 15px rgba(167, 139, 250, 0.2); }
.glow-green .cum-stat-icon { color: #34d399; box-shadow: 0 0 15px rgba(52, 211, 153, 0.2); }
.glow-gold .cum-stat-icon { color: var(--cum-gold); box-shadow: 0 0 15px rgba(212, 175, 55, 0.2); }

/* Notifications List */
.cum-card { width: 100%; overflow: hidden; }
.cum-card-header { padding: 15px 25px; border-bottom: 1px solid var(--cum-border); background: rgba(0,0,0,0.1); }
.cum-card-header h3 { margin: 0 !important; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.cum-card-body { padding: 0; }
.cum-notification-list { list-style: none; margin: 0; padding: 0; }
.cum-notify-item { display: flex; gap: 15px; padding: 20px 25px; border-bottom: 1px solid var(--cum-border); transition: background 0.2s; position: relative; }
.cum-notify-item:hover { background: rgba(255,255,255,0.02); }
.cum-notify-icon { width: 32px; height: 32px; border-radius: 50%; background: rgba(212,175,55,0.1); color: var(--cum-gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; }
.cum-notify-content { flex: 1; }
.cum-notify-msg { margin: 0 0 5px 0 !important; font-size: 14px; line-height: 1.5; color: #fff; }
.cum-notify-footer { display: flex; gap: 15px; font-size: 12px; color: var(--cum-text-muted); align-items: center; flex-wrap: wrap; }
.cum-link-action { color: var(--cum-gold) !important; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.cum-btn-delete { color: var(--cum-text-muted) !important; opacity: 0.5; transition: 0.2s; margin-left: auto; align-self: flex-start; }
.cum-btn-delete:hover { color: var(--cum-danger) !important; opacity: 1; }
.cum-empty-state { padding: 40px; text-align: center; color: var(--cum-text-muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cum-empty-state i { font-size: 30px; opacity: 0.5; }

/* Quick Links Grid */
.cum-quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; padding: 25px; }
.cum-quick-card { position: relative; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--cum-border); transition: 0.3s; overflow: hidden; display: flex; }
.cum-quick-card:hover { border-color: var(--cum-gold); transform: translateY(-3px); }
.cum-quick-click-area { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; text-decoration: none; color: #fff !important; gap: 10px; text-align: center; width: 100%; }
.cum-quick-icon { font-size: 24px; color: var(--cum-gold); }
.cum-quick-title { font-size: 14px; font-weight: 600; line-height: 1.3; }
.cum-btn-delete-abs { position: absolute; top: 5px; right: 5px; color: var(--cum-text-muted) !important; padding: 5px; font-size: 12px; z-index: 5; }
.cum-btn-delete-abs:hover { color: var(--cum-danger) !important; }

/* Forms */
.cum-form-luxury { padding: 25px; }
.cum-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cum-form-group { margin-bottom: 20px; }
.cum-form-group label { display: block; margin-bottom: 8px; font-size: 13px; color: var(--cum-text-muted); font-weight: 500; }
.cum-form-luxury input[type="text"], 
.cum-form-luxury input[type="email"], 
.cum-form-luxury input[type="password"] {
    width: 100%; padding: 10px 15px; background: rgba(0,0,0,0.3) !important; border: 1px solid var(--cum-border) !important;
    border-radius: 8px; color: #fff !important; font-size: 14px; transition: 0.3s; outline: none; height: auto;
}
.cum-form-luxury input:focus { border-color: var(--cum-gold) !important; box-shadow: 0 0 10px rgba(212, 175, 55, 0.1); }

/* File Upload */
.cum-file-upload-box { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.cum-file-upload-box img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid var(--cum-border); }
.cum-file-label { padding: 8px 15px; background: rgba(255,255,255,0.05); border-radius: 6px; font-size: 12px; cursor: pointer; pointer-events: none; color: var(--cum-text-muted); }
.cum-file-upload-box input[type="file"] { position: static; width: auto; opacity: 1; font-size: 12px; color: var(--cum-text-muted); background: transparent !important; border: none !important; }

/* Alerts */
.cum-alert { padding: 15px; border-radius: 8px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.4; }
.cum-alert-success { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.cum-alert-danger { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.cum-alert-info { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }

/* Chart Container */
.cum-chart-container { position: relative; height: 100%; width: 100%; padding: 10px; box-sizing: border-box; }

/* Custom Iframe */
.cum-iframe-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 8px; background: #000; }
.cum-custom-iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* Login Page Specific */
.cum-login-wrapper { display: flex; justify-content: center; align-items: center; min-height: 500px; padding: 20px; }
.cum-login-card { width: 100%; max-width: 400px; padding: 40px; }
.cum-login-header { text-align: center; margin-bottom: 30px; }
.cum-login-title { font-size: 28px !important; margin-bottom: 5px !important; }
.cum-login-subtitle { color: var(--cum-text-muted); font-size: 14px; }
.cum-input-icon-wrapper { position: relative; }
.cum-input-icon-wrapper i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--cum-text-muted); z-index: 2; }
.cum-input-icon-wrapper input { padding-left: 40px !important; }
.cum-form-options { display: flex; justify-content: space-between; font-size: 13px; color: var(--cum-text-muted); margin-bottom: 20px; align-items: center; }
.cum-forgot-link { color: var(--cum-gold) !important; }
.full-width { width: 100%; justify-content: center; }

/* --- 6. RESPONSIVE MEDIA QUERIES --- */

/* Tablet & Mobile (Below 992px) */
@media (max-width: 992px) {
    .cum-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .cum-sidebar {
        min-height: auto;
        padding: 15px;
        overflow-x: auto;
    }
    .cum-nav-menu {
        display: flex;
        gap: 10px;
        align-items: center;
        width: max-content;
    }
    .cum-menu-label, .cum-menu-separator { display: none; }
    .cum-nav-link {
        white-space: nowrap;
        margin-bottom: 0;
        padding: 10px 15px;
        background: rgba(255,255,255,0.05);
        font-size: 13px;
    }
    .cum-nav-link span { display: inline-block; }
    
    .cum-header-content {
        flex-wrap: wrap;
    }
}

/* Mobile Small (Below 600px) */
@media (max-width: 600px) {
    #cum-main-wrapper { margin: 10px auto; padding: 15px; border-radius: 12px; width: 100% !important; max-width: 100% !important; }
    
    .cum-header-card { padding: 20px; }
    .cum-header-content { 
        flex-direction: column; 
        text-align: center; 
        gap: 15px; 
    }
    
    .cum-avatar-wrapper { margin-bottom: 5px; }
    .cum-user-details { width: 100%; align-items: center; }
    .cum-badges { justify-content: center; }
    .cum-header-action { width: 100%; margin: 0; }
    .cum-btn-glass { width: 100%; justify-content: center; }
    
    .cum-form-row { grid-template-columns: 1fr; }
    
    .cum-nav-link { font-size: 12px; padding: 8px 12px; }
    .cum-stat-value { font-size: 18px; }
    .cum-quick-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}