body {
    background-color: #ffffff;
    color: #0f172a;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 40px 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.container {
    width: 100%;
    max-width: 500px;
    text-align: center;
}
h1 {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
}
p.subtitle {
    margin: 0 0 30px 0;
    font-size: 15px;
    color: #64748b;
}
.dropzone {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px dashed #3b82f6;
    background-color: #f0f9ff;
    border-radius: 12px;
    padding: 40px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 25px;
    min-height: 80px;
    position: relative;
}
.dropzone:hover {
    background-color: #e0f2fe;
}

.options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    text-align: left;
}
.options-row .server-select-container {
    text-align: right;
}
.options-row label.group-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.radio-group {
    display: flex;
    gap: 15px;
}
.radio-group label {
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.radio-group input {
    margin-right: 6px;
    cursor: pointer;
}
#serverSelect {
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #0f172a;
    width: 180px;
    outline: none;
    cursor: pointer;
}

button.btn-primary {
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}
button.btn-primary:active {
    transform: translateY(1px);
}
button.btn-primary:disabled {
    background-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

#loadingStatus {
    display: none;
    align-items: center;
    justify-content: center;
    margin-top: 25px;
    font-size: 15px;
    color: #1e293b;
    font-weight: 500;
}

.spinner {
    border: 3px solid #e2e8f0;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin-right: 12px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

#finalStatus {
    display: none;
    color: #15803d;
    text-align: center;
    margin-top: 25px;
    font-weight: 500;
    font-size: 15px;
}

.results-box {
    display: none;
    margin-top: 20px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: left;
}
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.results-header span {
    font-weight: 600;
    color: #475569;
    font-size: 14px;
}
button.btn-success {
    background-color: #10b981;
    color: white;
    border: none;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}
button.btn-success:hover {
    background-color: #059669;
}

.result-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-sizing: border-box;
    margin-bottom: 15px;
    font-size: 14px;
    color: #2563eb;
    background-color: #ffffff;
    outline: none;
    font-weight: 500;
    display: block;   /* Ditambahkan agar a/div memenuhi grid seperti input */
    text-decoration: none; /* Menghilangkan garis bawah standar pada link */
    text-align: left;
    word-break: break-all; /* Agar link panjang otomatis turun baris */
}
.result-input:last-child {
    margin-bottom: 0;
}
.result-input.success-link:hover {
    background-color: #f8fafc;
    text-decoration: underline;
    cursor: pointer;
}
.result-input.error-input {
    color: #ef4444;
    border-color: #fecaca;
    background-color: #fef2f2;
    cursor: default;
}

/* Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    pointer-events: none;
}
.toast {
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.toast-error {
    background-color: #ef4444;
}
.toast-success {
    background-color: #10b981;
}

/* Responsivitas untuk Smartphone */
@media (max-width: 480px) {
    body {
        padding: 20px 15px;
    }
    h1 {
        font-size: 26px;
    }
    p.subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }
    .dropzone {
        padding: 30px 15px;
        font-size: 14px;
    }
    .options-row {
        flex-direction: row;
        align-items: center;
        margin-bottom: 20px;
    }
    .options-row .server-select-container {
        text-align: right;
    }
    #serverSelect {
        width: 135px;
        padding: 10px;
        font-size: 13px;
    }
    .options-row label.group-label {
        font-size: 9px;
    }
    .radio-group {
        gap: 10px;
    }
    .radio-group label {
        font-size: 13px;
    }
    button.btn-primary {
        padding: 14px 20px;
        font-size: 15px;
    }
    .results-box {
        padding: 15px;
    }
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    button.btn-success {
        width: 100%;
        padding: 10px;
    }
}
