/* ============================================================
   Pintoofgroup MLM System - Main Stylesheet
   Light Gradient Theme
   ============================================================ */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --danger-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --warning-gradient: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    --primary: #667eea;
    --primary-dark: #764ba2;
    --secondary: #4facfe;
    --bg-light: #f4f6fc;
    --sidebar-bg: linear-gradient(180deg, #1a1c2e 0%, #2d3561 50%, #764ba2 100%);
    --card-shadow: 0 4px 20px rgba(102, 126, 234, 0.12);
    --card-shadow-hover: 0 8px 30px rgba(102, 126, 234, 0.25);
    --border-radius: 14px;
    --border-radius-sm: 8px;
    --transition: all 0.3s ease;
    --font: 'Segoe UI', 'Roboto', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font);
    background: var(--bg-light);
    color: #333;
    line-height: 1.6;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar-main {
    background: white;
    box-shadow: 0 2px 20px rgba(102, 126, 234, 0.15);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand img { height: 40px; }
.navbar-brand-text {
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-main .nav-link {
    color: #555 !important;
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: var(--transition);
}
.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
    background: rgba(102, 126, 234, 0.08);
    color: var(--primary) !important;
}

.btn-gradient {
    background: var(--primary-gradient);
    color: white !important;
    border: none;
    border-radius: 25px;
    padding: 10px 28px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}
.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white !important;
}

.btn-gradient-outline {
    background: transparent;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
    border-radius: 25px;
    padding: 8px 26px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}
.btn-gradient-outline:hover {
    background: var(--primary-gradient);
    color: white !important;
    border-color: transparent;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #4facfe 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    top: -200px;
    right: -200px;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    bottom: -150px;
    left: -100px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.hero-stat {
    text-align: center;
    color: white;
}

.hero-stat .number {
    font-size: 2rem;
    font-weight: 800;
    display: block;
}

.hero-stat .label {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ============================================================
   CARDS
   ============================================================ */
.card-custom {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: none;
    overflow: hidden;
    transition: var(--transition);
}

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

.card-header-gradient {
    background: var(--primary-gradient);
    color: white;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Stats Cards */
.stat-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    border: none;
}

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

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.stat-icon.primary { background: var(--primary-gradient); }
.stat-icon.success { background: var(--success-gradient); }
.stat-icon.warning { background: var(--warning-gradient); }
.stat-icon.danger  { background: var(--danger-gradient); }
.stat-icon.info    { background: var(--secondary-gradient); }

.stat-info .value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #333;
    line-height: 1;
}

.stat-info .label {
    color: #888;
    font-size: 0.85rem;
    margin-top: 4px;
}

/* ============================================================
   INCOME PLAN SECTION
   ============================================================ */
.income-plan-section { padding: 80px 0; background: white; }

.level-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.level-card:hover { transform: translateY(-5px); box-shadow: var(--card-shadow-hover); }
.level-card.level-1 { border-top-color: #667eea; }
.level-card.level-2 { border-top-color: #764ba2; }
.level-card.level-3 { border-top-color: #4facfe; }
.level-card.level-4 { border-top-color: #43e97b; }
.level-card.level-5 { border-top-color: #fda085; }

.level-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    margin: 0 auto 16px;
}

.level-card.level-1 .level-badge { background: var(--primary-gradient); }
.level-card.level-2 .level-badge { background: linear-gradient(135deg, #764ba2, #4facfe); }
.level-card.level-3 .level-badge { background: var(--secondary-gradient); }
.level-card.level-4 .level-badge { background: var(--success-gradient); }
.level-card.level-5 .level-badge { background: var(--warning-gradient); }

.level-percent {
    font-size: 2.5rem;
    font-weight: 900;
    color: #333;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services-section { padding: 80px 0; background: var(--bg-light); }

.service-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    height: 100%;
}

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

.service-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: white;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-section { padding: 80px 0; }

.form-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 40px;
    max-width: 550px;
    margin: 0 auto;
}

.form-card-title {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.form-control-custom {
    border: 2px solid #e8ecf4;
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: var(--transition);
    width: 100%;
}

.form-control-custom:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    outline: none;
}

.form-label-custom {
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.input-icon-group {
    position: relative;
}

.input-icon-group i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.input-icon-group .form-control-custom { padding-left: 42px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer-main {
    background: linear-gradient(135deg, #1a1c2e 0%, #2d3561 100%);
    color: rgba(255,255,255,0.85);
    padding: 60px 0 20px;
}

.footer-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-link {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-link:hover { color: white; padding-left: 5px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header { text-align: center; margin-bottom: 50px; }

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #333;
}

.section-subtitle {
    color: #888;
    font-size: 1rem;
    margin-top: 8px;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
    margin: 12px auto 0;
}

/* ============================================================
   ALERTS & BADGES
   ============================================================ */
.alert-gradient {
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 14px 20px;
}

.badge-gradient { background: var(--primary-gradient); color: white; padding: 5px 12px; border-radius: 20px; }
.badge-success  { background: var(--success-gradient); color: white; padding: 5px 12px; border-radius: 20px; }
.badge-warning  { background: var(--warning-gradient); color: white; padding: 5px 12px; border-radius: 20px; }
.badge-danger   { background: var(--danger-gradient); color: white; padding: 5px 12px; border-radius: 20px; }

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}
.status-active    { background: rgba(67, 233, 123, 0.15); color: #1a9e5c; }
.status-inactive  { background: rgba(253, 160, 133, 0.15); color: #c0623d; }
.status-blocked   { background: rgba(240, 147, 251, 0.2); color: #b33ec7; }
.status-pending   { background: rgba(246, 211, 101, 0.2); color: #b87800; }
.status-approved  { background: rgba(67, 233, 123, 0.15); color: #1a9e5c; }
.status-rejected  { background: rgba(245, 87, 108, 0.15); color: #c0293a; }
.status-completed { background: rgba(79, 172, 254, 0.15); color: #1a6fb8; }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header-section {
    background: var(--primary-gradient);
    padding: 60px 0;
    color: white;
    text-align: center;
}

.page-header-section h1 { font-size: 2.5rem; font-weight: 800; }
.page-header-section p  { opacity: 0.85; margin-top: 8px; }

/* Breadcrumb */
.breadcrumb-custom { background: transparent; padding: 0; justify-content: center; }
.breadcrumb-custom .breadcrumb-item { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.breadcrumb-custom .breadcrumb-item.active { color: white; }
.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ============================================================
   TABLES
   ============================================================ */
.table-custom { width: 100%; border-collapse: separate; border-spacing: 0; }
.table-custom thead th {
    background: var(--bg-light);
    color: #555;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 16px;
    border-bottom: 2px solid #e8ecf4;
}
.table-custom tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f2f8;
    vertical-align: middle;
}
.table-custom tbody tr:hover { background: rgba(102, 126, 234, 0.04); }

/* ============================================================
   MISC
   ============================================================ */
.section-padding { padding: 80px 0; }
.bg-white { background: white; }
.bg-light-custom { background: var(--bg-light); }

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

/* Testimonials */
.testimonial-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--card-shadow);
    border-left: 4px solid var(--primary);
}

/* Tree View */
.tree-node {
    background: white;
    border-radius: var(--border-radius-sm);
    padding: 12px 20px;
    box-shadow: var(--card-shadow);
    display: inline-block;
    position: relative;
    border: 2px solid #e8ecf4;
    text-align: center;
    min-width: 120px;
    transition: var(--transition);
}
.tree-node:hover { border-color: var(--primary); box-shadow: var(--card-shadow-hover); }
.tree-node .user-id { font-size: 0.7rem; color: #888; }
.tree-node .user-name { font-weight: 700; font-size: 0.85rem; }

/* Referral Link Box */
.referral-box {
    background: linear-gradient(135deg, rgba(102,126,234,0.05), rgba(118,75,162,0.05));
    border: 2px dashed var(--primary);
    border-radius: var(--border-radius);
    padding: 20px;
}

/* Welcome Banner */
.welcome-banner {
    background: var(--primary-gradient);
    border-radius: var(--border-radius);
    padding: 28px 32px;
    color: white;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
    top: -80px;
    right: -60px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .hero-stats  { flex-wrap: wrap; gap: 15px; }
    .form-card  { padding: 24px; }
    .section-title { font-size: 1.7rem; }
    .stat-card { flex-direction: column; text-align: center; padding: 18px; }
    .stat-icon { margin: 0 auto 8px; }
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.spinner-gradient {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(102,126,234,0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
