/* boliglan-specific.css - Boliglån-spesifikk styling */

/* Boliglån-spesifik gradient (blå/profesjonell finans-tema) */
body {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 25%, #60a5fa 75%, #93c5fd 100%);
}

.calculator-card {
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Boliglån-spesifikke resultat-bokser */
.results {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 5px solid #3b82f6;
}

.results h3 {
    color: #1e40af;
    margin-bottom: 20px;
    font-size: 1.4em;
}

/* Boliglån-spesifikke høydepunkter */
.calculate-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.calculate-btn:hover {
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
}

input[type="number"]:focus, select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.info-note {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Boliglån-tema spesifikke tilpasninger */
h2 {
    color: #1e40af !important;
}

/* Warning box for overskredet krav */
.warning-box {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #ef4444;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    color: #991b1b;
}

.warning-box strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #dc2626;
}

.warning-box ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.warning-box li {
    margin: 8px 0;
    line-height: 1.5;
}

/* Låneoversikt med graf */
.loan-breakdown {
    margin-top: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    border: 2px solid rgba(59, 130, 246, 0.2);
}

.loan-breakdown h4 {
    color: #1e40af;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.2em;
}

#loanChart {
    width: 100%;
    height: 300px;
    display: block;
}

/* Forbedrede resultat-items */
.result-item {
    padding: 15px 0;
    font-size: 1.05em;
}

.result-item:last-child {
    border-top: 3px solid #3b82f6;
    padding-top: 20px;
    margin-top: 10px;
    font-size: 1.3em;
    color: #1e40af;
}

.result-label {
    color: #1e40af;
    font-weight: 600;
}

.result-value {
    color: #1e3a8a;
    font-weight: 700;
    font-size: 1.1em;
}

/* Responsiv design for mindre skjermer */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
    }
    
    .loan-breakdown {
        padding: 15px;
    }
    
    #loanChart {
        height: 250px;
    }
    
    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Animasjoner for resultater */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results {
    animation: slideIn 0.5s ease-out;
}

.result-item {
    animation: slideIn 0.6s ease-out backwards;
}

.result-item:nth-child(1) { animation-delay: 0.1s; }
.result-item:nth-child(2) { animation-delay: 0.2s; }
.result-item:nth-child(3) { animation-delay: 0.3s; }
.result-item:nth-child(4) { animation-delay: 0.4s; }
.result-item:nth-child(5) { animation-delay: 0.5s; }
.result-item:nth-child(6) { animation-delay: 0.6s; }