/* ============================================
   RAZ JPG to PDF Converter - Stylesheet
   Versi: 1.0.0
   Tanggal: 2026-03-07
   Deskripsi: Stylesheet konversi JPG ke PDF
              Mengikuti template RAZ Creative Studio (raz.my.id)
   Dibuat oleh: RAZ Creative Studio
   ============================================ */

/* --- Import Font (sama dengan raz.my.id) --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

/* --- Design Tokens mengikuti template RAZ --- */
:root {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --accent-gold: #FFD700;
    --accent-gold-light: #ffeb3b;
    --accent-gold-dark: #e6c500;
    --accent-gradient: linear-gradient(135deg, #FFD700 0%, #FFFACD 50%, #FFD700 100%);
    --text-primary: #f0f0f0;
    --text-secondary: #aaaaaa;
    --text-muted: #666666;
    --border-color: rgba(255, 215, 0, 0.15);
    --border-glow: rgba(255, 215, 0, 0.35);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 25px rgba(255, 215, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- Background animasi halus --- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at 20% 0%, rgba(200, 168, 78, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(200, 168, 78, 0.04) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

/* --- Header & Navigation (mengikuti template raz.my.id) --- */
.header {
    background-color: var(--bg-primary);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--bg-secondary);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: transparent;
}

.logo-image {
    max-width: 250px;
    height: 67px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-list {
    list-style: none;
    display: flex;
}

.nav-list li {
    margin-left: 30px;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent-gold);
}

.cta-button {
    background-color: var(--accent-gold);
    color: var(--bg-primary) !important;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 600;
}

.cta-button:hover {
    background-color: var(--accent-gold-dark);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.raz-btn--text {
    background: transparent;
    padding: 0;
    font-size: 13px;
    color: var(--accent-gold);
    border-bottom: 1px dashed var(--accent-gold);
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.raz-btn--text:hover {
    color: var(--accent-gold-light);
    border-bottom-style: solid;
}

.nav-toggle .gold-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--accent-gold);
    margin: 5px 0;
    transition: transform 0.3s;
}

/* --- Hero Section --- */
.raz-hero {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 60px 20px 30px;
}

.raz-hero__badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    padding: 6px 16px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
}

.raz-hero__title {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.2;
}

.raz-hero__title span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.raz-hero__subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Container Utama --- */
.raz-container {
    position: relative;
    z-index: 10;
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

/* --- Dropzone Upload --- */
.raz-dropzone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-xl);
    padding: 50px 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
}

.raz-dropzone:hover,
.raz-dropzone.drag-over {
    border-color: var(--accent-gold);
    background: rgba(200, 168, 78, 0.05);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.raz-dropzone__icon {
    font-size: 52px;
    margin-bottom: 14px;
    display: block;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.raz-dropzone__text {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.raz-dropzone__hint {
    font-size: 13px;
    color: var(--text-muted);
}

.raz-dropzone__hint strong {
    color: var(--accent-gold);
    cursor: pointer;
}

.raz-dropzone input[type="file"] {
    display: none;
}

/* --- Settings Bar --- */
.raz-settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.raz-settings__group {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    transition: var(--transition);
}

.raz-settings__group:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.raz-settings__label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
}

.raz-settings__select,
.raz-settings__input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    outline: none;
    transition: var(--transition);
}

.raz-settings__select:focus,
.raz-settings__input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(200, 168, 78, 0.12);
}

.raz-settings__select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Row untuk input custom dimensi (lebar & tinggi) */
.raz-settings__custom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
}

/* --- Preview Grid --- */
.raz-preview {
    margin: 24px 0;
}

.raz-preview__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.raz-preview__header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.raz-preview__header-actions {
    display: flex;
    gap: 15px;
}

.raz-preview__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.raz-preview__count {
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg-card);
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.raz-preview__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 12px;
}

.raz-preview__item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: grab;
    transition: var(--transition);
    background: var(--bg-card);
}

.raz-preview__item:hover {
    border-color: var(--accent-gold);
    transform: scale(1.03);
    box-shadow: var(--shadow-glow);
}

.raz-preview__item.dragging {
    opacity: 0.4;
    transform: scale(0.95);
    border-style: dashed;
    border-width: 2px;
}

.raz-preview__item.drag-over {
    border: 2px solid var(--accent-gold);
    box-shadow: 0 0 15px var(--border-glow);
}

.raz-preview__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.raz-preview__item-number {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--accent-gradient);
    color: #1a1a2e;
    font-size: 11px;
    font-weight: 700;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.raz-preview__item-actions {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transition: var(--transition);
    z-index: 5;
}

.raz-preview__item:hover .raz-preview__item-actions {
    opacity: 1;
}

.raz-preview__btn-action {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    transition: var(--transition);
}

.raz-preview__btn-action:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.raz-preview__btn-action--danger:hover {
    background: #dc3c3c !important;
    color: #fff !important;
}

.raz-preview__item-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    font-size: 10px;
    color: #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

/* --- Tombol Aksi --- */
.raz-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 28px 0;
    flex-wrap: wrap;
}

.raz-btn {
    padding: 13px 30px;
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.raz-btn--primary {
    background: var(--accent-gradient);
    color: #1a1a2e;
    box-shadow: 0 4px 20px rgba(200, 168, 78, 0.25);
}

.raz-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(200, 168, 78, 0.35);
}

.raz-btn--primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.raz-btn--secondary {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.raz-btn--secondary:hover {
    border-color: var(--accent-gold);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.raz-btn--danger {
    background: transparent;
    color: #dc3c3c;
    border: 1px solid rgba(220, 60, 60, 0.3);
}

.raz-btn--danger:hover {
    background: rgba(220, 60, 60, 0.1);
    border-color: #dc3c3c;
    transform: translateY(-2px);
}

/* --- Progress Bar --- */
.raz-progress {
    display: none;
    margin: 24px 0;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 18px;
    border: 1px solid var(--border-color);
}

.raz-progress.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.raz-progress__bar-bg {
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.raz-progress__bar-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 3px;
    width: 0%;
    transition: width 0.4s ease;
}

.raz-progress__text {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
}

/* --- Custom Modal (sesuai aturan RAZ) --- */
.raz-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.raz-modal-overlay.active {
    display: flex;
    animation: fadeIn 0.25s ease;
}

.raz-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-card);
    animation: slideUp 0.3s ease;
}

.raz-modal__icon {
    font-size: 44px;
    margin-bottom: 14px;
}

.raz-modal__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.raz-modal__message {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 22px;
    line-height: 1.6;
}

.raz-modal__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* --- Footer (mengikuti template raz.my.id) --- */
.footer {
    background-color: var(--bg-primary);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--bg-secondary);
    position: relative;
    z-index: 10;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--accent-gold);
    font-size: 18px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent-gold-light);
}

.footer p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* --- Animasi --- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .header-container {
        padding: 15px 20px;
    }

    .logo-image {
        max-width: 150px;
        height: auto;
    }

    .nav-toggle {
        display: block;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 80px;
        left: 0;
        background-color: var(--bg-primary);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
        padding: 20px 0;
        z-index: 1000;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list li {
        margin: 10px 0;
        text-align: center;
        margin-left: 0;
    }

    .nav-list li a.cta-button {
        display: inline-block;
        width: auto;
        margin-top: 5px;
    }

    .raz-hero__title {
        font-size: 28px;
    }

    .raz-dropzone {
        padding: 36px 20px;
    }

    .raz-preview__grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .raz-settings {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        gap: 15px;
    }
}