/* ─── Dashboard tab ────────────────────────────────────────────────── */
.welcome-section {
    margin-bottom: 26px;
}

.welcome-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.welcome-title {
    flex: 1;
    min-width: 240px;
}

.welcome-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.welcome-section p {
    color: var(--text-secondary);
    font-size: 0.98rem;
}

/* ─── Rotirajuće zanimljivosti ──────────────────────────────────────── */

.tips-banner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 420px;
    padding: 10px 14px;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: var(--radius, 10px);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
    transition: opacity 400ms ease, transform 400ms ease;
}

.tips-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: #60a5fa;
}

.tips-icon svg {
    width: 100%;
    height: 100%;
}

.tips-text {
    font-size: 0.88rem;
    line-height: 1.4;
    color: #f8fafc;
}

.tips-banner.tips-fade-out {
    opacity: 0;
    transform: translateY(4px);
}

@media (max-width: 720px) {
    .welcome-header {
        flex-direction: column;
    }

    .tips-banner {
        max-width: 100%;
        width: 100%;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 26px;
}

.stat-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon.blue { background: rgba(37, 99, 235, 0.15); color: var(--primary); }
.stat-icon.green { background: rgba(16, 185, 129, 0.15); color: var(--green); }
.stat-icon.orange { background: rgba(245, 158, 11, 0.15); color: var(--orange); }
.stat-icon.red { background: rgba(239, 68, 68, 0.15); color: var(--red); }

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 22px;
}

.info-card {
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.info-card p {
    opacity: 0.9;
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.info-card code {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

.car-interest-section .car-interest-list {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Svetla tema ──────────────────────────────────────────────────── */
[data-theme="light"] .tips-banner {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.18);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .tips-icon {
    color: var(--primary);
}

[data-theme="light"] .tips-text {
    color: var(--text);
}

[data-theme="light"] .info-card {
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    color: #fff;
}

[data-theme="light"] .info-card code {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}
