

/* === Smooth Scrolling === */
html {
    scroll-behavior: smooth;
}

/* === Loading Animation === */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading-shimmer {
    animation: shimmer 2s infinite;
    background: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-size: 1000px 100%;
}

/* === Image Hover Effects === */
.image-hover-zoom {
    overflow: hidden;
    border-radius: 12px;
}

.image-hover-zoom img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-hover-zoom:hover img {
    transform: scale(1.1);
}

/* === Card Hover Effects === */
.card-hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

/* === Text Gradient === */
.text-gradient {
    background: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Button Ripple Effect === */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ripple:hover::after {
    width: 300px;
    height: 300px;
}

/* === Glassmorphism Cards === */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* === Floating Animation === */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* === Fade In Animation === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

/* === Slide In Animations === */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

/* === Progress Bar === */
.progress-bar-modern {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #4F46E5 0%, #06B6D4 100%);
    position: relative;
    overflow: hidden;
}

.progress-bar-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

/* === Badge Modern === */
.badge-modern {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
}

/* === Tooltip Modern === */
.tooltip-modern {
    position: relative;
}

.tooltip-modern::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 8px 12px;
    background: rgba(31, 41, 55, 0.95);
    color: white;
    border-radius: 8px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
}

.tooltip-modern:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* === Skeleton Loading === */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* === Improved Focus States === */
*:focus {
    outline: none;
}

button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    border-color: #4F46E5;
}

/* === Custom Scrollbar === */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #4338CA 0%, #0891B2 100%);
}

/* === Selection Color === */
::selection {
    background: rgba(79, 70, 229, 0.2);
    color: #1F2937;
}

::-moz-selection {
    background: rgba(79, 70, 229, 0.2);
    color: #1F2937;
}

/* === Improved Table Styles === */
table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

table thead {
    background: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
    color: white;
}

table thead th {
    padding: 16px;
    font-weight: 600;
    text-align: left;
}

table tbody tr {
    transition: background-color 0.3s ease;
}

table tbody tr:hover {
    background-color: rgba(79, 70, 229, 0.05);
}

table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #E5E7EB;
}

/* === Alert Modern === */
.alert-modern {
    padding: 16px 20px;
    border-radius: 12px;
    border-left: 4px solid;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.alert-modern.success {
    border-left-color: #10B981;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 0%, white 100%);
}

.alert-modern.info {
    border-left-color: #06B6D4;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.1) 0%, white 100%);
}

.alert-modern.warning {
    border-left-color: #F59E0B;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.1) 0%, white 100%);
}

.alert-modern.error {
    border-left-color: #EF4444;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.1) 0%, white 100%);
}

/* === Improved Form Styles === */
.form-modern input[type="text"],
.form-modern input[type="email"],
.form-modern input[type="tel"],
.form-modern textarea,
.form-modern select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-modern input:focus,
.form-modern textarea:focus,
.form-modern select:focus {
    border-color: #4F46E5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.form-modern label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1F2937;
}

/* === Improved Breadcrumb === */
.breadcrumb-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.breadcrumb-modern li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
}

.breadcrumb-modern li::after {
    content: '›';
    margin-left: 8px;
    opacity: 0.6;
}

.breadcrumb-modern li:last-child::after {
    display: none;
}

/* === Responsive Improvements === */
@media (max-width: 768px) {
    .glass-card {
        border-radius: 12px;
    }
    
    .tooltip-modern::before {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
    
    table {
        font-size: 0.875rem;
    }
    
    table thead th,
    table tbody td {
        padding: 10px 12px;
    }
}

/* === Print Styles === */
@media print {
    .no-print,
    header,
    footer,
    .scrollup,
    .navbar,
    .breadcrumb {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
}

/* === Accessibility Improvements === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #4F46E5;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* === Dark Mode Support (Optional) === */
@media (prefers-color-scheme: dark) {
    /* Ovde možete da dodadete dark mode stilovi ako sakate */
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
