/* =========================================
   SaaS Mastermind - Mobile First CSS Native
   (Versi Kustom Sesuai Permintaan Gambar)
   ========================================= */

/* Reset & Base Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    /* Gradien ungu ke pink khas SaaS Properti (sama seperti gambar) */
    background: linear-gradient(135deg, #a161f3 0%, #d86ed0 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 10px; /* Jarak aman di HP kecil */
}

/* Container & Card Layout (Mobile First: Elements are stacked) */
.login-container {
    width: 100%;
    max-width: 800px; /* Lebar maksimal card putih */
    display: flex;
    justify-content: center;
}

.login-card {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 20px; /* Sudut lebih lembut */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px; /* Card lebih ramping di mobile */
    text-align: center;
    display: flex;
    flex-direction: column; /* Tumpuk ilustrasi di atas form */
    align-items: center;
}

/* --- Seksi Ilustrasi (Kustom) --- */
.illustration-section {
    position: relative;
    width: 160px;
    height: 160px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.round-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #f0f0f0; /* Lingkaran abu-abu terang */
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid #ddd;
}

.laptop-icon {
    width: 90px;
    height: auto;
}

/* Bentuk geometris aksen dari gambar */
.shape {
    position: absolute;
    width: 12px;
    height: 12px;
    border-width: 2px;
    border-style: solid;
}

.shape.s1 { top: 20px; left: 10px; border-color: #f7a84c; border-radius: 50%; } /* Tri-angle kecil orange */
.shape.s2 { top: 30px; right: 0; border-color: #6fbb5e; } /* Kotak hijau */
.shape.s3 { bottom: 20px; left: 0; border-color: #d86ed0; } /* Kotak pink */
.shape.s4 { bottom: 30px; right: 10px; border-color: #3498db; border-radius: 50%; } /* Lingkaran biru */

/* --- Seksi Form (Kustom) --- */
.form-section {
    width: 100%;
}

.form-section h2 {
    color: #333;
    font-size: 22px;
    margin-bottom: 25px;
    font-weight: 700;
}

/* Form Elements: Pill-shaped dengan ikon (Mobile First) */
.input-group {
    position: relative;
    text-align: left;
    margin-bottom: 18px;
    width: 100%;
}

.input-group span.icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    font-size: 16px;
    color: #999;
    z-index: 2;
}

.input-group input {
    width: 100%;
    padding: 12px 15px 12px 40px; /* Padding kiri lebih besar untuk ikon */
    background: #f1f2f6; /* Input field abu-abu terang (sama seperti gambar) */
    border: none;
    border-radius: 30px; /* Pill-shaped input */
    font-size: 14px;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus {
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(111, 187, 94, 0.2); /* Aksen hijau saat diklik */
    transform: translateY(-1px);
}

/* CTA Button Hijau Cerah (Digital Marketing: Pill-shaped, mencolok) */
.btn-green {
    width: 100%;
    background: #6fbb5e; /* Hijau cerah dari image_0.png */
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 30px; /* Pill-shaped button */
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(111, 187, 94, 0.4);
    letter-spacing: 1px; /* Teks button agak lebar */
}

.btn-green:hover {
    background: #5fa04e;
    box-shadow: 0 6px 15px rgba(111, 187, 94, 0.6);
    transform: translateY(-2px);
}

.btn-green:active {
    transform: translateY(1px);
}

/* Links & Microcopy */
.links {
    margin-top: 15px;
    margin-bottom: 30px;
}

.links a {
    text-decoration: none;
    font-size: 13px;
    color: #777;
    transition: color 0.3s ease;
}

.links a:hover {
    color: #333;
}

.create-account {
    margin-top: 20px;
}

.create-account a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    transition: all 0.3s ease;
}

.create-account a:hover {
    color: #d86ed0; /* Aksen warna pink dari background */
    letter-spacing: 0.5px;
}

/* Responsif Tablet & Desktop Breakpoint: Dua Kolom */
@media (min-width: 768px) {
    .login-card {
        padding: 40px;
        max-width: 700px; /* Card putih lebih lebar di desktop */
        flex-direction: row; /* Ubah ke dua kolom */
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .illustration-section {
        width: 350px; /* Lebar kolom ilustrasi */
        height: 100%;
        margin-bottom: 0; /* Hapus margin bawah */
    }
    
    .round-circle {
        width: 250px; /* Ilustrasi lebih besar di desktop */
        height: 250px;
    }
    
    .laptop-icon {
        width: 160px;
    }
    
    .form-section {
        width: 300px; /* Lebar kolom form */
    }
    
    .form-section h2 {
        font-size: 26px;
    }
}

/* =========================================
   DASHBOARD LAYOUT (MOBILE-FIRST)
   ========================================= */
.dashboard-body {
    background: #f4f7f6; /* Warna background dashboard yang lebih terang/bersih */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header / Topbar */
.topbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar h2 {
    font-size: 1.2rem;
    color: #333;
    margin: 0;
}

.btn-logout {
    background: #ff4757;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    transition: 0.3s;
}

.btn-logout:hover {
    background: #ff6b81;
}

/* Main Content Area */
.main-content {
    padding: 20px;
    flex: 1;
}

/* Dashboard Cards (Statistik) */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: 1 kolom */
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border-left: 5px solid #2ecc71; /* Aksen hijau */
}

.stat-card h3 {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.stat-card .value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

/* RESPONSIVE DESKTOP (Min-width: 768px) */
@media (min-width: 768px) {
    .dashboard-body {
        flex-direction: row; /* Berubah jadi layout kiri-kanan di Desktop */
    }
    
    /* Ruang untuk Sidebar di Desktop (Nanti kita buat sidebarnya) */
    .dashboard-wrapper {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr); /* Desktop: 3 kolom */
    }
}
/* =========================================
   SIDEBAR & LAYOUT PENYEMPURNAAN (Fase 5)
   ========================================= */
.dashboard-wrapper {
    display: flex;
    width: 100%;
}

/* Sidebar Styling (Default disembunyikan untuk Mobile) */
.sidebar {
    background: #1e272e; /* Warna gelap premium */
    color: white;
    width: 250px;
    height: 100vh;
    position: fixed;
    left: -250px; /* Sembunyikan di luar layar HP */
    top: 0;
    transition: 0.3s ease-in-out;
    z-index: 999;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

/* Class ini akan dipicu oleh JavaScript saat tombol Menu diklik */
.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 1.2rem;
    font-weight: bold;
    color: #0fb9b1; /* Aksen warna brand */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.sidebar-menu li {
    padding: 0;
}

.sidebar-menu a {
    color: #808e9b;
    text-decoration: none;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
    font-size: 0.95rem;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background: #485460;
    color: white;
    border-left: 4px solid #0fb9b1; /* Aksen hijau/cyan */
}

.sidebar-menu i {
    font-size: 1.3rem; /* Ukuran ikon */
}

/* Menu Toggle Button (Hamburger) */
.menu-toggle {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #2c3e50;
    cursor: pointer;
    display: block; /* Tampil di mobile */
    padding: 0;
}

/* Penyesuaian Topbar */
.topbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Pembungkus Konten Utama */
.main-content-wrapper {
    flex: 1;
    margin-left: 0; /* Di mobile tidak ada margin kiri */
    transition: 0.3s ease-in-out;
    width: 100%;
}

/* Overlay Hitam untuk mobile saat sidebar terbuka */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}
.sidebar-overlay.active {
    display: block;
}

/* RESPONSIVE DESKTOP (Min-width: 768px) */
@media (min-width: 768px) {
    .sidebar {
        left: 0; /* Tampilkan sidebar selalu di Desktop */
    }
    .menu-toggle {
        display: none; /* Sembunyikan tombol hamburger di Desktop */
    }
    .main-content-wrapper {
        margin-left: 250px; /* Geser konten ke kanan menghindari tertimpa sidebar */
    }
    .sidebar-overlay {
        display: none !important; /* Hilangkan efek gelap overlay di Desktop */
    }
}