/* ============================================================
   TOOL & CALCULATOR SPECIFIC STYLES (FINAL PRO VERSION)
   ============================================================ */

/* ===== 1. INPUT FOCUS EFFECT ===== */
.tool-input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
    transition: all 0.2s ease;
    will-change: transform;
}

/* ===== 2. RESULT CARD ===== */
.result-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.result-card:hover {
    transform: translateY(-3px);
}

/* Responsive Result Value */
.result-value {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.2;
    margin: 0.5rem 0;
}

/* ===== 3. PROGRESS BAR ===== */
.tool-progress-bg {
    height: 12px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
}

.tool-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-hover));
    border-radius: 999px;
    transition: width 1s ease-in-out;
    will-change: width;
}

/* ===== 4. TOOLTIP / INFO ICON ===== */
.tool-info-icon {
    cursor: help;
    color: var(--text-light);
    transition: color 0.2s ease;
}

.tool-info-icon:hover {
    color: var(--primary);
}

/* ===== 5. SMALL UTILITIES ===== */
.tool-fade-in {
    animation: toolFade 0.4s ease-in-out;
}

@keyframes toolFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 6. PRINT OPTIMIZATION ===== */
@media print {

    .no-print,
    header,
    footer,
    .hero-section {
        display: none !important;
    }

    .container {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .result-card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}