.container {
    max-width: 100%;
    overflow: hidden;
    margin-right: 25px;

}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

.description {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
    font-size: 1.1rem;
}

.main-content {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.input-section,
.output-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

h2 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-badge {
    background: #1a2a6c;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.badge-original {
    background: #77838f;
}

.badge-merged {
    background: #b21f1f;
}

.badge-list {
    background: #0f9b0f;
}

textarea {
    /*width: 100%;*/
    /*flex: 1;*/
    min-height: 350px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s;
    font-family: monospace;
}

textarea:focus {
    outline: none;
    border-color: #1a2a6c;
    box-shadow: 0 0 0 2px rgba(26, 42, 108, 0.2);
}

.output-section textarea {
    background-color: #f9f9f9;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.example-section {
    background: #f0f7ff;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
    border-left: 5px solid #005e00;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    color: #666;
    flex-wrap: wrap;
    gap: 10px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-badge {
    background: #77838f;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 10px 15px;
    border-radius: 5px;
    margin-top: 15px;
    display: none;
    text-align: center;
}

.info-message {
    background: #d1ecf1;
    color: #0c5460;
    padding: 10px 15px;
    border-radius: 5px;
    margin-top: 15px;
    text-align: center;
}

.download-section {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.download-section label {
    font-weight: 600;
    color: #1a2a6c;
    white-space: nowrap;
}

.download-section input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
    min-width: 150px;
}

.download-section .file-extension {
    color: #666;
    font-weight: 600;
    white-space: nowrap;
}

.section-footer {
    margin-top: 15px;
}

@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
    }

    .input-section,
    .output-section {
        min-height: auto;
    }

    textarea {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .button-group {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

    .workflow-arrow {
        transform: rotate(90deg);
    }

    .download-section {
        flex-direction: column;
        align-items: stretch;
    }

    .download-section input {
        min-width: auto;
    }
}