/* Custom styles for RTL and Arabic support */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700&display=swap');

body {
    font-family: 'Tajawal', sans-serif;
}

/* RTL specific adjustments */
.rtl {
    direction: rtl;
    text-align: right;
}

/* Table styles */
.table-auto {
    direction: rtl;
}

.table-auto th,
.table-auto td {
    text-align: right;
}

/* Tab styles */
.tab-btn {
    transition: all 0.3s ease;
}

.tab-btn.active {
    border-bottom-color: #3B82F6;
    color: #3B82F6;
}

/* Card hover effects */
.bg-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.fa-spin {
    animation: spin 1s linear infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-4 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .grid-cols-1.md\\:grid-cols-4 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

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

/* Status badges */
.badge-success {
    background-color: #10B981;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-danger {
    background-color: #EF4444;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Transaction type colors */
.transaction-incoming {
    background-color: #F0FDF4;
    border-right: 4px solid #10B981;
}

.transaction-outgoing {
    background-color: #FEF2F2;
    border-right: 4px solid #EF4444;
}

/* Filter section enhancements */
.filter-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Statistics card animations */
@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.stat-card {
    animation: slideInUp 0.5s ease-out;
}

/* Button hover effects */
.btn-hover {
    transition: all 0.3s ease;
}

.btn-hover:hover {
    transform: scale(1.05);
}

/* Table row hover effects */
.table-row-hover:hover {
    background-color: #F9FAFB;
    transition: background-color 0.2s ease;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Alert styles */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border-right-width: 4px;
    border-right-style: solid;
}

.alert-success {
    background-color: #F0FDF4;
    border-right-color: #10B981;
    color: #065F46;
}

.alert-error {
    background-color: #FEF2F2;
    border-right-color: #EF4444;
    color: #991B1B;
}

.alert-info {
    background-color: #EFF6FF;
    border-right-color: #3B82F6;
    color: #1E40AF;
}
