/**
 * TGC Calculator Frontend Styles
 */

.tgc-calculator-wrap {
    width: 100%;
}

/* Smooth transitions */
#tgc-hero,
#tgc-results {
    transition: opacity 0.3s ease;
}

#tgc-hero.hidden,
#tgc-results.hidden {
    display: none;
}

/* Loading spinner */
#tgc-loading .animate-spin {
    animation: tgc-spin 1s linear infinite;
}

@keyframes tgc-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Select overrides for calculator */
#tgc-calc-form select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Chart bar animation */
.tgc-bar {
    transition: height 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Progress bar animation */
.tgc-bar-width {
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Tooltip on hover */
#tgc-results-content .group:hover .opacity-0 {
    opacity: 1 !important;
}
