.tool-container {
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.converter-grid {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.group-header label {
    font-weight: 500;
    color: #374151;
}

.actions {
    display: flex;
    gap: 0.5rem;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    color: #6b7280;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background-color: #f3f4f6;
    color: #111827;
}

textarea {
    width: 100%;
    height: 300px;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: monospace;
    resize: vertical;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    line-height: 1.5;
}

textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.controls {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: 0 0.5rem;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 100px;
    color: #4b5563;
}

.action-btn span {
    font-weight: 600;
    font-size: 0.95rem;
}

.action-btn small {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 2px;
}

.action-btn:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    color: white;
}

.action-btn:hover small {
    color: rgba(255, 255, 255, 0.8);
}

.options-bar {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #4b5563;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .converter-grid {
        flex-direction: column;
    }

    .controls {
        flex-direction: row;
        padding: 0.5rem 0;
    }

    .action-btn {
        flex: 1;
    }

    textarea {
        height: 150px;
    }
}