/* Custom styles that extend Tailwind */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;500;600;700&display=swap');

body {
    font-family: 'Inter', 'Noto Sans Arabic', sans-serif;
}

/* 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;
}

/* Animation for table rows */
tr {
    transition: all 0.2s ease;
}

tr:hover {
    background-color: #f8fafc;
}

/* Custom badge styles */
.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

/* Tooltip styles */
[tooltip] {
    position: relative;
}

[tooltip]:hover:after {
    content: attr(tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 10;
}

/* RTL Support for Arabic text */
.rtl-text {
    direction: rtl;
    text-align: right;
    font-family: 'Noto Sans Arabic', sans-serif;
}

/* Card hover lift effect */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #4F46E5 0%, #10B981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pulse animation for live indicators */
@keyframes pulse-green {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.pulse-live {
    animation: pulse-green 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Chart container fixes */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Smooth fade in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Stagger delay for multiple items */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }

/* Progress bar animation */
@keyframes progressFill {
    from { width: 0; }
}

.progress-animated {
    animation: progressFill 1.5s ease-out forwards;
}

/* Print styles for PDF export */
@media print {
    .no-print {
        display: none !important;
    }
    
    .shadow-md, .shadow-lg {
        box-shadow: none !important;
    }
    
    .bg-gradient-to-br, .bg-gradient-to-r {
        background: #fff !important;
        color: #000 !important;
    }
}

/* Table enhancement */
.data-table th {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

.data-table td {
    font-size: 0.875rem;
}

/* Icon wrapper */
.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.icon-wrapper:hover {
    transform: scale(1.1);
}