/**
 * AYNOR BERSAUDARA GROUP - Custom Stylesheet
 * File: assets/css/custom.css
 */

:root {
    --abg-primary: #102409;
    --abg-secondary: #1a3a12;
    --abg-accent: #d4a843;
    --abg-gold: #d4a843;
    --abg-light: #f8f9fa;
    --abg-dark: #0a1a06;
    --abg-success: #28a745;
    --abg-danger: #dc3545;
    --abg-info: #17a2b8;
}

* {
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f0f2f5;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* ============ LANDING PAGE ============ */
.landing-body {
    background: linear-gradient(135deg, #102409 0%, #1a3a12 50%, #0d2b08 100%);
    min-height: 100vh;
}

.landing-hero {
    padding: 60px 0 40px;
    text-align: center;
    color: white;
}

.landing-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.landing-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--abg-gold);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 5px;
}

.landing-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
}

/* Slideshow */
.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto 30px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.slideshow-slide {
    display: none;
    animation: fadeSlide 0.8s ease-in-out;
}

.slideshow-slide.active {
    display: block;
}

.slideshow-slide img {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes fadeSlide {
    from { opacity: 0; transform: scale(1.02); }
    to { opacity: 1; transform: scale(1); }
}

.slide-dots {
    text-align: center;
    padding: 15px 0;
}

.slide-dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: rgba(255,255,255,0.4);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-dot.active {
    background-color: var(--abg-gold);
    width: 30px;
    border-radius: 5px;
}

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.video-container video,
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Product Section */
.product-section {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 30px 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.product-image {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

/* Marketing Plan */
.marketing-plan {
    background: rgba(0,0,0,0.2);
    border-radius: 20px;
    padding: 30px 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(212, 168, 67, 0.2);
}

.plan-title {
    color: var(--abg-gold);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.plan-item {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    border-left: 3px solid var(--abg-gold);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plan-label {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
}

.plan-value {
    color: var(--abg-gold);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Bonus Table */
.bonus-section {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 30px 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(212, 168, 67, 0.2);
}

.bonus-title {
    color: var(--abg-gold);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
}

.bonus-table {
    width: 100%;
    font-size: 0.85rem;
}

.bonus-table th {
    background: rgba(212, 168, 67, 0.2);
    color: var(--abg-gold);
    padding: 10px;
    text-align: center;
}

.bonus-table td {
    padding: 8px 10px;
    text-align: center;
    color: rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.bonus-table tr:hover td {
    background: rgba(255,255,255,0.05);
}

/* Referral Card */
.referral-card {
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.15), rgba(16, 36, 9, 0.8));
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(212, 168, 67, 0.3);
    text-align: center;
}

.referral-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--abg-gold);
    margin-bottom: 15px;
    object-fit: cover;
}

.referral-name {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.referral-info {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-bottom: 3px;
}

/* CTA Buttons */
.btn-abg-primary {
    background: linear-gradient(135deg, var(--abg-gold), #b8922e);
    color: var(--abg-primary);
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.3);
    display: inline-block;
    text-decoration: none;
}

.btn-abg-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 168, 67, 0.4);
    color: var(--abg-primary);
}

.btn-abg-outline {
    background: transparent;
    color: var(--abg-gold);
    border: 2px solid var(--abg-gold);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-abg-outline:hover {
    background: var(--abg-gold);
    color: var(--abg-primary);
}

/* ============ LOGIN PAGE ============ */
.login-body {
    background: linear-gradient(135deg, #102409 0%, #1a3a12 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 24px;
    padding: 40px 30px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-logo {
    width: 100px;
    height: auto;
    display: block;
    margin: 0 auto 20px;
}

.login-title {
    text-align: center;
    color: var(--abg-primary);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.login-subtitle {
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.form-control-abg {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control-abg:focus {
    border-color: var(--abg-primary);
    box-shadow: 0 0 0 0.2rem rgba(16, 36, 9, 0.15);
}

.input-group-text-abg {
    background: var(--abg-primary);
    color: white;
    border: 2px solid var(--abg-primary);
    border-radius: 12px 0 0 12px;
    padding: 14px 16px;
}

.btn-login {
    background: linear-gradient(135deg, var(--abg-primary), var(--abg-secondary));
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 36, 9, 0.3);
    color: white;
}

/* ============ DASHBOARD ============ */
.dashboard-body {
    background: #f0f2f5;
    padding-bottom: 80px;
}

/* Top Header */
.dashboard-header {
    background: linear-gradient(135deg, var(--abg-primary), var(--abg-secondary));
    padding: 20px 15px;
    border-radius: 0 0 24px 24px;
    color: white;
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(212, 168, 67, 0.1);
    border-radius: 50%;
}

.header-greeting {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 2px;
}

.header-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Balance Card */
.balance-card {
    background: linear-gradient(135deg, var(--abg-gold), #b8922e);
    border-radius: 16px;
    padding: 20px;
    color: var(--abg-primary);
    position: relative;
    overflow: hidden;
}

.balance-card::before {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.balance-label {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.balance-amount {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.balance-link {
    color: var(--abg-primary);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    opacity: 0.9;
}

.balance-link:hover {
    opacity: 1;
    color: var(--abg-primary);
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px 15px;
}

.menu-item {
    background: white;
    border-radius: 16px;
    padding: 20px 10px;
    text-align: center;
    text-decoration: none;
    color: var(--abg-primary);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
}

.menu-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    color: var(--abg-primary);
}

.menu-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--abg-primary), var(--abg-secondary));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: var(--abg-gold);
    font-size: 1.4rem;
}

.menu-label {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Slideshow Dashboard */
.dashboard-slideshow {
    margin: 20px 15px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* Info Cards */
.info-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.info-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--abg-primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--abg-gold);
}

/* ============ MOBILE FOOTER NAV ============ */
.mobile-footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 20px 20px 0 0;
}

.mobile-footer-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #6c757d;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    padding: 5px 15px;
}

.mobile-footer-nav .nav-item i {
    font-size: 1.3rem;
    margin-bottom: 3px;
}

.mobile-footer-nav .nav-item.active {
    color: var(--abg-primary);
}

.mobile-footer-nav .nav-item.active i {
    color: var(--abg-gold);
}

/* ============ WHATSAPP FLOAT ============ */
.btn-whatsapp-float {
    position: fixed;
    bottom: 85px;
    right: 20px;
    width: 55px;
    height: 55px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

/* ============ CARDS ============ */
.card-abg {
    background: white;
    border-radius: 16px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}

.card-abg-header {
    background: linear-gradient(135deg, var(--abg-primary), var(--abg-secondary));
    color: white;
    padding: 20px;
    font-weight: 600;
}

.card-abg-body {
    padding: 20px;
}

/* ============ FORMS ============ */
.form-label-abg {
    font-weight: 500;
    color: var(--abg-primary);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.form-select-abg {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.95rem;
}

.form-select-abg:focus {
    border-color: var(--abg-primary);
    box-shadow: 0 0 0 0.2rem rgba(16, 36, 9, 0.15);
}

/* ============ BUTTONS ============ */
.btn-abg {
    background: linear-gradient(135deg, var(--abg-primary), var(--abg-secondary));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-abg:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 36, 9, 0.3);
    color: white;
}

.btn-abg-gold {
    background: linear-gradient(135deg, var(--abg-gold), #b8922e);
    color: var(--abg-primary);
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-abg-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.3);
    color: var(--abg-primary);
}

/* ============ TABLES ============ */
.table-abg {
    font-size: 0.9rem;
}

.table-abg thead th {
    background: var(--abg-primary);
    color: white;
    font-weight: 500;
    border: none;
    padding: 12px;
}

.table-abg tbody td {
    padding: 12px;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
}

/* ============ BADGES ============ */
.badge-abg {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-pending {
    background: #fff3cd;
    color: #856404;
}

.badge-approved {
    background: #d4edda;
    color: #155724;
}

.badge-rejected {
    background: #f8d7da;
    color: #721c24;
}

/* ============ RESPONSIVE ============ */
@media (min-width: 992px) {
    .dashboard-body {
        max-width: 480px;
        margin: 0 auto;
        box-shadow: 0 0 40px rgba(0,0,0,0.1);
        min-height: 100vh;
    }
    
    .landing-body {
        max-width: 480px;
        margin: 0 auto;
        box-shadow: 0 0 40px rgba(0,0,0,0.2);
    }
}

/* ============ ANIMATIONS ============ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* ============ CAPTCHA ============ */
.captcha-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 2px dashed #dee2e6;
}

.slider-captcha {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.slider-track {
    width: 100%;
    height: 40px;
    background: #e9ecef;
    border-radius: 20px;
    position: relative;
    margin-top: 15px;
}

.slider-btn {
    width: 40px;
    height: 40px;
    background: var(--abg-primary);
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: background 0.3s ease;
}

.slider-btn.verified {
    background: #28a745;
}

/* ============ STAT CARDS ============ */
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--abg-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 5px;
}

/* ============ NETWORK TREE ============ */
.tree-container {
    overflow-x: auto;
    padding: 20px 0;
}

.tree-node {
    display: inline-block;
    text-align: center;
    position: relative;
}

.tree-node-content {
    background: white;
    border-radius: 12px;
    padding: 10px 15px;
    border: 2px solid var(--abg-primary);
    display: inline-block;
    min-width: 120px;
}

.tree-connector {
    width: 2px;
    height: 20px;
    background: var(--abg-primary);
    margin: 0 auto;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--abg-primary);
    border-radius: 3px;
}

/* ============ PROFILE ============ */
.profile-header {
    background: linear-gradient(135deg, var(--abg-primary), var(--abg-secondary));
    padding: 40px 20px 60px;
    text-align: center;
    color: white;
    border-radius: 0 0 30px 30px;
    position: relative;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--abg-gold);
    object-fit: cover;
    margin-bottom: 15px;
    background: white;
}

.profile-section {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin: -30px 15px 15px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    position: relative;
    z-index: 10;
}

/* ============ ADMIN PANEL ============ */
.admin-sidebar {
    background: var(--abg-primary);
    min-height: 100vh;
    color: white;
    padding: 20px 0;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: var(--abg-gold);
}

.admin-content {
    padding: 30px;
    background: #f0f2f5;
    min-height: 100vh;
}

/* ============ PRINT ============ */
@media print {
    .mobile-footer-nav,
    .btn-whatsapp-float {
        display: none !important;
    }
}
