/* Custom styles for Event Management System */

/* RTL Support */
body {
    direction: rtl;
    text-align: right;
    font-family: 'Vazirmatn', Tahoma, Geneva, Verdana, sans-serif;
}
.font-sans{font-family: 'Vazirmatn', Tahoma, Geneva, Verdana, sans-serif !important;}
/* Print styles */
@media print {
    nav, footer, button, a[href*="/delete"], a[href*="/edit"] {
        display: none !important;
    }
    
    main {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .shadow {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Form improvements */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Smooth transitions */
a, button {
    transition: all 0.2s ease-in-out;
}

/* Table responsive */
@media (max-width: 768px) {
    table {
        font-size: 0.875rem;
    }
    
    .px-6 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .py-4 {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
}

/* Card hover effect */
.bg-white.shadow.rounded-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

/* Flash message animation */
[role="alert"] {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu animation */
#mobile-menu {
    transition: max-height 0.3s ease-out;
    overflow: hidden;
}

#mobile-menu.hidden {
    max-height: 0;
}

#mobile-menu:not(.hidden) {
    max-height: 500px;
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #3b82f6;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
