body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-shadow {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.emi-card {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    transition: all 0.3s ease;
}

.interest-card {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    transition: all 0.3s ease;
}

.total-card {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    transition: all 0.3s ease;
}

.emi-card:hover,
.interest-card:hover,
.total-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.slider-thumb::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #4f46e5;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.5);
    transition: all 0.2s ease;
}

.slider-thumb::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    background: #4338ca;
}

.slider-thumb::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #4f46e5;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.5);
}

.history-item {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.history-item:hover {
    transform: translateX(5px);
    border-left-color: #4f46e5;
    background-color: #f8fafc !important;
}

.loan-type-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.loan-type-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.loan-type-btn:active {
    transform: translateY(0);
}

.toast-message {
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4f46e5;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media print {
    body * {
        visibility: hidden;
    }

    #results,
    #results * {
        visibility: visible;
    }

    #results {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: white;
    }

    .no-print {
        display: none !important;
    }
}