/* tilhengervekt-specific.css - Tilhengervekt-kalkulator styling */

/* Transport/bil-tema: gul/oransje gradient */
body {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 25%, #ea580c 75%, #c2410c 100%);
}

.calculator-card {
    border: 2px solid rgba(245, 158, 11, 0.3);
}

/* Resultat-bokser */
.results {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-left: 5px solid #f59e0b;
}

.breakdown {
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.1);
}

.breakdown h3 {
    color: #d97706;
    margin-bottom: 15px;
    font-size: 1.1em;
    border-bottom: 2px solid rgba(245, 158, 11, 0.2);
    padding-bottom: 10px;
}

/* Knapper og fokus */
.calculate-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.calculate-btn:hover {
    box-shadow: 0 15px 30px rgba(245, 158, 11, 0.4);
}

input[type="number"]:focus, select:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.info-note {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Resultatboks styling */
.result-box {
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    text-align: center;
}

.result-box.legal {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid #10b981;
}

.result-box.illegal {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #ef4444;
}

.result-status {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 10px;
}

.result-box.legal .result-status {
    color: #059669;
}

.result-box.illegal .result-status {
    color: #dc2626;
}

.result-detail {
    font-size: 1em;
    color: #374151;
    margin-top: 8px;
}

/* Begrensning-info */
.constraint-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
}

.constraint-box h4 {
    color: #d97706;
    margin-bottom: 10px;
    font-size: 1em;
}

.constraint-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
    font-size: 0.95em;
}

.constraint-item:last-child {
    border-bottom: none;
}

.constraint-item.binding {
    background: rgba(245, 158, 11, 0.15);
    margin: 0 -15px;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 600;
}

/* Lisensklasse-velger */
.licence-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.licence-btn {
    flex: 1;
    padding: 12px 8px;
    border: 2px solid #d97706;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    text-align: center;
}

.licence-btn.active {
    background: #d97706;
    color: white;
}

.licence-btn:hover:not(.active) {
    background: rgba(217, 119, 6, 0.08);
}

.licence-btn small {
    display: block;
    font-weight: 400;
    font-size: 11px;
    margin-top: 4px;
    opacity: 0.8;
}

/* Vekttabell */
.weight-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 0.9em;
}

.weight-table th,
.weight-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.weight-table th {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
    font-weight: 600;
}

.weight-table tr:last-child td {
    border-bottom: none;
}

/* Trailer type toggle */
.trailer-type-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.toggle-btn {
    flex: 1;
    padding: 10px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.toggle-btn.active {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
}

.toggle-btn:hover:not(.active) {
    border-color: #fbbf24;
}

/* Info-boxes */
.info-box {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
    margin-top: 10px;
    font-size: 0.9em;
    color: #1e40af;
}

.warning-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
    margin-top: 10px;
    font-size: 0.9em;
    color: #b91c1c;
}

.success-box {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
    margin-top: 10px;
    font-size: 0.9em;
    color: #047857;
}

/* Breakdown items */
.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-label {
    color: #6b7280;
    font-size: 0.95em;
}

.breakdown-value {
    font-weight: 600;
    color: #1f2937;
}

/* Max weight highlight */
.max-weight-display {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    margin-top: 15px;
}

.max-weight-display .label {
    font-size: 0.9em;
    color: #92400e;
    margin-bottom: 5px;
}

.max-weight-display .value {
    font-size: 1.8em;
    font-weight: 700;
    color: #d97706;
}

.max-weight-display .unit {
    font-size: 0.9em;
    color: #92400e;
}

/* Responsive */
@media (max-width: 600px) {
    .licence-selector {
        flex-direction: column;
    }

    .licence-btn {
        padding: 15px;
    }

    .trailer-type-toggle {
        flex-direction: column;
    }

    .constraint-item {
        flex-direction: column;
        gap: 4px;
    }
}
