#tool-wrapper {
    max-width: 800px;
    margin: 80px auto 40px;
    padding: 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.dark-mode #tool-wrapper {
    background: #2c3e50;
}

#tool-wrapper h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
}

.dark-mode #tool-wrapper h1 {
    color: #ecf0f1;
}

textarea {
    width: 100%;
    height: 150px;
    padding: 15px;
    font-size: 14px;
    font-family: monospace;
    border: 2px solid #3498db;
    border-radius: 8px;
    resize: vertical;
    background: #f8f9fa;
    color: #2c3e50;
}

.dark-mode textarea {
    background: #1a252f;
    color: #ecf0f1;
}

textarea:focus {
    outline: none;
    border-color: #2980b9;
}

.input-section, .output-section {
    margin-bottom: 20px;
}

.actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.actions button {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

#encode-btn {
    background: #2ecc71;
    color: white;
}

#encode-btn:hover {
    background: #27ae60;
}

#decode-btn {
    background: #3498db;
    color: white;
}

#decode-btn:hover {
    background: #2980b9;
}

.copy-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.copy-actions button {
    padding: 10px 20px;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

#copy-btn {
    background: #e67e22;
    color: white;
}

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

#clear-btn {
    background: #95a5a6;
    color: white;
}

#clear-btn:hover {
    background: #7f8c8d;
}
