/* styles.css - NBTrans v1.2 */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

.version-info {
    margin-top: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: inline-block;
    font-size: 0.9em;
}

main {
    padding: 30px;
}

.upload-section {
    margin-bottom: 20px;
}

.file-box {
    border: 3px dashed #ddd;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.file-box:hover {
    border-color: #4facfe;
    background: #f8f9ff;
}

.file-box.drag-over {
    border-color: #00f2fe;
    background: #e7f3ff;
}

.file-box input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-label {
    pointer-events: none;
}

.file-label span {
    font-size: 1.2em;
    color: #666;
}

.file-list {
    margin-top: 15px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 0.9em;
    color: #666;
}

.options-section {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9ff;
    border-radius: 12px;
    border: 1px solid #e0e7ff;
}

.options-section h3 {
    color: #4facfe;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: flex-start;
    padding: 12px 15px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.radio-label:hover {
    background: #f0f7ff;
}

.radio-label input[type="radio"] {
    margin-top: 3px;
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: #4facfe;
}

.radio-label input[type="radio"]:checked + .radio-text {
    color: #4facfe;
    font-weight: 600;
}

.radio-text {
    font-size: 1em;
    color: #333;
    display: block;
}

.radio-desc {
    display: block;
    font-size: 0.85em;
    color: #888;
    margin-top: 4px;
    margin-left: 30px;
}

.radio-label:has(input:checked) {
    border-color: #4facfe;
    background: #f0f7ff;
}

.action-section {
    text-align: center;
    margin: 20px 0;
}

.action-section button {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.action-section button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.6);
}

.action-section button:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.progress-section {
    margin: 20px 0;
}

.progress-bar {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
    display: none;
}

.progress-bar.show {
    display: block;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    width: 0%;
    transition: width 0.3s ease;
}

.status {
    text-align: center;
    margin-top: 10px;
    color: #666;
}

.error-box {
    background: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    display: none;
    color: #c62828;
}

.error-box.show {
    display: block;
}

.result-section {
    display: none;
    margin-top: 30px;
}

.result-section.show {
    display: block;
}

.result-section h2 {
    color: #4caf50;
    margin-bottom: 15px;
}

.result-section button {
    background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1em;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.result-section button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.result-item {
    margin-bottom: 10px;
    padding: 12px;
    background: #e7f3ff;
    border-radius: 8px;
    border-left: 4px solid #4facfe;
}

.result-item .filename {
    font-weight: 600;
    color: #333;
}

.result-item .details {
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
}

.result-item .version-info {
    font-size: 0.85em;
    color: #4facfe;
    margin-top: 5px;
    padding: 4px 10px;
    background: rgba(79, 172, 254, 0.1);
    border-radius: 12px;
    display: inline-block;
}

footer {
    background: #f5f5f5;
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 0.9em;
}

footer a {
    color: #4facfe;
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}

footer .copyright {
    margin-top: 10px;
    font-size: 0.85em;
    color: #999;
}
