/* GLOBAL STYLES */
:root {
    --primary-color: #00897b; /* Teal Modern */
    --secondary-color: #e0f2f1; /* Teal Sangat Terang */
    --text-dark: #333333;
    --text-light: #777777;
    --bg-light: #f4f4f4;
    --white: #ffffff;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);

    /* TAMBAHKAN WARNA EMAS INI */
    --gold-color: #FFD700; /* Kode warna Emas Murni */
    --dark-gold: #C9A00D; /* Emas gelap untuk shadow/hover */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: var(--text-dark);
}

.container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

/* PROFILE CARD STYLING */
.profile-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden; /* Penting untuk header-bg */
    box-shadow: var(--card-shadow);
    text-align: center;
}

/* Styling untuk Teks Bio */
.bio-text {
    /* Warna teks utama bio: sedikit lebih gelap dari --text-light */
    color: var(--text-dark); /* Menggunakan warna gelap utama */
    font-size: 0.9em;
    margin-bottom: 25px;
    padding: 0 10px;
    line-height: 1.5;
    font-weight: 400; /* Normal */
}

/* Styling untuk kata yang DITEKANKAN (Strong Tag) */
.bio-text strong {
    color: var(--primary-color); /* Warna Teal Keren (Aksen) */
    font-weight: 600; /* Sedikit tebal */
}

/* Jika menggunakan Dark Mode, pastikan kontras tetap bagus */
@media (prefers-color-scheme: dark) {
    /* ... (kode dark mode yang sudah ada) ... */

    .bio-text {
        color: #e0e0e0; /* Teks bio menjadi terang di mode gelap */
    }
}

.header-bg {
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), #4db6ac);
}

.profile-content {
    padding: 0 30px 30px;
    margin-top: -75px; /* Mengangkat konten ke atas header */
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--white); /* Border putih yang tebal */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.name {
    font-size: 1.8em;
    font-weight: 700;
    margin-top: 15px;
    margin-bottom: 5px;
}

.title {
    font-size: 0.9em;
    color: var(--text-light);
    font-weight: 400;
    margin-bottom: 30px;
}

/* STATS SECTION */
.stats {
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
    border-top: 1px solid #eeeeee; /* Garis pemisah halus */
    border-bottom: 1px solid #eeeeee;
    margin-bottom: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item .value {
    font-size: 1.2em;
    font-weight: 700;
    /* GANTI INI: */
    color: var(--gold-color); /* Warna Emas untuk Angka */
}

.stat-item .label {
    font-size: 0.75em;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ACTIONS (Buttons) */
.actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    
    /* PENTING: Tambahkan baris ini jika menggunakan tag <a> */
    text-decoration: none; /* Menghilangkan garis bawah pada link */
    display: inline-block; /* Membuat link bisa diatur lebar dan tingginya */
    text-align: center; /* Memastikan teks tombol di tengah */
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 137, 123, 0.3); /* Shadow warna aksen */
}

.btn-primary:hover {
    background-color: #00695c; /* Sedikit lebih gelap */
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
}

/* Efek Klik Ringan */
.btn:active {
    transform: scale(0.98);
}

/* DARK MODE STYLES */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a; /* Latar belakang sangat gelap */
        color: #e0e0e0; /* Teks terang */
    }
    
    .profile-card {
        background: #2c2c2c; /* Kartu sedikit lebih terang dari background */
        box-shadow: 0 10px 30px rgba(255, 255, 255, 0.05);
    }

    .title {
        color: #b0b0b0;
    }

    .stats {
        border-top: 1px solid #444444; 
        border-bottom: 1px solid #444444;
    }

    .btn-secondary {
        background-color: #383838;
        color: var(--primary-color);
        border: 1px solid var(--primary-color);
    }
    
    .btn-secondary:hover {
        background-color: #444444;
    }
}

/* Styling Khusus untuk Bintang Rating */
.rating-item {
    /* Pastikan tampilan tidak terpisah */
    display: flex; 
    flex-direction: column;
    align-items: center; /* Pusatkan bintang */
}

.star-value {
    /* Pastikan warna bintang menggunakan variabel emas */
    color: var(--gold-color); 
    font-size: 1.1em;
    margin-bottom: 5px; 
}

/* Styling untuk Ikon Baru di Stats */
.icon-stat {
    color: var(--primary-color); /* Menggunakan warna aksen teal */
    font-size: 1.5em; 
    margin-bottom: 5px; /* Memberi jarak ke nilai (value) */
}

/* Modifikasi stat-item agar lebih seragam */
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center; /* Memastikan semua konten (ikon, nilai, label) terpusat */
    padding: 0 10px; /* Tambahkan padding agar tidak terlalu rapat */
}

.stat-item .value {
    /* Pastikan nilai angka (12.5K, 450) tetap tebal dan menonjol */
    font-size: 1.2em;
    font-weight: 700;
    color: var(--text-dark); /* Ganti dari primary-color agar beda dengan ikon */
}

/* ========================================= */
/* === STYLING KHUSUS FORM LOGIN/REGISTER ===*/
/* ========================================= */

.auth-container {
    /* Mirip dengan .container, tapi memastikan form berada di tengah halaman */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    width: 100%;
}

.auth-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08); /* Shadow yang lebih lembut dan besar */
    width: 100%;
    max-width: 420px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 2em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-light);
    font-size: 0.95em;
}

/* INPUT FIELD STYLING */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9em;
    color: var(--text-dark);
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper .icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: var(--text-light); /* Ikon berwarna abu-abu kalem */
    font-size: 1em;
}

.input-icon-wrapper input {
    width: 100%;
    padding: 12px 12px 12px 45px; /* Padding kiri lebih besar untuk ikon */
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: 'Poppins', sans-serif;
}

.input-icon-wrapper input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--secondary-color); /* Shadow fokus halus */
    outline: none;
}

/* Lupa Password Link */
.forgot-password {
    text-align: right;
    margin-bottom: 25px;
}

.forgot-password a, .link-secondary {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
}

.forgot-password a:hover, .link-secondary:hover {
    text-decoration: underline;
}

/* Tombol Submit */
.btn-full {
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
    border-radius: 8px; /* Pastikan seragam dengan input */
}

/* Footer Form */
.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9em;
    color: var(--text-light);
}

/* --- Dark Mode Support for Form --- */
@media (prefers-color-scheme: dark) {
    .auth-card {
        background: #2c2c2c;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    }
    
    .auth-header h2 {
        color: var(--primary-color);
    }
    
    .auth-header p, .auth-footer p {
        color: #b0b0b0;
    }

    .input-icon-wrapper input {
        background: #383838;
        border-color: #444;
        color: #e0e0e0;
    }

    .input-icon-wrapper input:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.3);
    }
}

/* ========================================= */
/* === STYLING SIDEBAR MINIMALIS ===*/
/* ========================================= */

/* Body Modifikasi untuk Layout Sidebar + Content */
body {
    display: flex; /* Mengatur body sebagai flex container */
    min-height: 100vh;
}

/* SIDEBAR STRUCTURE */
.sidebar {
    width: 250px; /* Lebar sidebar */
    background-color: var(--white);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    position: fixed; /* Sidebar tetap di tempat */
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

/* SIDEBAR LOGO */
.sidebar-logo {
    padding: 0 20px 20px;
    font-size: 1.3em;
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.sidebar-logo i {
    margin-right: 8px;
    color: var(--gold-color); /* Sentuhan emas pada ikon logo */
}

.sidebar-logo strong {
    font-weight: 800;
    color: var(--text-dark);
}

/* NAVIGATION LINKS */
.sidebar-nav ul {
    list-style: none;
    flex-grow: 1; /* Agar navigasi mengambil ruang yang tersedia */
}

.nav-item a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
    border-left: 3px solid transparent; /* Garis aksen transparan */
}

.nav-item a i {
    font-size: 1.1em;
    width: 30px; /* Lebar tetap untuk ikon */
    color: var(--text-light);
}

.nav-item a span {
    margin-left: 10px;
}

/* ACTIVE/HOVER STATES (Paling Keren!) */
.nav-item:hover a {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.nav-item.active a {
    background-color: var(--secondary-color); /* Latar belakang untuk item aktif */
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color); /* Garis tebal di kiri */
}

.nav-item.active a i {
    color: var(--primary-color); /* Ikon aktif ikut warna aksen */
}

/* MAIN CONTENT AREA */
.main-content-area {
    margin-left: 250px; /* Sebesar lebar sidebar agar tidak tertutup */
    flex-grow: 1;
    padding: 20px 30px;
    background-color: var(--bg-light); /* Latar belakang konten */
}

.top-header h1 {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.welcome-box {
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    color: var(--text-light);
}

/* SIDEBAR FOOTER (User Profile) */
.sidebar-footer {
    border-top: 1px solid #eee;
    padding: 15px 20px 0;
    margin-top: auto; /* Mendorong footer ke bawah */
}

.profile-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s;
}

.profile-link:hover {
    opacity: 0.8;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid var(--primary-color);
}

.user-name {
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.2;
}

.user-role {
    font-size: 0.75em;
    color: var(--text-light);
}

/* ========================================= */
/* === STYLING KHUSUS FIGMA-LIKE UI ===*/
/* ========================================= */

/* Container Utama */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    font-family: 'Inter', sans-serif; /* Font Inter sering dipakai di aplikasi UI */
    background-color: #fcfcfc;
}

/* 1. TOP BAR */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    background-color: var(--white);
    border-bottom: 1px solid #eee;
    height: 50px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.topbar-left, .topbar-center, .topbar-right {
    display: flex;
    align-items: center;
}

.menu-icon {
    font-size: 1.2em;
    margin-right: 15px;
    color: var(--text-dark);
}

.file-name {
    font-size: 0.9em;
    font-weight: 400;
}

.topbar-center i {
    padding: 5px 10px;
    cursor: pointer;
    font-size: 1.1em;
    color: var(--text-light);
    margin: 0 5px;
    border-radius: 4px;
}

.active-tool {
    background-color: var(--secondary-color);
    color: var(--primary-color) !important;
}

/* 2. MAIN LAYOUT (Flex untuk Sidebar dan Canvas) */
.main-layout {
    display: flex;
    flex: 1; /* Mengisi sisa ruang vertikal */
    overflow: hidden;
}

/* SIDEBARS */
.sidebar {
    width: 250px;
    padding: 15px 0;
    background-color: var(--white);
    border-right: 1px solid #eee;
    border-left: 1px solid #eee;
    overflow-y: auto;
    flex-shrink: 0;
}

.sidebar-right {
    border-right: none;
    border-left: 1px solid #eee;
}

.sidebar-panel h3 {
    font-size: 0.9em;
    text-transform: uppercase;
    color: var(--text-light);
    padding: 0 15px 10px;
    font-weight: 600;
}

/* Layer List */
.layer-list {
    list-style: none;
    font-size: 0.9em;
}

.layer-list li {
    padding: 8px 15px;
    cursor: pointer;
    color: var(--text-dark);
}

.layer-list li i {
    margin-right: 8px;
    color: var(--text-light);
}

.active-layer {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 600;
}

/* Properties Panel (Right Sidebar) */
.property-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    border-bottom: 1px solid #fafafa;
    font-size: 0.9em;
}

.prop-label {
    color: var(--text-light);
}

.prop-value {
    font-weight: 600;
    color: var(--text-dark);
}

.prop-value[style] { /* Khusus untuk kotak warna Fill */
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid #eee;
}

/* 3. CANVAS AREA */
.main-canvas {
    flex: 1; /* Mengambil semua ruang yang tersisa */
    background-color: var(--bg-light); /* Latar belakang abu-abu muda */
    overflow: auto;
    padding: 40px;
    display: flex;
    justify-content: center; /* Pusatkan konten di canvas */
    align-items: center;
}

.canvas-content {
    text-align: center;
    padding: 50px;
}

.design-frame {
    width: 1024px;
    height: 768px;
    background-color: var(--white);
    border: 1px solid #ddd;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    color: var(--text-light);
    position: relative; /* PENTING: Untuk menampung elemen absolute */
}

#draggable-box {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    /* transition: none !important; *//* Nonaktifkan transisi CSS saat dragging */
}

/* Dark Mode (Opsional, tapi keren) */
@media (prefers-color-scheme: dark) {
    .app-container {
        background-color: #2c2c2c;
    }
    .topbar, .sidebar, .design-frame {
        background-color: #383838;
        border-color: #444;
        color: #e0e0e0;
    }
    .topbar-center i {
        color: #b0b0b0;
    }
    .main-canvas {
        background-color: #222;
    }
    .sidebar-panel h3, .prop-label {
        color: #b0b0b0;
    }
}