/* ═══════════════════════════════════════
   AutoGlasi — Custom Styles
   ═══════════════════════════════════════ */

/* ─── Smooth scroll ─── */
html {
    scroll-behavior: smooth;
}

/* ─── Flash poruke — auto hide ─── */
.flash-msg {
    animation: flashIn 0.3s ease-out;
}

@keyframes flashIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Fokus stilovi za pristupačnost ─── */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(51, 141, 255, 0.15);
}

/* ─── Navbar dropdown animacija ─── */
.group:hover .group-hover\:visible {
    transition-delay: 0s;
}

/* ─── Placeholder stilizacija ─── */
::placeholder {
    color: #9ca3af;
}

/* ─── Selekcija teksta ─── */
::selection {
    background-color: rgba(51, 141, 255, 0.15);
    color: #1357e1;
}

/* ─── Scrollbar (Webkit) ─── */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ─── Loading skeleton ─── */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ─── Tranzicija za kartice ─── */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
}
