body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
    background-image:
        radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #1f2937;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.1); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.5); }

/* Input Range Customization */
input[type=range] { 
    -webkit-appearance: none; 
    background: transparent; 
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; 
    height: 16px; 
    width: 16px;
    border-radius: 50%; 
    margin-top: -6px;
    cursor: pointer; 
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
    background: currentColor;
}

input[type=range]::-webkit-slider-thumb:hover { 
    transform: scale(1.1); 
}

input[type=range]::-webkit-slider-runnable-track { 
    width: 100%; 
    height: 4px; 
    cursor: pointer; 
    background: #e5e7eb; 
    border-radius: 2px; 
}

/* Colors for sliders */
#remainingCapitalRange, #bankMarginRange, #referenceRateRange, #fixedRateRange { color: #4f46e5; }
#overpaymentRange { color: #10b981; }
#stressRateRange { color: #ef4444; }

/* Glass effect panel */
.glass-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.input-group:focus-within label { 
    color: #4f46e5; 
}

/* === NOWE STYLE DLA KART === */

/* Interest Type Cards */
.interest-card {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: white;
}

.interest-card:hover {
    border-color: #c7d2fe;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

.interest-card.active {
    border-color: #4f46e5;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.interest-card .check-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.interest-card.active .check-icon {
    background: #4f46e5;
    border-color: #4f46e5;
    color: white;
}

.interest-card:not(.active) .check-icon i {
    display: none;
}

/* Payment Type Cards */
.payment-card {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.payment-card:hover {
    border-color: #c7d2fe;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

.payment-card.active {
    border-color: #4f46e5;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.payment-card .check-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.payment-card.active .check-icon {
    background: #4f46e5;
    border-color: #4f46e5;
    color: white;
}

.payment-card:not(.active) .check-icon i {
    display: none;
}

/* Overpayment Type Cards */
.overpay-card {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.overpay-card:hover {
    border-color: #a7f3d0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.overpay-card.active {
    border-color: #10b981;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.overpay-card i {
    color: #6b7280;
    transition: all 0.3s;
}

.overpay-card.active i {
    color: #10b981;
    transform: scale(1.1);
}

/* Strategy Cards */
.strategy-card {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    margin-bottom: 0.5rem;
}

.strategy-card:hover {
    border-color: #c7d2fe;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

.strategy-card:has(input:checked) {
    border-color: #10b981;
    background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.strategy-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.strategy-card:has(input:checked) .strategy-icon {
    background: #10b981;
    color: white;
    transform: scale(1.05);
}

.strategy-card:hover .strategy-icon {
    transform: scale(1.05);
}

/* Toggle Switches */
input[type="checkbox"].toggle {
    position: relative;
    width: 3rem;
    height: 1.5rem;
    appearance: none;
    background: #d1d5db;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s;
}

input[type="checkbox"].toggle:checked {
    background: #10b981;
}

input[type="checkbox"].toggle::before {
    content: '';
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    background: white;
    border-radius: 50%;
    top: 0.125rem;
    left: 0.125rem;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input[type="checkbox"].toggle:checked::before {
    left: 1.625rem;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-panel {
    animation: slideIn 0.4s ease-out;
}

/* Hover effects */
.glass-panel:hover {
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.15), 0 15px 15px -5px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modal */
#compareModal.flex {
    display: flex !important;
}

/* Button Gradients */
button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button:hover {
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* Print Styles */
@media print {
    body { 
        background: white; 
        color: black; 
    }
    .no-print { 
        display: none !important; 
    }
    .glass-panel { 
        box-shadow: none; 
        border: 1px solid #ddd; 
        break-inside: avoid; 
        page-break-inside: avoid;
    }
    main { 
        display: block; 
        width: 100%; 
    }
    .lg\:col-span-8 { 
        width: 100%; 
    }
    #tableContainer { 
        max-height: none; 
        overflow: visible; 
    }
    canvas { 
        max-height: 300px; 
    }
}

/* Responsive */
@media (max-width: 768px) {
    .glass-panel {
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .grid {
        gap: 0.75rem;
    }
}