/* Import font dari Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* Reset dasar dan gaya utama body */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Inter', sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;
}
.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}
h1, h2 {
    color: #ffffff;
    margin-bottom: 10px;
}
h1 {
    font-size: 2.5rem;
    text-align: center;
    background: -webkit-linear-gradient(45deg, #8A2BE2, #4B0082);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 10px;
}
p {
    text-align: center;
    margin-bottom: 40px;
    color: #a0a0a0;
}
.card, .card-hasil {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #bbbbbb;
}
textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    background-color: #2c2c2c;
    border: 1px solid #444;
    border-radius: 5px;
    color: #e0e0e0;
    font-size: 1rem;
    resize: vertical;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}
textarea:focus { outline: none; border-color: #8A2BE2; }
button {
    width: 100%;
    padding: 15px;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}
button:active { transform: scale(0.98); }
#generateBtn {
    background-color: #4B0082;
    margin-top: 15px;
}
#generateBtn:hover { background-color: #5a009a; }

/* === KODE BARU UNTUK POSISI YANG BENAR === */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px; /* Jarak antara header dan textarea */
}
.card-header h2 {
    margin-bottom: 0; /* Hapus margin bawah dari h2 */
}
#copyIconBtn {
    background: #333;
    border: 1px solid #555;
    border-radius: 8px;
    width: 40px; /* Lebar tombol dibuat tetap */
    height: 40px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0; /* Mencegah tombol menyusut */
}
#copyIconBtn:hover {
    background-color: #444;
}
#copyIconBtn svg {
    width: 20px;
    height: 20px;
    fill: #a9c7ff;
}
#hasilPrompt {
    margin-bottom: 0;
}