/* Tool Hunt Container */
.tool-hunt-wrapper {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    max-width: 900px;
    /* Wider to accommodate 2 cols */
    margin: 40px auto;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Header & Tabs */
.th-header {
    background: #f8fafc;
    padding: 30px 40px 0;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.th-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 25px;
}

.th-tabs-outer {
    display: flex;
    justify-content: center;
}

.th-tabs {
    display: inline-flex;
    background: #e2e8f0;
    padding: 6px;
    border-radius: 16px;
    gap: 6px;
}

.th-tab {
    background: transparent;
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.th-tab.active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.th-tab-icon {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.th-tab small {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 2px;
}

/* Container */
.th-container {
    padding: 40px;
    background: #fff;
    min-height: 400px;
}

/* View Handling */
.th-view {
    display: none;
    animation: fadeIn 0.4s ease;
}

.th-view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Grid Layout */
.th-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
    /* Row Gap, Col Gap */
}

@media (max-width: 768px) {
    .th-grid {
        grid-template-columns: 1fr;
    }
}

/* Form Fields */
.th-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.th-field-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    margin-left: 4px;
}

.th-select-wrapper {
    position: relative;
}

.th-select-wrapper::after {
    content: "▼";
    font-size: 0.7rem;
    color: #94a3b8;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.th-select {
    width: 100%;
    appearance: none;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s;
}

.th-select:hover {
    border-color: #cbd5e1;
}

.th-select:focus {
    outline: none;
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.th-select:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    border-color: #f1f5f9;
}

/* Result Section */
.th-result-section {
    margin-top: 40px;
    text-align: center;
    padding-top: 30px;
    border-top: 2px dashed #e2e8f0;
}

/* Button (Optional - if auto calc desired, hide or style differently) */
.th-btn-primary {
    background: #0f172a;
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    margin-bottom: 20px;
}

.th-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

/* Result Display */
.th-result-display {
    margin-top: 10px;
}

.th-result-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #e11d48;
    /* Accent Color */
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.th-result-label {
    margin-top: 5px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    font-weight: 600;
}

.th-footer {
    text-align: center;
    padding: 15px;
    background: #f8fafc;
    font-size: 0.8rem;
    color: #94a3b8;
    font-style: italic;
}