/* =========================================
   iGrroww Advanced Calculator Styles
   File: css/calculator.css
========================================= */

/* --- Premium Background Glow Effect --- */
.premium-glow {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 193, 106, 0.06) 0%, rgba(249, 250, 251, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

/* --- Base Card Transitions --- */
.calc-option + div {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Hover Effect for Unselected Cards */
.calc-option:not(:disabled):not(:checked) + div:hover {
    border-color: #cbd5e1; /* Gray-300 */
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* --- Checked/Selected State Styling --- */
.calc-option:checked + div {
    border-color: #00C16A; /* iGrroww Green */
    background-color: rgba(0, 193, 106, 0.04);
    box-shadow: 0 10px 25px -5px rgba(0, 193, 106, 0.15);
    transform: translateY(-2px);
}

/* Add a subtle top border highlight on selected cards */
.calc-option:checked + div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #00C16A, #10b981);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* --- Checkmark Icon Animation --- */
.calc-option + div .check-icon {
    opacity: 0;
    transform: scale(0.5) rotate(-15deg);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy effect */
}

.calc-option:checked + div .check-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* --- Disabled/Locked Card Styling --- */
.calc-option:disabled + div {
    opacity: 0.8;
    background-color: #f8fafc;
    border-color: #e2e8f0;
}

/* --- Right Sidebar Custom Scrollbar (Optional but looks premium) --- */
#breakdown-list {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 10px;
}

#breakdown-list::-webkit-scrollbar {
    width: 4px;
}

#breakdown-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

#breakdown-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

#breakdown-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 193, 106, 0.8);
}