body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    padding: 30px;
}
form {
    background: #fff;
    padding: 20px;
    max-width: 800px;
    margin: auto;
}
input, textarea, button {
    width: 100%;
    margin: 10px 0;
    padding: 8px;
}
button {
    background: #222;
    color: #fff;
    border: none;
    cursor: pointer;
}
.error {
    color: red;
    text-align: center;
}

.app-header {
    text-align: center;
    margin: 20px 0 10px;
}

.app-logo {
    height: 184px;      /* safe default */
    max-width: 100%;
}
.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
}

.toggle {
    position: relative;
    width: 46px;
    height: 24px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: 0.2s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.2s;
}

.toggle input:checked + .slider {
    background-color: #4CAF50;
}

.toggle input:checked + .slider:before {
    transform: translateX(22px);
}

.toggle-label {
    font-size: 14px;
    user-select: none;
}

.file-upload {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 16px;
}

.upload-btn {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.upload-btn:hover {
    background-color: #43a047;
}

.file-name {
    font-size: 13px;
    color: #555;
    font-style: italic;
}

.copy-notice {
    opacity: 0;
    margin-top: 6px;
    font-size: 13px;
    color: #2e7d32;
    transition: opacity 0.2s ease;
    user-select: none;
}

.copy-notice.show {
    opacity: 1;
}

.loader-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.88);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loader-box {
    width: 320px;
    text-align: center;
    font-size: 14px;
    color: #333;
}

.loader-text {
    margin-bottom: 14px;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #66bb6a);
    transition: width 0.4s ease;
}

.loader-percent {
    margin-top: 8px;
    font-size: 13px;
    color: #555;
}
.top-action-btn {
    padding: 8px 14px;
    background: #1976d2;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
}

.top-action-btn:hover {
    background: #1565c0;
}

.jp-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-top: 8px;
    cursor: pointer;
    background: #fff;
    transition: background 0.2s, border-color 0.2s;
}

/* Hide radio but keep it working */
.jp-option input[type="radio"] {
    display: none;
}

.jp-text-wrap {
    display: flex;
    flex-direction: column;
}

.jp-text {
    font-size: 15px;
    line-height: 1.4;
}

.jp-sheet {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* Selected box */
.jp-option:has(input[type="radio"]:checked) {
    border-color: #1976d2;
    background: #eef4ff;
}

.reset-wrapper {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 9999;
}

.reset-btn {
    padding: 8px 14px;
    font-size: 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    background: #f44336;
    color: #fff;
}

.reset-btn:hover {
    background: #d32f2f;
}

.wrong-correct-wrapper {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 9999;
}

.top-action-btn {
    display: inline-block;
    padding: 8px 14px;
    font-size: 14px;
    border-radius: 6px;
    background: #1976d2;
    color: #fff;
    text-decoration: none;
}

.top-action-btn:hover {
    background: #125aa0;
}

.back-wrapper {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 9999;
}

.back-btn {
    display: inline-block;
    padding: 8px 14px;
    font-size: 14px;
    border-radius: 6px;
    background: #555;
    color: #fff;
    text-decoration: none;
}

.back-btn:hover {
    background: #333;
}

.jp-info {
    margin-top: 6px;
    padding: 8px 10px;
    font-size: 13px;
    background: #fff7e6;
    border-left: 4px solid #f0ad4e;
    border-radius: 6px;
}

.file-list{margin-top:10px;font-size:14px}
.modal{position:fixed;inset:0;background:rgba(0,0,0,.6);display:flex;align-items:center;justify-content:center}
.modal-box{background:#fff;color:#000;padding:20px;width:80%;max-height:80%;overflow:auto}
.loader{display:none;position:fixed;inset:0;background:#0008;align-items:center;justify-content:center}
.bar{width:200px;height:8px;background:#ddd}
.fill{height:100%;width:70%;background:#673ab7;animation:load 2s infinite}
@keyframes load{0%{width:0}100%{width:100%}}

