/* assets/css/style.css - Galeri Zulma */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Nunito:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #8B4A6E;
    --primary-dark: #6B2F52;
    --primary-light: #C27BA0;
    --secondary: #D4AF8C;
    --accent: #F5E6D3;
    --dark: #2C1A24;
    --text: #3D2B35;
    --text-muted: #8A7280;
    --white: #FEFAF8;
    --bg-light: #FDF6F0;
    --border: #E8D5C4;
    --success: #4CAF8A;
    --warning: #E8A04A;
    --danger: #C94F6E;
    --info: #5B9BD5;
    --shadow: 0 4px 24px rgba(139,74,110,0.12);
    --shadow-hover: 0 8px 40px rgba(139,74,110,0.22);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Nunito', sans-serif;
    background: var(--bg-light);
    color: var(--text);
    line-height: 1.6;
}

h1, h2, h3, h4, h5 { font-family: 'Playfair Display', serif; color: var(--dark); }

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

/* ========================= NAVBAR ========================= */
.navbar-zulma {
    background: rgba(254,250,248,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(139,74,110,0.08);
}
.navbar-brand-zulma {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary) !important;
    letter-spacing: -0.5px;
}
.navbar-brand-zulma span { color: var(--secondary); }
.nav-link-zulma {
    font-weight: 600;
    color: var(--text) !important;
    padding: 6px 16px !important;
    border-radius: 20px;
    transition: var(--transition);
    font-size: 0.9rem;
}
.nav-link-zulma:hover, .nav-link-zulma.active {
    color: var(--primary) !important;
    background: var(--accent);
}

/* ========================= HERO ========================= */
.hero-section {
    min-height: 88vh;
    background: linear-gradient(135deg, #2C1A24 0%, #8B4A6E 50%, #C27BA0 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    color: #fff;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
}
.hero-title span { color: var(--secondary); }
.hero-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 36px;
}
.hero-stats {
    display: flex; gap: 32px;
    margin-top: 40px;
}
.hero-stat { text-align: center; color: rgba(255,255,255,0.9); }
.hero-stat .num {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
    display: block;
}
.hero-stat .lbl { font-size: 0.78rem; opacity: 0.7; letter-spacing: 0.5px; }
.hero-image-wrap {
    position: relative;
    display: flex; justify-content: center; align-items: center;
}
.hero-image-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 24px;
    padding: 32px;
    text-align: center;
    color: rgba(255,255,255,0.9);
}
.hero-image-card .icon { font-size: 5rem; margin-bottom: 16px; display: block; }

/* ========================= BUTTONS ========================= */
.btn-primary-zulma {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
    box-shadow: 0 4px 15px rgba(139,74,110,0.3);
}
.btn-primary-zulma:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139,74,110,0.4);
    color: #fff;
}
.btn-outline-zulma {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px 26px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline-zulma:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}
.btn-white-zulma {
    background: #fff;
    color: var(--primary);
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.btn-white-zulma:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

/* ========================= CARDS ========================= */
.card-zulma {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}
.card-zulma:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.card-header-zulma {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 20px 24px;
}
.card-header-zulma h5, .card-header-zulma h4 {
    color: #fff;
    margin: 0;
    font-family: 'Playfair Display', serif;
}
.card-body-zulma { padding: 24px; }

/* Service Cards */
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 28px 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
/* Foto Layanan */
.service-image {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    margin: -28px -24px 18px -24px;
}
.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}
.service-card:hover .service-image img {
    transform: scale(1.05);
}

/* ========================= FORMS ========================= */
.form-zulma .form-control,
.form-zulma .form-select {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--white);
    color: var(--text);
}
.form-zulma .form-control:focus,
.form-zulma .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139,74,110,0.15);
    outline: none;
}
.form-zulma label {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    font-size: 0.88rem;
}
.form-zulma .invalid-feedback { font-size: 0.8rem; }

/* File Upload */
.upload-zone {
    border: 2px dashed var(--primary-light);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--accent);
}
.upload-zone:hover, .upload-zone.drag-over {
    border-color: var(--primary);
    background: rgba(139,74,110,0.08);
}
.upload-zone .upload-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 12px; }
.preview-images { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.preview-img-wrap {
    position: relative;
    width: 100px; height: 100px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--border);
}
.preview-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.preview-img-wrap .remove-img {
    position: absolute; top: 4px; right: 4px;
    background: var(--danger);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px; height: 20px;
    font-size: 10px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}

/* ========================= DASHBOARD ========================= */
.sidebar-zulma {
    width: 260px;
    background: linear-gradient(180deg, var(--dark) 0%, #3D1E30 100%);
    height: 100vh;          /* tetap 100vh, bukan min-height */
    position: fixed;
    left: 0; top: 0;
    display: flex; flex-direction: column;
    z-index: 100;
    transition: var(--transition);
    overflow: hidden;       /* sembunyikan overflow di wrapper */
}
.sidebar-logo {
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    flex-shrink: 0;         /* logo tidak ikut menyusut */
}
.sidebar-logo h4 {
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 2px;
}
.sidebar-logo span { color: var(--secondary); }
.sidebar-logo p { color: rgba(255,255,255,0.5); font-size: 0.75rem; margin: 0; }

/* Nav scrollable — flex: 1 + overflow-y: auto agar bisa scroll */
.sidebar-nav {
    flex: 1;
    padding: 12px 10px;
    overflow-y: auto;
    overflow-x: hidden;
    /* Scrollbar tipis & elegan */
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.18);
    border-radius: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.32); }
.sidebar-nav .nav-section {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.32);
    padding: 10px 12px 4px;
    margin-top: 2px;
}
.sidebar-nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.7);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    margin-bottom: 1px;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-nav-item:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}
.sidebar-nav-item.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 12px rgba(139,74,110,0.35);
}
.sidebar-nav-item .icon { font-size: 1rem; width: 20px; text-align: center; }
.sidebar-nav-item .badge-notif {
    margin-left: auto;
    background: var(--danger);
    color: #fff;
    font-size: 0.68rem;
    padding: 1px 7px;
    border-radius: 10px;
}
.sidebar-user {
    padding: 14px 18px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; gap: 12px;
    flex-shrink: 0;         /* user info tetap di bawah, tidak ikut scroll */
    background: rgba(0,0,0,0.15);
}
.sidebar-user img {
    width: 38px; height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.2);
}
.sidebar-user .name { color: #fff; font-weight: 600; font-size: 0.85rem; display: block; }
.sidebar-user .role { color: rgba(255,255,255,0.5); font-size: 0.72rem; }

.main-content {
    margin-left: 260px;
    min-height: 100vh;
    background: var(--bg-light);
}
.topbar {
    background: var(--white);
    padding: 16px 28px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 90;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.page-content { padding: 28px; }

/* Stat Cards */
.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex; align-items: center; gap: 20px;
    transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.stat-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.stat-card .number {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
}
.stat-card .label { color: var(--text-muted); font-size: 0.82rem; font-weight: 600; margin-top: 4px; }

/* ========================= TABLES ========================= */
.table-zulma { border-collapse: separate; border-spacing: 0; width: 100%; }
.table-zulma thead th {
    background: var(--dark);
    color: rgba(255,255,255,0.85);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 14px 16px;
}
.table-zulma tbody tr {
    background: var(--white);
    transition: var(--transition);
}
.table-zulma tbody tr:hover { background: var(--accent); }
.table-zulma tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
    vertical-align: middle;
}

/* ========================= BADGES ========================= */
.badge { font-weight: 600; padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; }
.bg-warning { background: #FFF3CD !important; color: #856404 !important; }
.bg-info { background: #D1ECF1 !important; color: #0C5460 !important; }
.bg-primary { background: rgba(139,74,110,0.15) !important; color: var(--primary) !important; }
.bg-success { background: #D4EDDA !important; color: #155724 !important; }
.bg-danger { background: #F8D7DA !important; color: #721C24 !important; }
.bg-secondary { background: #E2E3E5 !important; color: #383D41 !important; }

/* ========================= ALERTS ========================= */
.alert-zulma {
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-size: 0.88rem;
    font-weight: 500;
    border-left: 4px solid;
}
.alert-success { background: #D4EDDA; color: #155724; border-color: #28A745; }
.alert-danger { background: #F8D7DA; color: #721C24; border-color: #DC3545; }
.alert-warning { background: #FFF3CD; color: #856404; border-color: #FFC107; }
.alert-info { background: #D1ECF1; color: #0C5460; border-color: #17A2B8; }

/* ========================= RATING STARS ========================= */
.stars-input { display: flex; flex-direction: row-reverse; gap: 4px; justify-content: flex-end; }
.stars-input input { display: none; }
.stars-input label {
    font-size: 1.8rem;
    color: #ddd;
    cursor: pointer;
    transition: var(--transition);
}
.stars-input label:hover,
.stars-input label:hover ~ label,
.stars-input input:checked ~ label { color: #FFC107; }

.stars-display { color: #FFC107; letter-spacing: 2px; }
.stars-display .empty { color: #ddd; }

/* ========================= STATUS TIMELINE ========================= */
.status-timeline { padding: 0; list-style: none; }
.timeline-item {
    display: flex; gap: 16px;
    padding-bottom: 20px;
    position: relative;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: 15px; top: 32px;
    width: 2px; bottom: 0;
    background: var(--border);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--primary);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 0.8rem;
    flex-shrink: 0;
    z-index: 1;
}
.timeline-dot.inactive { background: var(--border); color: var(--text-muted); }

/* ========================= AUTH PAGES ========================= */
.auth-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.auth-wrapper::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Ccircle cx='40' cy='40' r='1.5' fill='rgba(255,255,255,0.06)'/%3E%3C/g%3E%3C/svg%3E");
}
.auth-card {
    background: var(--white);
    border-radius: 24px;
    padding: 44px 40px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}
.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}
.auth-logo h2 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    font-size: 1.8rem;
}
.auth-logo span { color: var(--secondary); }
.auth-logo p { color: var(--text-muted); font-size: 0.85rem; margin: 0; }
.password-strength { height: 4px; border-radius: 2px; margin-top: 6px; transition: var(--transition); background: var(--border); }
.strength-weak { background: var(--danger) !important; width: 25%; }
.strength-fair { background: var(--warning) !important; width: 50%; }
.strength-good { background: var(--info) !important; width: 75%; }
.strength-strong { background: var(--success) !important; width: 100%; }

/* ========================= TOAST ========================= */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; }
.toast-zulma {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-hover);
    min-width: 300px;
    display: flex; align-items: center; gap: 12px;
    animation: slideIn 0.3s ease;
    border-left: 4px solid var(--primary);
}
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ========================= FOOTER ========================= */
.footer-zulma {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 24px;
}
.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 12px;
}
.footer-brand span { color: var(--secondary); }
.footer-zulma h6 {
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.footer-link { color: rgba(255,255,255,0.6); font-size: 0.88rem; display: block; margin-bottom: 8px; }
.footer-link:hover { color: var(--secondary); }
.footer-divider { border-color: rgba(255,255,255,0.1); margin: 32px 0 20px; }
.social-links { display: flex; gap: 10px; }
.social-link {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: var(--transition);
}
.social-link:hover { background: var(--primary); color: #fff; }

/* ========================= MISC ========================= */
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.section-subtitle { color: var(--text-muted); font-size: 1rem; max-width: 540px; }
.divider-ornament {
    display: flex; align-items: center; gap: 12px;
    margin: 12px 0 28px;
}
.divider-ornament span { color: var(--secondary); font-size: 1.2rem; }
.divider-ornament::before, .divider-ornament::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 40px 0;
    margin-bottom: 0;
}
.page-header h1, .page-header h2 { color: #fff; }
.scroll-top {
    position: fixed; bottom: 24px; right: 24px;
    width: 44px; height: 44px;
    background: var(--primary);
    color: #fff;
    border: none; border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center; justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-hover);
    transition: var(--transition);
    z-index: 999;
}
.scroll-top.show { display: flex; }
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* Loading overlay */
.loading-overlay {
    position: fixed; inset: 0;
    background: rgba(44,26,36,0.7);
    display: flex; align-items: center; justify-content: center;
    z-index: 9998;
    backdrop-filter: blur(4px);
}
.spinner-zulma {
    width: 48px; height: 48px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 768px) {
    .sidebar-zulma { transform: translateX(-260px); }
    .sidebar-zulma.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .auth-card { padding: 28px 20px; }
    .hero-stats { gap: 16px; }
}