/* FONTS */
@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Cinzel:wght@400;700&family=Dancing+Script:wght@700&family=Great+Vibes&family=Oswald:wght@400;700&family=Pacifico&family=Pinyon+Script&family=Playball&family=Poppins:wght@300;600&family=Reem+Kufi:wght@700&family=Sacramento&display=swap');

body { font-family: 'Poppins', sans-serif; background-color: #f8f9fa; }

/* Header & Nav */
.header-bg { 
    background: linear-gradient(135deg, #054c4c, #033333);
    color: white; padding: 30px 0; margin-bottom: 30px; border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 10px rgba(5, 76, 76, 0.2);
}

/* Filter Menu Scrollable */
.scroll-menu-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px; /* Ruang untuk scrollbar */
}
/* Sembunyikan scrollbar tapi boleh scroll */
.scroll-menu-wrapper::-webkit-scrollbar { height: 4px; }
.scroll-menu-wrapper::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

/* Gallery Card */
.card-template { 
    cursor: pointer; transition: all 0.2s; border: none; border-radius: 12px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); background: white;
}
.card-template:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.15); }
.card-template img { width: 100%; height: 220px; object-fit: cover; border-radius: 12px 12px 0 0; }

/* Admin */
#admin-panel { display: none; border: 1px dashed #198754; padding: 20px; border-radius: 12px; margin-bottom: 30px; background: #f1fff5; }

/* Canvas */
#canvas-wrapper {
    background-color: #2b2d30; padding: 15px; border-radius: 8px;
    display: flex; justify-content: center; align-items: center;
    min-height: 300px; overflow: auto;
}
#canvas-container {
    position: relative; width: fit-content; height: fit-content;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); margin: 0 auto;
}
#canvas-image { 
    display: block; width: auto; height: auto; 
    max-width: 100%; max-height: 65vh; object-fit: contain; 
}
#overlay-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.text-layer { position: absolute; width: 100%; text-align: center; left: 50%; top: 50%; transform: translate(-50%, -50%); text-shadow: 2px 2px 4px rgba(0,0,0,0.8); color: white; line-height: 1.2; transition: top 0.1s, left 0.1s; z-index: 10; }

/* Toolbar & Inputs */
.btn-toolbar-group { display: flex; background: white; border: 1px solid #ced4da; border-radius: 6px; overflow: hidden; }
.btn-tool { border: none; background: white; color: #495057; padding: 4px 10px; font-size: 14px; border-right: 1px solid #e9ecef; }
.btn-tool:last-child { border-right: none; }
.btn-tool.active { background: #054c4c; color: white; }
.form-range::-webkit-slider-thumb { background-color: #198754; }
.hide-scrollbar::-webkit-scrollbar { display: none; }

/* --- CUSTOM RANGE SLIDER (HIJAU & JELAS) --- */

/* 1. Label Kecil di atas bar */
.tiny-label {
    font-size: 10px;
    color: #198754; /* Hijau Teks */
    font-weight: bold;
    display: block;
    margin-bottom: 0px;
}

/* 2. Track (Laluan Bar) */
.form-range::-webkit-slider-runnable-track {
    background-color: #d1e7dd; /* Hijau Mint Cair */
    height: 6px;
    border-radius: 5px;
    border: 1px solid #a3cfbb;
}

/* 3. Thumb (Tombol Penunjuk) */
.form-range::-webkit-slider-thumb {
    background-color: #198754; /* Hijau Public Gold */
    border: 2px solid white;
    width: 18px;
    height: 18px;
    margin-top: -7px; /* Centerkan */
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* 4. Effect Active (Bila user tekan) */
.form-range:active::-webkit-slider-thumb {
    background-color: #0f5132; /* Hijau Gelap */
    transform: scale(1.2);
}