/* ================================================================= */
/* === TEMA "GALAKSI ANGKASA" - FULL SCRIPT FINAL v10 (Diperbaiki) === */
/* ================================================================= */

:root {
    --primary-color: #a78bfa;
    --text-color: #e5e7eb;
    --background-dark: #0d1117;
    --container-bg: rgba(22, 27, 34, 0.75); /* Sedikit lebih pekat untuk kontras */
    --input-bg: rgba(13, 17, 23, 0.9);
    --border-color-fallback: rgba(139, 148, 158, 0.2);
    --glow-color: rgba(37, 117, 252, 0.5);
    --gradient: linear-gradient(90deg, #6a11cb, #2575fc, #6a11cb); 
}

/* --- Definisi Animasi --- */
@keyframes animated-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes float {
    0% { transform: translateY(0px) rotate(-2deg); }
    100% { transform: translateY(15px) rotate(2deg); }
}
@keyframes fly-diagonal-up-right {
    0% { transform: translate(-150px, 110vh) rotate(45deg) scale(0.6); }
    100% { transform: translate(110vw, -150px) rotate(45deg) scale(1); }
}
@keyframes fly-diagonal-up-left {
    0% { transform: translate(110vw, 110vh) rotate(-45deg) scale(0.7); }
    100% { transform: translate(-150px, -150px) rotate(-45deg) scale(1.1); }
}
@keyframes fly-dragon-up {
    0% { transform: translate(-450px, 110vh) scaleX(1) rotate(25deg); opacity: 0.7; }
    50% { opacity: 1; }
    100% { transform: translate(110vw, -250px) scaleX(1) rotate(25deg); opacity: 0.7; }
}

/* --- Styling Dasar & Latar Belakang --- */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-dark);
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
}
@media (min-width: 769px) {
    body { background-image: url('https://clickdrive.tech/storage/cgg/General HO/Moon-Desktop.jpg'); }
}
@media (max-width: 768px) {
    body { background-image: url('https://clickdrive.tech/storage/cgg/General HO/Moon-Mobile.jpg'); }
}

/* --- Aset Animasi --- */
.moon-asset { position: fixed; width: 100px; height: 100px; background-image: url('https://clickdrive.tech/storage/cgg/General HO/Moon.png'); background-size: contain; background-repeat: no-repeat; z-index: 0; opacity: 0.5; pointer-events: none; animation: float 10s infinite alternate ease-in-out; }
.rocket-asset { position: fixed; width: 60px; height: 60px; background-image: url('https://clickdrive.tech/storage/cgg/General HO/Rocket.png'); background-size: contain; background-repeat: no-repeat; z-index: 10; pointer-events: none; will-change: transform; top: -200px; left: -200px; }
.fly-up-right { animation: fly-diagonal-up-right 25s linear infinite; animation-delay: 0s; }
.fly-up-left { animation: fly-diagonal-up-left 30s linear infinite; animation-delay: 7s; }
.flying-dragon { position: fixed; width: 300px; height: 158px; background-image: url('https://clickdrive.tech/storage/cgg/General HO/NagaTerbang.gif'); background-size: contain; background-repeat: no-repeat; z-index: 5; pointer-events: none; will-change: transform; animation: fly-dragon-up 40s linear infinite; animation-delay: 3s; top: -500px; left: -500px; }

/* --- Kontainer & Header --- */
.container { max-width: 1600px; margin: 0 auto; padding: 20px; position: relative; z-index: 20; }
header, .form-container, .output-container {
    border-radius: 12px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 2px solid transparent;
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    background-image: linear-gradient(var(--container-bg), var(--container-bg)), var(--gradient);
}
header { padding: 15px 25px; margin-bottom: 30px; display: flex; align-items: center; }
#site-logo { height: 45px; margin-right: 20px; animation: float 8s infinite alternate ease-in-out; }
#main-title { margin: 0; font-size: 1.8em; font-weight: 700; background: linear-gradient(90deg, #8e44ad, #3498db, #8e44ad); background-size: 250% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: animated-gradient 8s ease-in-out infinite; }

/* --- Konten Utama & Form --- */
.main-content { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.form-container, .output-container { padding: 30px; }
h2 { color: var(--primary-color); margin-top: 0; border-bottom: 2px solid var(--primary-color); padding-bottom: 10px; margin-bottom: 25px; font-weight: 500; }
.form-group { margin-bottom: 15px; } /* sedikit mengurangi margin */
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 14px;
    border: 2px solid transparent;
    border-radius: 10px;
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    background-image: linear-gradient(var(--input-bg), var(--input-bg)), var(--gradient);
    color: var(--text-color);
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-size: 1em;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    box-shadow: 0 0 15px var(--glow-color);
}
textarea { resize: vertical; min-height: 80px; }

/* Perbaikan Dropdown */
.form-group select {
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23e5e7eb' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E"),
                      linear-gradient(var(--input-bg), var(--input-bg)),
                      var(--gradient);
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-position: right 1rem center, center, center;
    background-size: 1em, 100%, 100%;
}
.form-group select option { background: var(--background-dark); color: var(--text-color); }

/* --- Tombol --- */
.action-buttons { margin-top: 25px; display: flex; gap: 12px; flex-wrap: wrap; }
button {
    padding: 12px 22px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
    border: none;
    color: white;
    background: var(--gradient);
    background-size: 250% 100%;
    animation: animated-gradient 6s ease-in-out infinite;
}
button:hover { transform: translateY(-3px); box-shadow: 0 6px 20px var(--glow-color); }

/* --- Output --- */
#output-indonesia, #output-english {
    color: var(--text-color);
    font-family: 'Courier New', Courier, monospace;
    width: 100%;
    box-sizing: border-box;
    padding: 15px;
    border: 2px solid transparent;
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    background-image: linear-gradient(var(--input-bg), var(--input-bg)), var(--gradient);
    border-radius: 10px;
}
#output-indonesia:focus, #output-english:focus {
    outline: none;
    box-shadow: 0 0 15px var(--glow-color);
}

/* --- Media Queries --- */
@media (max-width: 992px) {
    .main-content { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    header { flex-direction: column; gap: 15px; text-align: center; }
    #main-title { font-size: 1.5em; }
    .form-container, .output-container { padding: 20px; }
    .moon-asset { width: 80px; height: 80px; }
    .flying-dragon { width: 250px; height: 132px; }
}


/* ================================================= */
/* === KODE BARU UNTUK NOTIFIKASI & TOMBOL SALIN === */
/* ================================================= */

/* --- Style Notifikasi (Pengganti Alert) --- */
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 8px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, top 0.3s ease;
}
.notification.show {
    top: 30px;
    opacity: 1;
    visibility: visible;
}
.notification.success {
    background-color: #28a745; /* Warna hijau */
}

/* --- Style untuk Tombol Salin --- */
.prompt-box {
    position: relative; /* Penting agar tombol bisa diposisikan di dalamnya */
    margin-bottom: 25px;
}
.prompt-box:last-child {
    margin-bottom: 0;
}
.copy-button {
    position: absolute;
    top: 5px;  /* Disesuaikan agar pas di bawah judul */
    right: 5px; /* Disesuaikan agar pas di sudut */
    width: 38px;
    height: 38px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: none; /* Hapus animasi gradien dari tombol utama */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.copy-button:hover {
    background: var(--primary-color);
    transform: scale(1.1);
    box-shadow: none;
}
.copy-button svg {
    color: var(--text-color);
    width: 100%;
    height: 100%;
}
.copy-button.copied {
    background-color: #28a745; /* Warna hijau sukses */
}
