/* Glassmorphism & High-end CSS pro TRAFOstatistika */
.trafo-container {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.08);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1e293b;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.trafo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
}

.trafo-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

.trafo-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #10b981;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

.trafo-btn:hover {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -2px rgba(16, 185, 129, 0.4);
}

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

.trafo-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.trafo-kpi-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.trafo-kpi-card:hover {
    transform: translateY(-4px);
    border-color: #94a3b8;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.trafo-kpi-title {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.trafo-kpi-card strong {
    font-size: 1.8rem;
    color: #0f172a;
    font-weight: 800;
}

.trafo-chart-container {
    height: 500px;
    width: 100%;
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.trafo-loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: trafo-spin 1s linear infinite;
}

@keyframes trafo-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .trafo-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}
