/* Custom Styles */

/* Smooth animations */
* {
    scroll-behavior: smooth;
}

/* Button hover effects */
button, .btn {
    transition: all 0.3s ease;
}

button:hover:not(:disabled), .btn:hover {
    transform: translateY(-2px);
}

button:active:not(:disabled), .btn:active {
    transform: translateY(0);
}

/* Image loading placeholder */
img {
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%;
    animation: shimmer 1.5s linear infinite;
}

img[src] {
    animation: none;
    background: none;
}

@keyframes shimmer {
    to {
        background-position: -200% 0;
    }
}

/* Link underline animation */
a {
    position: relative;
}

a.underline-effect::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: currentColor;
    transition: width 0.3s ease;
}

a.underline-effect:hover::after {
    width: 100%;
}

/* Card shadow on hover */
.card-hover {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card-hover:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-4px);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pulse animation for notifications */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Dark mode specific adjustments */
.dark-mode {
    color-scheme: dark;
}

.dark-mode .bg-gray-50 {
    background-color: #1f2937;
}

.dark-mode .bg-white {
    background-color: #111827;
}

.dark-mode .text-gray-800 {
    color: #f9fafb;
}

.dark-mode .text-gray-700 {
    color: #e5e7eb;
}

.dark-mode .text-gray-600 {
    color: #d1d5db;
}

.dark-mode .border-gray-300 {
    border-color: #374151;
}

/* RTL adjustments */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .text-left {
    text-align: right !important;
}

[dir="rtl"] .text-right {
    text-align: left !important;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .mobile-hide {
        display: none !important;
    }
}

/* Print styles */
@media print {
    header, footer, .no-print {
        display: none;
    }
}
