.nettvtool {
    margin: 0 auto;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #2c3e50;
    margin: 40px 0 60px 0;
    text-align: center;
    padding-bottom: 15px;
}

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

.input-section,
.output-section {
    flex: 1;
    min-width: 0;
}

.section-title {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3em;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

textarea {
    width: -webkit-fill-available;
    width: -moz-available;
    height: 250px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 15px;
}

#potResult {
    height: 357px;
}

.file-upload {
    margin-bottom: 15px;
    padding: 20px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s ease;
}

.file-upload:hover {
    border-color: #3498db;
    background-color: #f9f9f9;
}

#fileInput {
    display: none;
}

.format-selector {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.format-selector label {
    margin-bottom: 0;
    font-weight: 500;
    white-space: nowrap;
}

.format-selector select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    min-width: 0;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #2ecc71;
}

.btn-secondary:hover {
    background-color: #27ae60;
}

.btn-danger {
    background-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-copy {
    background-color: #f39c12;
}

.btn-copy:hover {
    background-color: #d35400;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

#convertButtons button:first-child {
    margin-right: 10px;
}

.result {
    margin-top: 20px;
}

.result-item {
    margin-bottom: 25px;
    display: none;
}

.result-item.active {
    display: block;
}

.result-item h3 {
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 1.1em;
}

.result-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.download-all {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.stats {
    margin: 20px 0;
    padding: 15px;
    background-color: #f0f7ff;
    border-radius: 4px;
}

.error {
    color: #e74c3c;
    margin: 15px 0;
    padding: 10px;
    background-color: #fdedeb;
    border-radius: 4px;
    display: none;
}

.empty-state {
    padding: 40px 20px;
    text-align: center;
    color: #7f8c8d;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px dashed #ddd;
}

.copy-feedback {
    color: #27ae60;
    margin-left: 10px;
    display: none;
}

.instructions {
    margin-top: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
    color: #555;
}

.instructions h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.instructions ul {
    margin-bottom: 10px;
}


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

    .container {
        padding: 15px;
    }

    .result-actions,
    .download-buttons {
        flex-direction: column;
    }

    .btn {
        padding: 10px 8px;
        font-size: 14px;
        min-width: auto;
    }

    textarea {
        height: 200px;
    }

    .format-selector {
        flex-wrap: nowrap;
    }

    .format-selector select {
        font-size: 14px;
        padding: 6px 8px;
    }
}