/* Main Styles for EduSphere Nexus Platform */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #4361ee, #3a0ca3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #3a0ca3, #7209b7);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Arabic Font Support */
body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

/* Glass Morphism Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

/* Gradient Text */
.gradient-text {
    background: linear-gradient(45deg, #4361ee, #7209b7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Form Input Styling */
.form-input {
    @apply w-full px-4 py-3 border border-gray-300 rounded-xl focus:ring-2 focus:ring-primary focus:border-transparent transition duration-200;
}

.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

/* Button Base Styles */
.btn-primary {
    @apply bg-primary hover:bg-primary/90 text-white font-semibold py-3 px-6 rounded-xl transition duration-200 transform hover:-translate-y-1 active:scale-95;
}

.btn-secondary {
    @apply bg-secondary hover:bg-secondary/90 text-white font-semibold py-3 px-6 rounded-xl transition duration-200;
}

.btn-outline {
    @apply border-2 border-primary text-primary hover:bg-primary hover:text-white font-semibold py-3 px-6 rounded-xl transition duration-200;
}

/* Badge Styles */
.badge {
    @apply inline-flex items-center px-3 py-1 rounded-full text-sm font-semibold;
}

.badge-primary {
    @apply bg-primary/10 text-primary;
}

.badge-success {
    @apply bg-success/10 text-success;
}

.badge-warning {
    @apply bg-warning/10 text-warning;
}

.badge-accent {
    @apply bg-accent/10 text-accent;
}

/* Table Styles */
.data-table {
    @apply w-full bg-white rounded-xl overflow-hidden shadow-lg;
}

.data-table th {
    @apply bg-gray-50 text-right py-4 px-6 font-semibold text-gray-700 border-b;
}

.data-table td {
    @apply py-4 px-6 border-b border-gray-100;
}

.data-table tr:hover {
    @apply bg-gray-50;
}

/* Card Styles */
.card {
    @apply bg-white rounded-2xl shadow-lg hover:shadow-2xl transition duration-300;
}

.card-header {
    @apply border-b border-gray-100 py-4 px-6;
}

.card-body {
    @apply p-6;
}

.card-footer {
    @apply border-t border-gray-100 py-4 px-6;
}

/* Stat Card */
.stat-card {
    @apply card text-center p-6;
}

.stat-card .stat-value {
    @apply text-3xl font-bold text-dark mb-2;
}

.stat-card .stat-label {
    @apply text-gray-600 text-sm;
}

/* Progress Bar */
.progress-bar {
    @apply w-full bg-gray-200 rounded-full h-3 overflow-hidden;
}

.progress-bar-fill {
    @apply h-full rounded-full bg-gradient-to-r from-primary to-success transition-all duration-500;
}

/* Tooltip */
.tooltip {
    @apply invisible absolute z-50 inline-block px-3 py-2 text-sm font-medium text-white bg-gray-900 rounded-lg shadow-sm opacity-0 transition-opacity duration-300;
}

.has-tooltip:hover .tooltip {
    @apply visible opacity-100;
}

/* Modal Backdrop */
.modal-backdrop {
    @apply fixed inset-0 bg-black/50 z-40 transition-opacity duration-300;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Utilities */
@media (max-width: 640px) {
    .mobile-stack {
        flex-direction: column !important;
    }
    
    .mobile-full {
        width: 100% !important;
    }
    
    .mobile-center {
        text-align: center !important;
    }
}
/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        color: black !important;
        background: white !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Dashboard specific styles */
#activity-chart {
    direction: ltr;
}

.btn-primary {
    @apply bg-primary hover:bg-primary/90 text-white font-semibold py-3 px-6 rounded-xl transition duration-200 transform hover:-translate-y-1 active:scale-95;
}

.btn-outline {
    @apply border-2 border-primary text-primary hover:bg-primary hover:text-white font-semibold py-3 px-6 rounded-xl transition duration-200;
}
