.tool-container {
    margin: 3rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: #2563eb;
}

.tab-btn.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Generator Tab */
.config-panel {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.loading {
    color: #2563eb;
    font-weight: 500;
    margin-left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.loading.hidden {
    display: none;
}

.keys-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.key-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.key-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.key-header h3 {
    font-size: 1rem;
    color: #374151;
    margin: 0;
}

.btn-copy {
    background: none;
    border: 1px solid #d1d5db;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    color: #4b5563;
    transition: all 0.2s;
}

.btn-copy:hover {
    background: #f3f4f6;
    color: #2563eb;
    border-color: #2563eb;
}

textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    resize: vertical;
    min-height: 300px;
    background: #f8fafc;
}

textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Encrypt/Decrypt Tab */
.crypto-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.input-col, .output-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.crypto-layout textarea {
    min-height: 150px;
}

#cryptoKey {
    min-height: 120px;
}

.action-btns {
    display: flex;
    gap: 1rem;
}

/* Common */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

select {
    padding: 0.6rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    min-width: 150px;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-secondary {
    background-color: white;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: #f3f4f6;
}

@media (max-width: 768px) {
    .keys-display, .crypto-layout {
        grid-template-columns: 1fr;
    }
    .config-panel {
        flex-direction: column;
        align-items: flex-start;
    }
}