/* ==========================================================================
   SOLVYN GROUPS ENTERPRISE MLM - MODERN GLASSMORPHISM THEME & STYLESHEET
   ========================================================================== */

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

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --dark-border: #334155;
    
    --light-bg: #f8fafc;
    --light-card: #ffffff;
    --light-border: #e2e8f0;
    --text-main: #1e293b;
    --text-muted: #64748b;
    
    --sidebar-width: 260px;
    --header-height: 70px;
    --card-radius: 16px;
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 25px -5px rgba(79, 70, 229, 0.1), 0 8px 10px -6px rgba(79, 70, 229, 0.08);
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Glassmorphism Classes */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-soft);
}

.glass-card-dark {
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

/* App Layout Structure */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: #0f172a;
    color: #cbd5e1;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.sidebar-brand {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0.75rem;
    margin: 0;
}

.sidebar-menu .menu-header {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    padding: 1rem 0.75rem 0.5rem;
}

.sidebar-menu .menu-item a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.925rem;
    transition: all 0.2s;
    margin-bottom: 3px;
}

.sidebar-menu .menu-item a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.sidebar-menu .menu-item.active a {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.sidebar-menu .menu-item i {
    width: 22px;
    font-size: 1.1rem;
    margin-right: 0.75rem;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: all 0.3s;
}

/* Header Navbar */
.app-header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--light-border);
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.75rem;
}

.content-body {
    padding: 1.75rem;
    flex: 1;
}

/* Wallet Card Widgets */
.wallet-card {
    background: white;
    border-radius: var(--card-radius);
    padding: 1.5rem;
    border: 1px solid var(--light-border);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.wallet-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.wallet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.wallet-card.earnings::before { background: #4f46e5; }
.wallet-card.purchase::before { background: #0ea5e9; }
.wallet-card.bonus::before { background: #f59e0b; }
.wallet-card.cashback::before { background: #10b981; }
.wallet-card.withdrawable::before { background: #8b5cf6; }

.wallet-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Buttons & Elements */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    border: none;
    border-radius: 10px;
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    transition: all 0.2s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #4f46e5 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

.custom-table {
    border-collapse: separate;
    border-spacing: 0 8px;
}

.custom-table tr {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    border-radius: 10px;
}

.custom-table td, .custom-table th {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border: none;
}

.custom-table th {
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.825rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Mobile Responsiveness */
@media (max-width: 991.98px) {
    .sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
    }
    .sidebar.show {
        margin-left: 0;
    }
    .main-content {
        margin-left: 0;
    }
}
