/* csv-converter specific styles */
.conversion-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
}

.option-group label {
    font-weight: bold;
    color: #388e3c;
    margin-bottom: 0.5rem;
    display: block;
}

.csv-options {
    background: rgba(129, 199, 132, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.option-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.option-row label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.option-row input[type="checkbox"] {
    margin-right: 0.5rem;
}

select {
    padding: 0.5rem;
    border: 2px solid #81c784;
    border-radius: 4px;
    font-size: 1rem;
    min-width: 150px;
}

textarea {
    height: 200px;
    padding: 0.8rem;
    border: 2px solid #81c784;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
}

textarea:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

textarea[readonly] {
    background-color: #f5f5f5;
}

.button-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.preview-section {
    margin-top: 1.5rem;
}

#preview-table {
    overflow-x: auto;
    border-radius: 8px;
    border: 2px solid #81c784;
}

#preview-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

#preview-table th,
#preview-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

#preview-table th {
    background: #4caf50;
    color: white;
    font-weight: bold;
}

#preview-table tr:nth-child(even) {
    background: #f5f5f5;
}

#preview-table tr:hover {
    background: #e8f5e9;
}

.input-section, .output-section {
    margin: 1.5rem 0;
}

@media (max-width: 768px) {
    .radio-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .conversion-options {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .option-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .tool-card h2 {
        font-size: 1.5rem;
    }
}