body {
    background-color: #000;
    color: #0f0;
    font-family: monospace;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    flex-direction: column;
}

body.light-mode {
    background-color: #fff;
    color: #000;
}

h1 {
    color: #0f0;
    font-size: 2em;
}

body.light-mode h1 {
    color: #000;
}

#toggle-darkmode {
    background-color: transparent;
    border: 2px solid #0f0;
    color: #0f0;
    padding: 5px 15px;
    cursor: pointer;
    font-family: monospace;
    font-size: 1em;
    position: absolute;
    top: 10px;
    right: 10px;
}

body.light-mode #toggle-darkmode {
    border-color: #000;
    color: #000;
}

#toggle-darkmode:hover {
    background-color: #0f0;
    color: #000;
}

body.light-mode #toggle-darkmode:hover {
    background-color: #000;
    color: #0f0;
}

.container {
    width: 90%;
    max-width: 1000px;
    min-height: 500px;
    padding: 40px 20px;
    border: 2px dashed #0f0;
    background-color: #000;
    box-shadow: 0 0 10px #0f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.snsv-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
}

body.light-mode .container {
    border: 2px dashed #000;
    background-color: #fff;
    box-shadow: 0 0 10px #000;
}

h1 {
    color: #0f0;
    font-size: 2em;
}

body.light-mode h1 {
    color: #000;
}

nav a {
    color: #0f0;
    text-decoration: none;
    font-weight: bold;
    margin: 0 15px;
}

body.light-mode nav a {
    color: #000;
}

nav a:hover {
    color: #fff;
}

body.light-mode nav a:hover {
    color: red;
}

.container nav + p {
    margin-top: 20px;
}

p span {
    color: #0f0;
}

body.light-mode p span {
    color: #009900;
}

#toggle-darkmode {
    background-color: transparent;
    border: 2px solid #0f0;
    color: #0f0;
    padding: 5px 10px;
    cursor: pointer;
    font-family: monospace;
    position: absolute;
    top: 10px;
    right: 10px;
}

body.light-mode #toggle-darkmode {
    border-color: #000;
    color: #000;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}

.utf-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 20px;
}

.utf-form label {
    margin-bottom: 10px;
    font-weight: bold;
}

.utf-form textarea {
    width: 100%;
    max-width: 600px;
    height: 30px;
    padding: 15px;
    border: 2px dashed #0f0;
    background-color: #000;
    color: #0f0;
    font-family: monospace;
    resize: none;
    overflow-wrap: break-word;
}

.submit-btn {
    margin-top: 15px;
    padding: 10px 20px;
    border: 2px dashed #0f0;
    background-color: transparent;
    color: #0f0;
    cursor: pointer;
    font-family: monospace;
    font-size: 1em;
}

.submit-btn:hover {
    background-color: #0f0;
    color: #000;
}

.result {
    margin-top: 20px;
    padding: 20px;
    border: 2px dashed #0f0;
    background-color: #000;
    color: #0f0;
    font-family: monospace;
    width: 80%;
    max-width: 600px;
    text-align: center;
    white-space: normal; /* Membungkus teks */
    word-wrap: break-word; /* Memastikan kata terpotong jika terlalu panjang */
}

.result p {
    margin: 5px 0;
}

.text-center {
    text-align: center;
}

h1 a {
    text-decoration: none;
    color: #0f0; /* Default hijau saat dark mode */
}

body.light-mode h1 a {
    color: #000; /* Warna hitam saat light mode */
}

footer p a {
    color: #fff; /* Warna putih untuk dark mode */
    text-decoration: none;
}

footer p a:hover {
    text-decoration: underline;
}

body.light-mode footer p a {
    color: #0f0; /* Warna hijau untuk light mode */
}

.extract-form {
    display: flex;
    flex-direction: column;
    align-items: center; /* Menyelaraskan elemen ke tengah */
    text-align: center;
}

.extract-textarea {
    width: 350px;
    height: 220px;
    padding: 15px;
    border: 2px dashed #0f0;
    background-color: #000;
    color: #0f0;
    font-family: monospace;
    resize: none;
    overflow-wrap: break-word;
    margin-bottom: 15px; /* Spasi antara textarea dan tombol */
}

.submit-btn {
    padding: 10px 20px;
    border: 2px dashed #0f0;
    background-color: transparent;
    color: #0f0;
    cursor: pointer;
    font-family: monospace;
    font-size: 1em;
}

.smtp-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.smtp-form label {
    margin-top: 10px;
    font-weight: bold;
}

.smtp-form input, .smtp-form select {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border: 2px dashed #0f0;
    background-color: #000;
    color: #0f0;
    font-family: monospace;
    margin-top: 5px;
}

.smtp-form input[type="password"] {
    font-family: monospace;
}

.smtp-form .submit-btn {
    margin-top: 20px;
    padding: 10px 20px;
    border: 2px dashed #0f0;
    background-color: transparent;
    color: #0f0;
    cursor: pointer;
    font-family: monospace;
    font-size: 1em;
}

.smtp-form .submit-btn:hover {
    background-color: #0f0;
    color: #000;
}

.success {
    color: #0f0;
    margin-top: 20px;
}

.error {
    color: #f00;
    margin-top: 20px;
}


/* Responsive Design for Mobile Devices */
@media (max-width: 768px) {
    body {
        padding: 10px;
        flex-direction: column;
        height: auto;
    }

    h1 {
        font-size: 1.5em;
    }

    #toggle-darkmode {
        padding: 8px 12px;
        font-size: 0.9em;
    }

    .container {
        width: 100%;
        padding: 20px 10px;
        min-height: auto;
    }

    .button {
        font-size: 0.9em;
        padding: 10px 20px;
        margin: 10px 0;
    }

    /* Adjust font sizes for readability */
    p, .text {
        font-size: 1em;
    }
}
