/* Enhanced ROI Calculator Styles */

.result-animation {
    height: 60px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Money Stack Animation */
.money-stack {
    position: relative;
    width: 40px;
    height: 50px;
}

.bill {
    position: absolute;
    width: 100%;
    height: 20px;
    background: linear-gradient(to right, #86efac, #10b981);
    border-radius: 2px;
    animation: floatBill 3s ease infinite;
}

.bill:nth-child(1) {
    top: 0;
    animation-delay: 0s;
}

.bill:nth-child(2) {
    top: 10px;
    animation-delay: 0.2s;
}

.bill:nth-child(3) {
    top: 20px;
    animation-delay: 0.4s;
}

@keyframes floatBill {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(2deg);
    }
}

/* Clock Animation */
.clock-animation {
    width: 50px;
    height: 50px;
    position: relative;
}

.clock-face {
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary);
    border-radius: 50%;
    position: relative;
}

.clock-hand {
    position: absolute;
    background: var(--primary);
    transform-origin: bottom;
    bottom: 50%;
    left: 50%;
}

.clock-hand.hour {
    width: 3px;
    height: 15px;
    animation: rotateHour 4s linear infinite;
}

.clock-hand.minute {
    width: 2px;
    height: 20px;
    animation: rotateMinute 2s linear infinite;
}

@keyframes rotateHour {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(360deg); }
}

@keyframes rotateMinute {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(360deg); }
}

/* Chart Animation */
.chart-animation {
    width: 60px;
    height: 40px;
    position: relative;
    border-left: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
}

.chart-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--accent);
    bottom: 10px;
    transform-origin: left;
    animation: drawLine 2s ease infinite;
}

.chart-arrow {
    position: absolute;
    right: 0;
    top: 5px;
    width: 0;
    height: 0;
    border-left: 8px solid var(--success);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    animation: slideArrow 2s ease infinite;
}

@keyframes drawLine {
    0% { transform: scaleX(0) rotate(0deg); }
    50% { transform: scaleX(1) rotate(-10deg); }
    100% { transform: scaleX(1) rotate(-10deg); }
}

@keyframes slideArrow {
    0% { opacity: 0; right: 50%; }
    50% { opacity: 1; right: 0; }
    100% { opacity: 1; right: 0; }
}

/* Calendar Animation */
.calendar-animation {
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary);
    border-radius: 4px;
    padding: 4px;
}

.calendar-header {
    height: 8px;
    background: var(--primary);
    margin-bottom: 4px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.calendar-days span {
    width: 100%;
    height: 6px;
    background: var(--accent);
    opacity: 0;
    animation: fadeInDay 0.5s ease forwards;
}

.calendar-days span:nth-child(1) { animation-delay: 0.1s; }
.calendar-days span:nth-child(2) { animation-delay: 0.2s; }
.calendar-days span:nth-child(3) { animation-delay: 0.3s; }
.calendar-days span:nth-child(4) { animation-delay: 0.4s; }
.calendar-days span:nth-child(5) { animation-delay: 0.5s; }
.calendar-days span:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInDay {
    to {
        opacity: 1;
    }
}

/* Breakdown Animations */
.breakdown-animation {
    width: 30px;
    height: 30px;
    margin-right: 1rem;
}

/* AI Icon Animation */
.ai-icon-animated {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    border-radius: 50%;
    position: relative;
    animation: aiPulse 2s ease infinite;
}

.ai-icon-animated::before,
.ai-icon-animated::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent);
    border-radius: 50%;
    animation: aiWave 2s ease infinite;
}

.ai-icon-animated::after {
    animation-delay: 0.5s;
}

@keyframes aiPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.9); }
}

@keyframes aiWave {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Efficiency Icon Animation */
.efficiency-icon-animated {
    width: 100%;
    height: 100%;
    position: relative;
}

.efficiency-icon-animated::before,
.efficiency-icon-animated::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    animation: orbit 2s linear infinite;
}

.efficiency-icon-animated::before {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.efficiency-icon-animated::after {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 1s;
}

@keyframes orbit {
    0% { transform: rotate(0deg) translateX(15px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(15px) rotate(-360deg); }
}

/* License Icon Animation */
.license-icon-animated {
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary);
    border-radius: 4px;
    position: relative;
    animation: flip 3s ease infinite;
}

.license-icon-animated::before {
    content: '';
    position: absolute;
    width: 60%;
    height: 2px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes flip {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
}

/* Outcome Icon Animation */
.outcome-icon-animated {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.outcome-icon-animated::before,
.outcome-icon-animated::after {
    content: '';
    width: 8px;
    background: var(--success);
    animation: growBar 2s ease infinite;
}

.outcome-icon-animated::before {
    height: 40%;
    animation-delay: 0s;
}

.outcome-icon-animated::after {
    height: 70%;
    animation-delay: 0.3s;
}

@keyframes growBar {
    0%, 100% {
        transform: scaleY(0.8);
    }
    50% {
        transform: scaleY(1);
    }
}

/* Benefits Animations */
.benefit-animation {
    height: 80px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Graduation Cap Animation */
.graduation-cap {
    width: 50px;
    height: 50px;
    position: relative;
}

.graduation-cap::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 20px;
    background: var(--primary);
    top: 20px;
    clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
}

.graduation-cap::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 10px;
    background: var(--primary-light);
    top: 10px;
    animation: capFloat 2s ease infinite;
}

@keyframes capFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
}

/* Satisfaction Meter Animation */
.satisfaction-meter {
    width: 50px;
    height: 50px;
    border: 3px solid var(--primary);
    border-radius: 50%;
    position: relative;
}

.satisfaction-meter::before {
    content: '';
    position: absolute;
    width: 3px;
    height: 20px;
    background: var(--success);
    bottom: 50%;
    left: 50%;
    transform-origin: bottom;
    animation: meterSwing 2s ease infinite;
}

@keyframes meterSwing {
    0%, 100% { transform: translateX(-50%) rotate(-45deg); }
    50% { transform: translateX(-50%) rotate(45deg); }
}

/* Data Visualization Animation */
.data-visualization {
    width: 60px;
    height: 50px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
    align-items: flex-end;
}

.data-visualization::before,
.data-visualization::after {
    content: '';
    background: var(--primary);
    animation: dataFlow 1.5s ease infinite;
}

.data-visualization::before {
    height: 30%;
    animation-delay: 0s;
}

.data-visualization::after {
    height: 60%;
    animation-delay: 0.2s;
}

@keyframes dataFlow {
    0%, 100% { height: 30%; }
    50% { height: 90%; }
}

/* Rocket Launch Animation */
.rocket-launch {
    width: 40px;
    height: 50px;
    position: relative;
}

.rocket-launch::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary);
    clip-path: polygon(50% 0%, 70% 40%, 70% 70%, 50% 100%, 30% 70%, 30% 40%);
    animation: rocketLaunch 3s ease infinite;
}

.rocket-launch::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(to bottom, #fbbf24, #f59e0b);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    animation: flame 0.5s ease infinite;
}

@keyframes rocketLaunch {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes flame {
    0%, 100% { transform: translateX(-50%) scaleY(1); }
    50% { transform: translateX(-50%) scaleY(1.3); }
}