.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;
}

.section-block {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f1f5f9;
}

.section-block:last-child {
    border-bottom: none;
}

.section-block h3 {
    font-size: 1.1rem;
    color: #374151;
    margin-bottom: 1rem;
    border-left: 4px solid #2563eb;
    padding-left: 0.5rem;
}

/* Keys Display */
.keys-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.key-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.key-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #4b5563;
}

.btn-copy {
    background: none;
    border: 1px solid #d1d5db;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
}

textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: monospace;
    font-size: 13px;
    resize: vertical;
    min-height: 100px;
}

textarea:focus, input:focus, select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Crypto Layout */
.crypto-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.input-col, .output-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

input[type="text"], select {
    padding: 0.6rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
}

.action-btns {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-sm {
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .keys-display, .crypto-layout {
        grid-template-columns: 1fr;
    }
}