/* Custom styles to complement Tailwind CSS */
#media-library-modal {
    z-index: 99999 !important;
}

/* RTL text direction for Arabic content */
.rtl-text {
    direction: rtl;
    text-align: right;
}

/* Custom gradient for stat cards */
.stat-gradient {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Smooth hover animations */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Custom scrollbar for modal content */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Animation for post cards */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Loading spinner */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Table styling improvements */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mobile responsive table */
@media (max-width: 640px) {
    .table-responsive {
        font-size: 0.75rem;
    }

    .table-responsive td {
        padding: 0.5rem 0.25rem;
    }

    .table-responsive .hidden {
        display: none !important;
    }
}

/* Status badges animations */
.status-badge {
    animation: fadeIn 0.3s ease-in-out;
}