/* Custom Styles for 3D Printing Cost Calculator */

:root {
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.05);
    --accent-red: #FF3B30;
}

/* Smooth Fade In Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    animation: fadeIn 0.6s ease-out forwards;
}

.glass-card-accent {
    background: #ffffff;
    border: 1px solid rgba(255, 59, 48, 0.1);
    box-shadow: 0 10px 40px -10px rgba(255, 59, 48, 0.15);
    animation: fadeIn 0.8s ease-out forwards;
}

/* Input Focus Glow */
input:focus {
    box-shadow: 0 0 15px rgba(255, 59, 48, 0.15);
}

/* Remove Arrows from Number Inputs */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

/* Custom Scrollbar for modern look */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #FAF6E3;
}

::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

/* Responsive Grid Adjustments */
@media (max-width: 640px) {
    .glass-card {
        padding: 1.25rem;
    }
}

/* Micro-animations for numbers */
.number-update-pulse {
    animation: pulseHighlight 0.3s ease-out;
}

@keyframes pulseHighlight {
    0% { transform: scale(1); color: #2D2D2D; }
    50% { transform: scale(1.05); color: #FF3B30; }
    100% { transform: scale(1); color: #2D2D2D; }
}
