/**
 * NPL Market Dashboard - Custom Styles
 * BKS Corporate Design
 */

/* BKS Corporate Design Fonts */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 300;
}
h1, h2, h3, h4, h5, h6, .font-bold, .font-medium {
    font-weight: 500;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}
.toast {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease;
}
.toast-success { background: #22c55e; color: white; }
.toast-error { background: #ef4444; color: white; }
.toast-info { background: #006699; color: white; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}
.toast-exit { animation: slideOut 0.3s ease forwards; }

/* Loading spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff40;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    margin-right: 8px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Tooltip styles */
.tooltip-container {
    position: relative;
}
.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: normal;
    max-width: 250px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 50;
    margin-bottom: 8px;
    line-height: 1.4;
}
.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1f2937;
}
.tooltip-container:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* Vue cloak */
[v-cloak] { display: none; }

/* Header gradient */
.gradient-header {
    background: linear-gradient(135deg, #004466 0%, #006699 50%, #0088bb 100%);
}

/* Transitions */
.fade-enter-active, .fade-leave-active {
    transition: opacity 0.3s ease;
}
.fade-enter-from, .fade-leave-to {
    opacity: 0;
}

/* KPI Cards */
.kpi-card {
    transition: all 0.3s ease;
}
.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Fullscreen modal */
.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fullscreen-chart {
    width: 95vw;
    height: 85vh;
    background: white;
    border-radius: 12px;
    padding: 20px;
}

/* Macro panel */
.macro-panel {
    transition: all 0.3s ease;
}

/* Correlation bar - farbenblinde-freundlich: Orange (negativ) → Grau → Blau (positiv) */
.correlation-bar {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #ea580c 0%, #fdba74 25%, #d1d5db 50%, #93c5fd 75%, #2563eb 100%);
}

/* Lag slider */
.lag-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #006699 0%, #e5e7eb 50%, #f97316 100%);
    outline: none;
}
.lag-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #006699;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.lag-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #006699;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border: none;
}
