/* =========================================================
    ReMake Industry - Styling
    Dibuat oleh: AI Assistant
    Terakhir diperbarui: 15 Juli 2025
    ========================================================= */

/* ========================
    Variabel dan Dasar
    ======================== */
:root {
    --primary-color: #3b82f6;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #0ea5e9;

    --text-primary: #1e293b;
    --text-secondary: #64748b;
    
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ========================
    Header dan Navigasi
    ======================== */
.header {
    background: var(--bg-card);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    gap: 1.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
    max-width: 100%;
}

/* Tombol hamburger disembunyikan di desktop */
.menu-toggle {
    display: none;
}

/* Menu navigasi ditampilkan di desktop */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Styling untuk Menu Aktif */
.nav-links a.active {
    color: var(--primary-color);
    font-weight: 700;
}

/* ========================
    Hero Section
    ======================== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================
    Buttons
    ======================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: #64748b;
    color: white;
}

.btn-secondary:hover {
    background: #475569;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

/* ========================
    Card dan Layout
    ======================== */
.form-container, .dashboard-header, .referral-section, .table-container {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.form-container {
    max-width: 500px;
    margin: 2rem auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

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

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* ========================
    Form
    ======================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ========================
    Tabel
    ======================== */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    white-space: nowrap;
}

table thead {
    background: var(--bg-light);
    text-align: left;
}

table th, table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

table th {
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: capitalize;
}

.status-paid { background: #D1FAE5; color: #065F46; }
.status-pending { background: #FEF3C7; color: #92400E; }
.status-cancelled { background: #FEE2E2; color: #DC2626; }


/* ========================
    Alerts
    ======================== */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fecaca; color: #991b1b; }
.alert-info { background: #dbeafe; color: #1e40af; }


/* ========================
    Utility Classes
    ======================== */
.text-center { text-align: center; }
.text-right { text-align: right; }

/* ========================
    Footer
    ======================== */
.footer {
    padding: 1.5rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 4rem;
}

/* ========================
    CSS Khusus Halaman Profil
    ======================== */
.profile-section {
    padding: 2rem 0;
}

.profile-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 0 auto;
}

.profile-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--primary-color);
}

/* ========================
    Responsive Design (Tampilan Mobile)
    ======================== */
@media (max-width: 200px) {
    .container {
        padding: 0 1rem;
    }

    .header-content {
        justify-content: space-between;
    }
    
    /* Tombol hamburger ditampilkan di mobile */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 2rem;
        cursor: pointer;
        color: var(--text-primary);
        z-index: 101;
    }

    /* Menu navigasi disembunyikan di mobile */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: rgba(255, 255, 255, 0.95);
        z-index: 99;
        
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.4s ease-out, opacity 0.4s ease-out;
    }
    
    /* Sapaan 'Halo, ...' disembunyikan di mobile */
    .nav-links .nav-greeting {
        display: none;
    }

    /* Ketika menu aktif, tampilkan */
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        font-size: 1.5rem;
        margin: 1rem 0;
    }

    /* Ukuran font responsif */
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        text-align: left;
    }

    .stat-value {
        font-size: 2rem;
    }
    
    .dashboard-subtitle {
        font-size: 1rem;
    }
    
    .profile-card {
        padding: 1rem; /* Kurangi padding di mobile */
    }
}