/* Container */
.tool-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 16px;
}

/* Tabs */
.tabs-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 16px;
    margin-bottom: 8px;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}
.tabs-scroll::-webkit-scrollbar { display: none; } /* Hide scrollbar Chrome */

.tab-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 50px;
    white-space: nowrap;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

/* Converter Card */
.converter-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.field-wrapper {
    display: flex;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s;
}

.field-wrapper:focus-within {
    border-color: var(--primary-blue);
}

.field-wrapper input {
    width: 60%;
    border: none;
    padding: 12px 16px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    background: var(--bg-surface);
    outline: none;
}

.field-wrapper select {
    width: 40%;
    border: none;
    border-left: 1px solid var(--border-color);
    background: var(--bg-body);
    color: var(--text-main);
    padding: 0 12px;
    font-size: 0.9rem;
    font-weight: 500;
    outline: none;
    cursor: pointer;
}

/* Swap Button */
.swap-container {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-blue);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.icon-circle:active {
    transform: rotate(180deg);
}

/* Formula Box */
.formula-box {
    margin-top: 16px;
    padding: 12px;
    background: var(--bg-body);
    border-radius: var(--radius-md);
    text-align: center;
}
.formula-box small {
    text-transform: uppercase;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 1px;
}
.formula-box p {
    color: var(--text-main);
    font-size: 0.9rem;
    margin-top: 4px;
}

.hidden { display: none; }

/* Modal (Same as previous) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}
.modal-content {
    background: var(--bg-surface);
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-lg);
    padding: 24px;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}