/* 2024 Modern UI Geliştirmeleri */

/* Micro-interactions */
button, .btn, a.btn {
    position: relative;
    overflow: hidden;
}

button:active, .btn:active {
    transform: scale(0.98);
}

/* Card Hover Effects */
.card, .product-card {
    will-change: transform;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Modern Focus States */
*:focus-visible {
    outline: 3px solid rgba(26, 60, 123, 0.4);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Modern Input States */
input:focus,
textarea:focus,
select:focus {
    transform: translateY(-2px);
}

/* Modal Animations */
.modal.fade .modal-dialog {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    transform: scale(0.9);
}

.modal.show .modal-dialog {
    transform: scale(1);
}

/* Alert Modern Style */
.alert {
    border-radius: 16px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.alert-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
    color: #166534;
    border-left: 4px solid #22c55e;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
    color: #854d0e;
    border-left: 4px solid #ffc107;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert-info {
    background: linear-gradient(135deg, rgba(26, 60, 123, 0.1) 0%, rgba(26, 60, 123, 0.05) 100%);
    color: var(--primary);
    border-left: 4px solid var(--primary);
}

/* Badge Modern */
.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.75rem;
}

/* Table Modern */
.table-hover tbody tr {
    transition: all 0.3s ease;
}

.table-hover tbody tr:hover {
    background: rgba(26, 60, 123, 0.03);
    transform: scale(1.01);
}

/* List Group Modern */
.list-group-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    margin-bottom: 0.25rem;
}

.list-group-item:hover {
    transform: translateX(8px);
}

.list-group-item.active {
    background: linear-gradient(135deg, var(--primary) 0%, #0F2548 100%);
    border-left: 4px solid var(--accent);
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Tooltip Modern */
.tooltip {
    backdrop-filter: blur(10px);
}

/* Progress Bar Modern */
.progress {
    border-radius: 12px;
    height: 8px;
    background: rgba(222, 226, 230, 0.3);
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    background-size: 200% 100%;
    animation: progress-animation 2s linear infinite;
}

@keyframes progress-animation {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Dark mode stilleri buraya eklenebilir */
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

