@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* =====================================================================
   1. RESET & BASE STYLES
   ===================================================================== */
*{
    margin:0;
    padding:0;
    box-shadow: none;
    box-sizing:border-box;
}

body{
    font-family:'Inter', sans-serif;
    background:#f5f7fb;
    color:#333;
    line-height:1.6;
}

a{
    text-decoration:none;
}

.container{
    width:95%;
    max-width:1200px;
    margin:auto;
}

/* =====================================================================
   2. HEADER & NAVIGATION
   ===================================================================== */
header, .site-header {
    background:#1e40af;
    color:#fff;
    padding:18px 0;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo{
    font-size:28px;
    font-weight:800;
}

.nav-menu a {
    color: rgba(255,255,255,0.85);
    margin-left: 20px;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: #f59e0b;
}

.nav-btn-special {
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px !important;
}

.nav-btn-special:hover {
    background: #f59e0b !important;
    color: #111827 !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* =====================================================================
   3. HERO CONTENT SECTION
   ===================================================================== */
.hero{
    text-align:center;
    padding:60px 20px;
}

.hero h1{
    font-size:42px;
    font-weight:800;
    color:#111827;
    margin-bottom:15px;
}

.hero p{
    max-width:760px;
    margin:auto;
    font-size:18px;
    color:#666;
}

/* =====================================================================
   4. HOMEPAGE GRID & CARDS
   ===================================================================== */
.search-box{
    margin-top:35px;
    text-align: center;
}

.search-box input{
    width:100%;
    max-width:520px;
    padding:16px 20px;
    border:1px solid #d6d9df;
    border-radius:12px;
    font-size:16px;
    transition:.25s;
}

.search-box input:focus{
    outline:none;
    border-color:#2563eb;
    box-shadow:0 0 0 4px rgba(37,99,235,.12);
}

.category-block{
    margin-top:45px;
}

.section-title{
    font-size:28px;
    font-weight:700;
    color:#111827;
    margin-bottom:22px;
}

.tools-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
    gap:22px;
    margin-bottom:45px;
}

.tool-card{
    background:#fff;
    padding:22px;
    border-radius:14px;
    color:#333;
    box-shadow:0 3px 12px rgba(0,0,0,.06);
    transition:.25s;
    border:1px solid #ececec;
}

.tool-card:hover{
    transform:translateY(-6px);
    box-shadow:0 12px 28px rgba(0,0,0,.12);
}

.tool-card h3{
    color:#1e40af;
    font-size:20px;
    margin-bottom:10px;
    font-weight:700;
}

.tool-card p{
    color:#666;
    font-size:15px;
    line-height:1.7;
}

/* =====================================================================
   5. BOKS UTAMA TOOLS (STRUKTUR STANDARD FORM LAYOUT)
   ===================================================================== */
.tool-box {
    background: #ffffff;
    padding: 35px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    margin-bottom: 40px;
}

.tool-box h2, .tool-box h3 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 18px;
    text-align: left;
}

.tool-box label {
    display: block !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    margin-bottom: 8px !important;
    margin-top: 15px !important;
    text-align: left !important;
}

/* Gaya Input Text & File Standar */
.tool-box input[type="text"], 
.tool-box input[type="file"],
.tool-box textarea {
    display: block !important;
    width: 100% !important;
    padding: 14px 18px !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: 10px !important;
    font-size: 15.5px !important;
    outline: none !important;
    transition: border-color 0.2s !important;
    margin-bottom: 15px !important;
    color: #1e293b !important;
    background-color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
}

.tool-box input[type="text"]:focus, 
.tool-box textarea:focus {
    border-color: #1e40af !important;
}

/* Layout Kolom Kiri Kanan */
.qr-layout {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
    align-items: start !important;
}

.qr-form, .qr-result {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.qr-result {
    background: #f8fafc !important;
    padding: 25px !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    text-align: left !important;
}

/* =====================================================================
   6. IDENTITAS TOMBOL AKSI UTAMA (GLOBAL OVERRIDE)
   ===================================================================== */
.btn, 
.tool-box .btn, 
.qr-form .btn {
    display: block !important;
    width: 100% !important;
    padding: 14px 20px !important;
    background: #1e40af !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    font-family: 'Inter', sans-serif !important;
    cursor: pointer !important;
    transition: background 0.2s ease-in-out, transform 0.1s ease !important;
    text-align: center !important;
    margin-top: 15px !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.btn:hover, 
.tool-box .btn:hover, 
.qr-form .btn:hover {
    background: #1d4ed8 !important;
}

.btn:active, 
.tool-box .btn:active {
    transform: scale(0.98) !important;
}

/* =====================================================================
   7. FIXING DOUBLE RANGE SLIDER & TIME BOX (KHUSUS VIDEO TRIMMER)
   ===================================================================== */
.trim-slider-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 40px !important;
    margin-top: 10px !important;
    margin-bottom: 15px !important;
}

.trim-slider-container {
    position: absolute !important;
    width: 100% !important;
    background: #e2e8f0 !important;
    height: 8px !important;
    border-radius: 4px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
}

.trim-slider-range {
    position: absolute !important;
    height: 100% !important;
    background: #1e40af !important;
    border-radius: 4px !important;
    left: 0% !important;
    right: 0% !important;
}

/* Menjinakkan paksa input type range agar tidak melebar/berantakan */
.trim-slider-wrapper input[type="range"].trim-input-range {
    position: absolute !important;
    width: 100% !important;
    height: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    pointer-events: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    outline: none !important;
    margin: 0 !important;
    border: none !important;
    padding: 0 !important;
}

.trim-slider-wrapper input[type="range"].trim-input-range::-webkit-slider-thumb {
    pointer-events: auto !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    background: #1e40af !important;
    border: 2px solid #ffffff !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
}

.trim-slider-wrapper input[type="range"].trim-input-range::-moz-range-thumb {
    pointer-events: auto !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    background: #1e40af !important;
    border: 2px solid #ffffff !important;
    cursor: pointer !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
}

/* FIX DEFINISI TEKS RENGGANG VERTIKAL DI TRIMMER */
.time-indicator-box {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    margin-top: 20px !important;
    width: 100% !important;
    background: #f8fafc !important;
    padding: 12px 15px !important;
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
}

.time-block {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    flex: 1 !important;
    text-align: center !important;
}

.time-block span:first-child {
    font-size: 11px !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    font-weight: 700 !important;
}

/* =====================================================================
   8. ELEMEN KHUSUS LAINNYA & CARDS RENDER
   ===================================================================== */
.result-dl-container {
    margin-top: 35px;
    border-top: 2px solid #f1f5f9;
    padding-top: 30px;
}

.video-preview-frame {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #000000;
    margin: 15px auto;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.actions-grid-dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.btn-action-dl {
    display: block;
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s;
}

.category-title {
    font-size: 13px !important;
    font-weight: bold !important;
    color: #475569 !important;
    text-transform: uppercase !important;
    margin: 20px 0 10px 0 !important;
    letter-spacing: 0.05em !important;
    border-left: 3px solid #8b5cf6 !important;
    padding-left: 8px !important;
}

.title-item, .username-item {
    background: #ffffff !important;
    padding: 12px 15px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    margin-bottom: 8px !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    transition: all 0.2s ease !important;
}

.username-item {
    font-family: monospace !important;
    font-size: 15px !important;
}

.title-item:hover, .username-item:hover {
    border-color: #8b5cf6 !important;
    background: #f5f3ff !important;
    transform: translateY(-1px) !important;
}

.copy-badge {
    font-size: 11px !important;
    color: #8b5cf6 !important;
    background: #f5f3ff !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    white-space: nowrap !important;
    margin-left: 10px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: normal !important;
}

.alert-danger-box {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
}

/* =====================================================================
   9. DEEP SEO ARTICLE AREA
   ===================================================================== */
.article{
    background:#fff;
    padding:35px;
    border-radius:15px;
    margin:50px 0;
    box-shadow:0 3px 12px rgba(0,0,0,.05);
    text-align: left;
}

.article h2{
    margin-bottom:15px;
    margin-top:30px;
    font-size:28px;
    color:#111827;
}

.article h2:first-child{
    margin-top:0;
}

.article p{
    margin-bottom:18px;
    color:#555;
    font-size:16px;
}

.article ul, .article ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.article li{
    margin-bottom:10px;
    color: #555;
}

/* =====================================================================
   10. SITE FOOTER SECTION
   ===================================================================== */
footer, .site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 60px 0 30px;
    margin-top: 80px;
    border-top: 4px solid #1e40af;
    text-align: left;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.site-footer h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-col-about p {
    font-size: 14.5px;
    line-height: 1.7;
    max-width: 400px;
    color: #94a3b8;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer ul li {
    margin-bottom: 12px;
}

.site-footer ul li a {
    color: #94a3b8;
    font-size: 14.5px;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.site-footer ul li a:hover {
    color: #f59e0b;
    padding-left: 4px;
}

.footer-divider {
    border: 0;
    border-top: 1px solid #334155;
    margin: 40px 0 25px;
}

.copyright {
    text-align: center;
    font-size: 13.5px;
    color: #64748b;
}

/* =====================================================================
   11. RESPONSIVE MEDIA QUERIES
   ===================================================================== */
@media(max-width: 900px) {
    .qr-layout {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    .actions-grid-dl {
        grid-template-columns: 1fr;
    }
}

@media(max-width:768px){
    .header-wrap {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 0 15px !important;
    }

    .logo {
        font-size: 24px;
        text-align: left !important;
    }

    .menu-toggle {
        display: block !important;
        padding: 5px 10px;
        margin-left: auto;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #1e40af;
        padding: 20px;
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        margin: 10px 0;
        font-size: 16px;
        margin-left: 0;
    }

    .hero{
        padding:45px 15px;
    }

    .hero h1{
        font-size:30px;
    }

    .hero p{
        font-size:16px;
    }

    .section-title{
        font-size:24px;
    }

    .tools-grid{
        grid-template-columns:1fr;
    }

    .tool-card h3{
        font-size:18px;
    }

    .tool-box {
        padding: 20px;
    }

    .article{
        padding:25px;
    }

    .article h2{
        font-size:24px;
    }

    footer, .site-footer {
        padding: 40px 0 20px;
        margin-top: 50px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-col-about p {
        max-width: 100%;
    }

    .site-footer h3 {
        margin-bottom: 12px;
    }

    .footer-divider {
        margin: 30px 0 20px;
    }
}