/* Common styles for tools */
.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

textarea {
    width: calc(100% - 28px);
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
    min-height: 100px;
    resize: vertical;
    font-family: 'Courier New', monospace;
}

textarea:focus {
    outline: none;
    border-color: #007acc;
}

.output-section {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    position: relative;
}

.output-label {
    color: #007acc;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
}

.output-content {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    white-space: pre;
    overflow-x: auto;
    min-height: 100px;
    font-size: 14px;
    line-height: 1.4;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #007acc;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
}

.copy-btn:hover {
    background: #005a9e;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.action-btn {
    background: #007acc;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.action-btn:hover {
    background: #005a9e;
}

.controls {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.output-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.copy-individual {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #007acc;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
}

.copy-individual:hover {
    background: #005a9e;
}

.error {
    color: #dc3545;
    background: #f8d7da;
    border-color: #f5c6cb;
}