.tool-page {
    /*max-width: 820px;*/
    margin: 40px auto;
    padding: 28px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
}

.subtitle {
    color: #555;
    margin-bottom: 20px;
}

.tool-description {
    margin-bottom: 30px;
    line-height: 1.7;
}

.tool-description ul {
    padding-left: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.tool-page textarea,
.tool-page select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.btn-primary {
    background: #2563eb;
    border: none;
    padding: 12px 22px;
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.result-box {
    margin-top: 25px;
}

.result-box textarea {
    background: #f8fafc;
}
.radio-group {
    display: flex;
    gap: 18px;
}

.radio-item {
    cursor: pointer;
}

/* copy button */
.btn-copy {
    margin-top: 10px;
    background: #10b981;
    border: none;
    padding: 10px 18px;
    color: white;
    border-radius: 8px;
    cursor: pointer;
}

.btn-copy:hover {
    background: #059669;
}

/* error */
.error-box {
    border: 1px solid #ef4444;
    background: #fff1f2;
}

.error-text {
    color: #b91c1c;
    font-weight: 600;
}

/* highlight invalid */
textarea.invalid {
    border-color: #ef4444;
    background: #fff5f5;
}
/* breadcrumb */
.breadcrumb-nav {
    margin-bottom: 18px;
    font-size: 14px;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin: 0;
}

.breadcrumb-list li {
    color: #6b7280;
}

.breadcrumb-list li::after {
    content: "›";
    margin: 0 6px;
    color: #9ca3af;
}

.breadcrumb-list li:last-child::after {
    display: none;
}

.breadcrumb-list a {
    color: #2563eb;
    text-decoration: none;
}

.breadcrumb-list a:hover {
    text-decoration: underline;
}

.breadcrumb-list .active {
    color: #111827;
    font-weight: 600;
}
.tool-description pre {
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    border: 1px solid #e5e7eb;
    margin-bottom: 16px;
}
.upload-box {
    max-width: 400px;
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

.upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #007bff;
    border-radius: 8px;
    padding: 30px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    text-align: center;
    color: #007bff;
}

.upload-label:hover {
    background: #f0f8ff;
    border-color: #0056b3;
}

.upload-label input[type="file"] {
    display: none;
}

.upload-icon {
    font-size: 24px;
    margin-right: 10px;
}

.upload-text {
    font-size: 16px;
}

.file-name {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
    text-align: center;
}
pre {
    font-size: 14px;        /* ukuran lebih besar */
    line-height: 1.5;       /* jarak antar baris */
    background: #eee;       /* background tetap */
    padding: 15px;          /* padding lebih nyaman */
    border-radius: 8px;     /* border-radius tetap */
    overflow-x: auto;       /* scroll horizontal kalau panjang */
    font-family: 'Courier New', Courier, monospace; /* monospace */
}

.about-page h1, .about-page h2 {
    color: #007bff;
}
.about-page p, .about-page li {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}
.about-page ul {
    padding-left: 20px;
}
/* reuse base64 style */
.radio-group { display:flex; gap:18px; }

.btn-copy {
    margin-top: 10px;
    background: #10b981;
    padding: 10px 18px;
    color:#fff;
    border:none;
    border-radius:8px;
}

.btn-copy:hover { background:#059669; }

.error-box {
    border:1px solid #ef4444;
    background:#fff1f2;
}

.error-text { color:#b91c1c; font-weight:600; }