/* Reset Dasar */
/* --- STYLE KHUSUS LOGO (UPDATE) --- */

.main-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    /* Tambahkan sedikit padding agar tidak terlalu mepet atas */
    padding-top: 20px; 
}

.brand-logo {
    /* 1. PENGATURAN UKURAN */
    width: 130px; /* <-- Ubah angka ini jika masih kurang pas (misal: 60px atau 80px) */
    height: auto; /* Menjaga proporsi gambar */
    margin-bottom: 15px; /* Jarak antara logo dan teks judul */
    
    /* 2. PENGATURAN WARNA (Filter Mantra Hijau Neon #00ff88) */
    /* Kode panjang ini mengubah warna piksel gambar menjadi warna tema kita */
    filter: brightness(0) saturate(100%) invert(67%) sepia(54%) saturate(468%) hue-rotate(97deg) brightness(102%) contrast(101%);
    
    /* Efek halus saat kursor diarahkan */
    transition: all 0.3s ease;
}

.brand-logo:hover {
    /* Efek glowing saat di-hover */
    filter: brightness(0) saturate(100%) invert(67%) sepia(54%) saturate(468%) hue-rotate(97deg) brightness(102%) contrast(101%) drop-shadow(0 0 10px rgba(0, 255, 136, 0.8));
    transform: scale(1.05); /* Membesar sedikit */
}

.main-header h1 {
    margin-top: 0; /* Reset margin atas karena sudah ada jarak dari logo */
    font-size: 2.2rem; /* Sedikit mengecilkan font judul agar seimbang dengan logo */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #121212;
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    background-color: #1e1e1e;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

header h1 {
    color: #00ff88;
    margin-bottom: 10px;
}

header p {
    color: #aaaaaa;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

input[type="text"] {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #333;
    background-color: #2c2c2c;
    color: white;
    outline: none;
}

input[type="text"]:focus {
    border-color: #00ff88;
}

button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background-color: #00ff88;
    color: #121212;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background-color: #00cc6a;
}

/* Loading Spinner */
.hidden { display: none; }

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #00ff88;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 10px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Result Area */
#result {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.btn-save {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2196F3;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
}

.btn-save:hover { background-color: #1976D2; }

footer {
    margin-top: 30px;
    font-size: 0.8rem;
    color: #555;
}

/* --- TAMBAHAN UNTUK DASHBOARD (UNIX TOOLS) --- */

.dashboard-container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    text-align: center;
}

.main-header h1 {
    font-size: 2.5rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.highlight {
    color: #00ff88;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

/* Kartu Tools */
.tool-card {
    background-color: #1e1e1e;
    padding: 30px 20px;
    border-radius: 15px;
    text-decoration: none;
    color: #e0e0e0;
    transition: transform 0.3s, border 0.3s;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tool-card:hover:not(.disabled) {
    transform: translateY(-5px);
    border-color: #00ff88;
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.1);
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #00ff88;
}

.tool-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.tool-card p {
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.4;
}

/* Badge Status */
.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: #00ff88;
    color: #000;
    font-weight: bold;
}

.badge.coming-soon {
    background-color: #555;
    color: #fff;
}

/* Tampilan Menu Non-Aktif */
.tool-card.disabled {
    opacity: 0.6;
    cursor: default;
    border-style: dashed;
}

.main-footer {
    margin-top: 50px;
    border-top: 1px solid #333;
    padding-top: 20px;
    color: #555;
}

/* TOMBOL KEMBALI (Untuk Halaman Tools) */
.back-btn {
    display: inline-block;
    margin-bottom: 20px;
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
}
.back-btn:hover {
    color: #00ff88;
}

/* --- STYLE UNTUK METADATA REMOVER --- */

.upload-area {
    border: 2px dashed #444;
    border-radius: 15px;
    padding: 40px 20px;
    margin-bottom: 20px;
    transition: all 0.3s;
    background-color: #1a1a1a;
    cursor: pointer;
}

.upload-area:hover, .upload-area.dragover {
    border-color: #00ff88;
    background-color: rgba(0, 255, 136, 0.05);
}

.icon-upload {
    font-size: 3rem;
    color: #00ff88;
    margin-bottom: 15px;
}

.btn-select {
    padding: 10px 25px;
    background-color: #333;
    color: #fff;
    border: 1px solid #00ff88;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    transition: 0.3s;
}

.btn-select:hover {
    background-color: #00ff88;
    color: #000;
}

.result-box {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #333;
}

.img-preview {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid #444;
}

.info-compare {
    display: flex;
    justify-content: space-between;
    background: #252525;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.val.success {
    color: #00ff88;
    font-weight: bold;
}

/* --- STYLE UNTUK CAPTION GENERATOR --- */

.caption-form {
    background-color: #1e1e1e;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #333;
    margin-bottom: 30px;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #00ff88;
    font-weight: bold;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    background-color: #2c2c2c;
    border: 1px solid #444;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus, .form-group select:focus {
    border-color: #00ff88;
}

.btn-generate {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #00ff88, #00cc6a);
    border: none;
    border-radius: 8px;
    color: #000;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-generate:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

.caption-box {
    background-color: #252525;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #00ff88;
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.6;
    min-height: 100px;
    color: #e0e0e0;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.btn-copy, .btn-refresh {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.btn-copy {
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
}

.btn-copy:hover { background-color: #444; }

.btn-refresh {
    background-color: transparent;
    border: 1px solid #00ff88;
    color: #00ff88;
}

.btn-refresh:hover { background-color: rgba(0, 255, 136, 0.1); }

/* --- PERBAIKAN SPASI CAPTION --- */

#captionText {
    /* Ini Mantra agar Enter/Baris Baru terbaca */
    white-space: pre-wrap; 
    word-wrap: break-word;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
}

.caption-box {
    /* Memastikan kotak cukup luas */
    min-height: 120px; 
    border-left: 4px solid #00ff88;
    background: #252525;
}

/* --- STYLE UNTUK HASHTAG RISET --- */

.input-with-btn {
    display: flex;
    gap: 10px;
}

.btn-search {
    padding: 0 25px;
    background-color: #333;
    border: 1px solid #00ff88;
    color: #00ff88;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.btn-search:hover {
    background-color: #00ff88;
    color: #000;
}

.hashtag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.hashtag-card {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.card-header h4 {
    font-size: 1rem;
    margin: 0;
    color: #fff;
}

.badge-mini {
    font-size: 0.6rem;
    background: #ff4757;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
}

.hashtag-card textarea {
    background: #111;
    border: 1px solid #333;
    color: #aaa;
    width: 100%;
    height: 100px;
    resize: none;
    font-size: 0.8rem;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    outline: none;
}

.btn-copy-mini {
    background: #333;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    cursor: pointer;
    align-self: flex-end; /* Tombol mojok kanan */
    transition: 0.3s;
}

.btn-copy-mini:hover {
    background: #555;
}

/* --- STYLE TOGGLE SWITCH (POST/STORY) --- */

.mode-switch-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.mode-switch {
    position: relative;
    display: flex;
    background-color: #2c2c2c;
    border-radius: 30px;
    padding: 5px;
    border: 1px solid #444;
    overflow: hidden;
}

.mode-switch input {
    display: none;
}

.mode-switch label {
    flex: 1;
    padding: 10px 25px;
    cursor: pointer;
    z-index: 2;
    color: #aaa;
    font-weight: bold;
    font-size: 0.9rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Efek saat dipilih */
.mode-switch input:checked + label {
    color: #000;
}

/* Kotak Hijau yang bergerak */
.mode-switch .slider {
    position: absolute;
    top: 5px;
    left: 5px;
    bottom: 5px;
    width: 50%; /* Setengah lebar container */
    background-color: #00ff88;
    border-radius: 25px;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1;
}

/* Logika pergerakan slider */
#modePost:checked ~ .slider {
    transform: translateX(0%);
}

#modeStory:checked ~ .slider {
    transform: translateX(95%); /* Geser ke kanan */
}

/* --- TAMBAHAN STYLE TOMBOL DISABLED --- */
.mode-switch label.disabled-option {
    cursor: not-allowed;
    opacity: 0.5;
    color: #555;
}

.mode-switch label.disabled-option small {
    font-size: 0.7em;
    background: #444;
    padding: 2px 5px;
    border-radius: 4px;
    margin-left: 5px;
    color: #aaa;
}

/* --- STYLE METADATA VIEWER --- */

.viewer-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    text-align: left;
}

.viewer-left {
    flex: 1;
    min-width: 300px;
}

.viewer-left img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #444;
}

.basic-info {
    margin-top: 15px;
    padding: 15px;
    background: #252525;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #aaa;
}

.viewer-right {
    flex: 1.5;
    min-width: 300px;
}

.viewer-right h3 {
    border-bottom: 2px solid #00ff88;
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: inline-block;
}

/* Tabel EXIF */
.exif-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.exif-table th, .exif-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #333;
}

.exif-table th {
    text-align: left;
    color: #00ff88;
    width: 40%;
}

.exif-table tr:hover {
    background-color: #2c2c2c;
}

.btn-maps {
    display: block;
    text-align: center;
    background: #2196F3;
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-maps:hover {
    background: #1976D2;
}

/* --- STYLE TJ LIVE TICKER (Modern Style) --- */

.ticker-wrap {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 30px;
    background-color: #0c0c0c;
    border: 1px solid #333;
    border-radius: 50px; /* Bentuk kapsul modern */
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 45px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}

/* Bagian Judul "TRENDING" di kiri */
.ticker-heading {
    background-color: #1a1a1a;
    color: #00ff88;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 2;
    border-right: 1px solid #333;
    white-space: nowrap;
}

/* Titik Merah Kedip (Live Effect) */
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #ff4757;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulseRed 1.5s infinite;
}

@keyframes pulseRed {
    0% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(255, 71, 87, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}

/* Container Teks Berjalan */
.ticker-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    /* Masking gradasi agar teks hilang halus di kiri kanan */
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.ticker-move {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%; /* Mulai dari luar layar kanan */
    animation: tickerAnim 30s linear infinite; /* Kecepatan animasi */
}

/* Efek Hover: PAUSE agar bisa diklik */
.ticker-wrap:hover .ticker-move {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-block;
    padding: 0 20px;
    color: #ddd;
    font-size: 0.95rem;
    position: relative;
}

/* Style Link Berita */
.ticker-item a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.ticker-item a:hover {
    color: #00ff88;
    text-decoration: underline;
}

/* Pemisah antar berita */
.ticker-item::after {
    content: "•";
    color: #555;
    margin-left: 20px;
}

@keyframes tickerAnim {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Responsif HP: Kecilkan font */
@media (max-width: 600px) {
    .ticker-heading { padding: 0 10px; font-size: 0.8rem; }
    .ticker-item { font-size: 0.85rem; }
}

/* Pastikan animasi ini ada */
@keyframes tickerAnim {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); } 
}

.ticker-move {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%; /* Mulai dari kanan layar */
    animation: tickerAnim 40s linear infinite; /* Kecepatan */
}

.ticker-move:hover {
    animation-play-state: paused; /* Berhenti kalau disorot mouse */
}

/* --- STYLE WATERMARK MAKER --- */

.watermark-workspace {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.wm-controls {
    flex: 1;
    min-width: 300px;
    background: #1e1e1e;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #333;
}

.wm-preview {
    flex: 2; /* Preview lebih lebar */
    min-width: 300px;
    text-align: center;
}

.input-section {
    margin-bottom: 20px;
    text-align: left;
}

.input-section label {
    display: block;
    color: #00ff88;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 0.9rem;
}

.file-input-custom {
    width: 100%;
    background: #2c2c2c;
    color: #fff;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #444;
}

/* Position Grid (3x3) */
.position-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    width: 150px; /* Ukuran kotak kontrol */
}

.pos-box {
    background: #333;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid #444;
    transition: 0.2s;
    font-weight: bold;
    color: #888;
}

.pos-box:hover {
    background: #444;
    color: #fff;
}

.pos-box.active {
    background: #00ff88;
    color: #000;
    border-color: #00ff88;
}

/* Slider */
.slider-custom {
    width: 100%;
    height: 6px;
    background: #444;
    outline: none;
    border-radius: 3px;
    appearance: none; /* CSS Standard */
    -webkit-appearance: none;
}

.slider-custom::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #00ff88;
    border-radius: 50%;
    cursor: pointer;
}

/* Canvas Wrapper */
.canvas-wrapper {
    background: #111;
    border: 2px dashed #333;
    border-radius: 10px;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

#wmCanvas {
    max-width: 100%;
    max-height: 500px;
    display: none; /* Sembunyikan awal */
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* =========================================
   STYLE KHUSUS HALAMAN AUTO CAROUSEL
   ========================================= */

/* Container Langkah (Step 1 & Step 2) */
.carousel-step {
    background: #1e1e1e;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #333;
    margin-bottom: 25px;
    text-align: left; /* Agar teks instruksi rata kiri */
}

.carousel-step h3 {
    border-bottom: 2px solid #00ff88;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #fff;
    display: inline-block;
}

/* --- GRID PILIHAN TEMPLATE --- */
.template-grid {
    display: grid;
    /* Membuat kolom otomatis menyesuaikan layar (Responsive) */
    /* Minimal lebar kartu 130px, kalau layar lebar dia berjejer ke samping */
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
}

/* Kartu Template */
.template-card {
    background: #111;
    border: 2px solid #444;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    display: block; /* Penting supaya klik area luas */
}

/* Sembunyikan radio button asli */
.template-card input[type="radio"] {
    display: none;
}

/* Efek Hover */
.template-card:hover {
    border-color: #888;
    transform: translateY(-3px);
}

/* Efek Saat Dipilih (Active) */
.template-card:has(input:checked) {
    border-color: #00ff88;
    background-color: rgba(0, 255, 136, 0.05); /* Hijau transparan */
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.15);
}

.template-card h4 {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #ddd;
    font-weight: normal;
}

/* --- KOTAK PREVIEW MINIATUR --- */
.preview-box {
    width: 100%;
    aspect-ratio: 1 / 1; /* Memaksa kotak jadi persegi */
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

/* 1. Style Minimalist */
.minimal-preview {
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.minimal-preview .mini-img {
    width: 70%; height: 70%; background: #ccc;
}
.minimal-preview span {
    color: #000; font-size: 10px; margin-top: 3px; font-weight: bold;
}

/* 2. Style Split */
.split-preview { background: #111; display: flex; flex-direction: column; }
.mini-img-top { width: 100%; height: 75%; background: #ccc; }
.mini-text-bottom {
    width: 100%; height: 25%; background: #00ff88;
    color: #000; font-size: 8px; display: flex;
    align-items: center; justify-content: center; font-weight: bold;
}

/* 3. Style Cinematic */
.cinematic-preview { background: #ccc; position: relative; }
.mini-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff; font-size: 8px; display: flex;
    align-items: flex-end; justify-content: center; padding-bottom: 5px;
}

/* 4. Style Journal (BARU - Ini yang mungkin bikin berantakan sebelumnya) */
.journal-preview {
    background: #f4f1ea;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.mini-journal-header {
    font-size: 6px; color: #222; margin-bottom: 2px; letter-spacing: 1px; font-weight: bold;
}
.mini-journal-photo {
    width: 60%; height: 50%; background: #ccc;
    border: 1px solid #222; box-shadow: 2px 2px 3px rgba(0,0,0,0.1);
}
.mini-journal-caption {
    font-size: 6px; font-family: serif; font-style: italic; color: #222; margin-top: 3px;
}

/* --- HASIL GENERATE (GRID 10 FOTO) --- */
.carousel-results {
    display: grid;
    /* Grid responsif untuk hasil gambar */
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.slide-item {
    background: #2c2c2c;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #444;
    transition: transform 0.2s;
}

.slide-item:hover {
    border-color: #00ff88;
    transform: translateY(-2px);
}

.slide-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.btn-dl-slide {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 8px 0;
    background: #333;
    color: #fff;
    text-decoration: none;
    font-size: 0.75rem;
    border-radius: 4px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-dl-slide:hover {
    background: #00ff88;
    color: #000;
}

/* --- STYLE UNTUK PILIHAN UKURAN (RATIO) --- */
.ratio-grid {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ratio-card {
    background: #111;
    border: 2px solid #444;
    border-radius: 10px;
    padding: 10px 20px;
    cursor: pointer;
    text-align: center;
    flex: 1;
    min-width: 80px;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ratio-card:hover { border-color: #888; }
.ratio-card:has(input:checked) { border-color: #00ff88; background: rgba(0,255,136,0.05); }
.ratio-card input { display: none; }

.ratio-box {
    background: #555;
    width: 30px;
    border: 1px solid #fff;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: #fff;
    border-radius: 2px;
}

.ratio-card span { font-size: 0.8rem; color: #ddd; }

/* --- STYLE SOSMED FOOTER --- */

.main-footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #555;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #222;
    color: #fff;
    border-radius: 50%; /* Membuat lingkaran */
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

/* Efek Hover (Ganti warna sesuai brand masing-masing atau tema) */
.social-links a:hover {
    background-color: #00ff88; /* Warna Tema Hijau Neon */
    color: #000;
    transform: translateY(-5px); /* Efek naik dikit */
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.4);
    border-color: #00ff88;
}

/* --- STYLE HALAMAN ACKNOWLEDGMENT --- */

.ack-content {
    background: #1e1e1e;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #333;
    margin-top: 20px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Efek kutipan */
.quote-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0;
    font-style: italic;
    font-family: 'Georgia', serif; /* Font Serif agar lebih puitis */
}

.divider {
    width: 50px;
    height: 2px;
    background-color: #00ff88;
    margin: 30px auto;
}

.signature {
    font-weight: bold;
    color: #00ff88;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* Tombol Simple di Dashboard */
.simple-ack-btn {
    display: inline-block;
    padding: 8px 20px;
    margin-bottom: 20px;
    color: #aaa;
    border: 1px solid #333;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    transition: 0.3s;
    background-color: rgba(255, 255, 255, 0.05);
}

.simple-ack-btn:hover {
    border-color: #ff4757; /* Merah hati saat hover */
    color: #fff;
    background-color: rgba(255, 71, 87, 0.1);
}

/* --- FIX: MOBILE FILE PICKER --- */
/* Kode ini membuat input file "tersembunyi" tetap terbaca oleh browser HP */
#fileInput, #fileInputViewer {
    display: block !important; /* Memaksa elemen aktif */
    position: absolute;        /* Agar tidak menggeser tampilan */
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    opacity: 0;                /* Transparan (tidak terlihat mata) */
    z-index: -1;
    pointer-events: none;
}

/* ============================================================
   MOBILE RESPONSIVE FIXES (TAMBAHKAN DI BAGIAN BAWAH FILE)
   Agar tampilan rapi & tombol pas di layar HP
   ============================================================ */

@media (max-width: 768px) {

    /* 1. CONTAINER & LAYOUT UMUM */
    .container, .dashboard-container {
        padding: 15px; /* Kurangi padding agar tidak memakan tempat */
        width: 95%;    /* Maksimalkan lebar layar */
        margin: 10px auto;
    }

    .main-header h1 {
        font-size: 1.4rem; /* Kecilkan judul utama */
    }

    .brand-logo {
        width: 100px; /* Logo sedikit lebih kecil */
    }

    /* 2. GRID DASHBOARD (MENU UTAMA) */
    .tools-grid {
        grid-template-columns: 1fr; /* Satu kolom memanjang ke bawah */
        gap: 15px;
    }

    .tool-card {
        padding: 20px; /* Tombol menu lebih compact */
        flex-direction: row; /* Icon di kiri, teks di kanan (Opsional, lebih rapi) */
        align-items: center;
        text-align: left;
        gap: 15px;
    }

    .tool-card .icon-box {
        font-size: 2rem;
        margin-bottom: 0;
        width: 50px;
        text-align: center;
    }

    .tool-card h3 {
        margin-bottom: 5px;
        font-size: 1.1rem;
    }

    /* 3. INPUT & TOMBOL (GLOBAL) */
    .input-group {
        flex-direction: column; /* Input & tombol download jadi atas-bawah */
    }

    .input-group button, 
    .btn-search,
    .btn-generate,
    .btn-select,
    .btn-save,
    .btn-copy,
    .btn-refresh {
        width: 100%; /* Tombol memenuhi lebar layar (Mudah ditekan jempol) */
        padding: 14px; /* Area sentuh lebih besar */
        font-size: 1rem;
        margin-top: 10px; /* Beri jarak antar elemen */
    }

    /* Khusus Input dengan Tombol di samping (misal: Hashtag) */
    .input-with-btn {
        flex-direction: column;
    }
    
    .input-with-btn input {
        border-radius: 8px; /* Kembalikan radius sudut */
        width: 100%;
    }

    .input-with-btn span {
        /* Pengecualian untuk simbol '@' di Roaster agar tetap di samping */
        display: inline-flex; 
    }
    
    /* Perbaikan Khusus Form Username Instagram (@) agar tidak pecah */
    .caption-form .input-with-btn {
        flex-direction: row; /* Tetap sejajar */
    }
    .caption-form .input-with-btn span {
        padding: 10px 15px;
    }

    /* 4. HALAMAN DOWNLOADER (Platform Selector) */
    .platform-selector {
        flex-wrap: wrap; /* Agar tombol turun jika layar sempit */
        gap: 10px;
    }

    .platform-btn {
        flex: 1; /* Membagi rata lebar tombol */
        min-width: 45%; /* Minimal lebar agar teks tidak hancur */
        justify-content: center;
        font-size: 0.85rem;
    }

    /* 5. HALAMAN ROASTER */
    .roast-options {
        grid-template-columns: 1fr; /* Dropdown jadi atas-bawah (1 kolom) */
        gap: 10px;
    }

    /* 6. HALAMAN WATERMARK & VIEWER */
    .watermark-workspace, .viewer-layout {
        flex-direction: column; /* Susun panel atas-bawah */
    }

    .wm-controls, .wm-preview, .viewer-left, .viewer-right {
        min-width: 100%; /* Penuhi lebar layar */
        border: none;
        padding: 0;
    }

    .canvas-wrapper {
        min-height: 250px; /* Sesuaikan tinggi preview */
    }

    /* 7. CAROUSEL & RATIO GRID */
    .ratio-grid {
        gap: 10px;
    }
    
    .ratio-card {
        padding: 8px;
        min-width: 30%; /* Agar muat 3 berjejer atau turun otomatis */
    }

    .template-grid {
        grid-template-columns: repeat(2, 1fr); /* Maksimal 2 kolom template di HP */
    }

    /* 8. TABEL METADATA (VIEWER) */
    .exif-table th, .exif-table td {
        padding: 8px;
        font-size: 0.8rem; /* Kecilkan font tabel agar muat */
        word-break: break-word; /* Agar teks panjang turun ke bawah */
    }
}

/* --- FIX TAMPILAN MOBILE (Paste di baris paling bawah style.css) --- */
@media (max-width: 768px) {
    .tool-card {
        /* 1. Memberi ruang kosong di kanan agar teks tidak menabrak badge */
        padding-right: 70px !important;

        /* 2. Merapikan Layout: Menggunakan Grid agar Teks Judul & Deskripsi 
           tersusun vertikal di sebelah kanan Icon, bukan memanjang ke samping */
        display: grid !important;
        grid-template-columns: auto 1fr; /* Kolom 1: Icon (auto), Kolom 2: Teks (sisa ruang) */
        column-gap: 15px;
        align-items: center;
    }

    /* Mengatur posisi Icon agar rapi di sebelah kiri */
    .tool-card .icon-box {
        grid-row: 1 / span 2; /* Icon mengambil tinggi 2 baris */
        margin-bottom: 0 !important;
        width: 50px;
        text-align: center;
    }

    /* Merapikan Judul */
    .tool-card h3 {
        grid-column: 2;
        margin-bottom: 2px;
        font-size: 1.1rem;
        line-height: 1.2;
    }

    /* Merapikan Deskripsi */
    .tool-card p {
        grid-column: 2;
        margin-bottom: 0;
        font-size: 0.85rem;
        line-height: 1.3;
    }
}

/* --- STYLE POP-UP NOTICE --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Latar gelap transparan */
    display: none; /* Default sembunyi, dimunculkan JS */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px); /* Efek blur estetik */
    padding: 20px;
}

.modal-content {
    background: #1e1e1e;
    border: 1px solid #00ff88;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.2);
    animation: popUpAnim 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}

.modal-content h2 {
    color: #00ff88;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.modal-content p {
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.btn-understand {
    background: #00ff88;
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
}

.btn-understand:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
}

/* Animasi Masuk */
@keyframes popUpAnim {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* --- STYLE TOMBOL DONASI --- */
.donate-section {
    text-align: center;
    margin: 40px 0 20px;
    padding: 20px;
    background: rgba(0, 174, 214, 0.1); /* Latar biru tipis */
    border-radius: 15px;
    border: 1px dashed #00AED6;
}

.donate-section p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.btn-donate {
    background-color: #00AED6; /* Warna GoPay */
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 174, 214, 0.4);
}

.btn-donate:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 174, 214, 0.6);
    background-color: #009ac0;
}

/* Fix untuk tampilan mobile agar tidak terlalu lebar */
@media (max-width: 600px) {
    .donate-section {
        margin: 20px 0;
    }
    .btn-donate {
        width: 100%; /* Full width di HP */
    }
}

/* --- PERBAIKAN LAYOUT FOOTER & TOMBOL --- */

/* 1. Wrapper Tombol: Pastikan lebar penuh agar bisa di-tengah */
.simple-donate-wrapper {
    width: 100%;
    display: flex;             /* Gunakan Flexbox */
    justify-content: center;   /* Paksa posisi ke TENGAH horizontal */
    align-items: center;
    margin-top: 40px;          /* Jarak dari kartu tools di atasnya */
    margin-bottom: 20px;       /* Jarak ke footer di bawahnya */
    clear: both;               /* Mencegah error layout floating */
}

/* 2. Gaya Tombol: Kecil, Simple, Estetik */
.btn-donate-mini {
    background-color: transparent;
    color: #aaa;
    border: 1px solid #444;
    padding: 8px 24px;         /* Ukuran tombol pas (tidak terlalu besar) */
    border-radius: 50px;       /* Bentuk kapsul */
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-donate-mini i {
    color: #00AED6; /* Ikon Kopi Biru GoPay */
}

.btn-donate-mini:hover {
    border-color: #00AED6;
    color: #fff;
    background-color: rgba(0, 174, 214, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 174, 214, 0.2);
}

/* 3. Footer: Pastikan ada garis pemisah dan rata tengah */
.main-footer {
    border-top: 1px solid #333;
    padding-top: 30px;
    margin-top: 0;             /* Reset margin karena sudah diatur wrapper tombol */
    display: flex;
    flex-direction: column;
    align-items: center;       /* Rata Tengah isi footer */
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;   /* Ikon sosmed rata tengah */
    margin-bottom: 15px;
}