/** * Admin Panel Style Improvements * تحسينات استايل لوحة التحكم */ /* ======================================== 1. Enhanced Color System ======================================== */ :root { /* Primary Colors */ --primary-50: #fdf2f8; --primary-100: #fce7f3; --primary-500: #E57393; --primary-600: #D1537A; --primary-700: #be185d; /* Status Colors */ --success: #10b981; --warning: #f59e0b; --danger: #ef4444; --info: #3b82f6; /* Shadows */ --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05); --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1); --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1); } /* ======================================== 2. Enhanced Stat Cards ======================================== */ .stat-card-enhanced { position: relative; padding: 24px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); color: white; } .stat-card-enhanced:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); } .stat-card-enhanced::before { content: ''; position: absolute; top: 0; right: 0; width: 100px; height: 100px; background: rgba(255, 255, 255, 0.1); border-radius: 50%; transform: translate(30%, -30%); } .gradient-pink { background: linear-gradient(135deg, #E57393 0%, #D1537A 100%); } .gradient-blue { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); } .gradient-green { background: linear-gradient(135deg, #10b981 0%, #059669 100%); } .gradient-yellow { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); } .gradient-purple { background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%); } .gradient-indigo { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); } .gradient-orange { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); } .stat-icon-enhanced { width: 60px; height: 60px; background: rgba(255, 255, 255, 0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 16px; animation: pulse-soft 2s infinite; } @keyframes pulse-soft { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } } .stat-number { font-size: 32px; font-weight: 700; margin: 8px 0; } .stat-change { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 12px; font-size: 12px; font-weight: 600; } .stat-change.positive { background: rgba(16, 185, 129, 0.2); color: #d1fae5; } .stat-change.negative { background: rgba(239, 68, 68, 0.2); color: #fee2e2; } /* ======================================== 3. Enhanced Tables ======================================== */ .table-enhanced { width: 100%; border-collapse: separate; border-spacing: 0; } .table-enhanced thead { position: sticky; top: 0; background: white; z-index: 10; box-shadow: 0 2px 4px rgba(0,0,0,0.05); } .table-enhanced thead th { padding: 16px; text-align: right; font-weight: 600; color: #374151; border-bottom: 2px solid #e5e7eb; } .table-enhanced tbody tr { transition: all 0.2s ease; background: white; } .table-enhanced tbody tr:hover { background: #f9fafb; transform: scale(1.01); box-shadow: 0 2px 8px rgba(0,0,0,0.08); } .table-enhanced tbody td { padding: 16px; border-bottom: 1px solid #f3f4f6; } /* ======================================== 4. Status Badges ======================================== */ .badge-enhanced { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; transition: all 0.2s ease; } .badge-enhanced:hover { transform: scale(1.05); } .badge-success { background: #d1fae5; color: #065f46; } .badge-warning { background: #fef3c7; color: #92400e; } .badge-danger { background: #fee2e2; color: #991b1b; } .badge-info { background: #dbeafe; color: #1e40af; } .badge-pending { background: #e0e7ff; color: #3730a3; } /* ======================================== 5. Enhanced Buttons ======================================== */ .btn-enhanced { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 10px; font-weight: 600; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border: none; cursor: pointer; font-size: 14px; } .btn-primary-enhanced { background: linear-gradient(135deg, #E57393 0%, #D1537A 100%); color: white; box-shadow: 0 4px 12px rgba(229, 115, 147, 0.3); } .btn-primary-enhanced:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(229, 115, 147, 0.4); } .btn-secondary-enhanced { background: white; color: #E57393; border: 2px solid #E57393; } .btn-secondary-enhanced:hover { background: #E57393; color: white; } .btn-icon-only { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; } /* ======================================== 6. Loading States ======================================== */ .skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: loading 1.5s infinite; border-radius: 4px; } @keyframes loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } } .skeleton-header { height: 24px; width: 60%; margin-bottom: 12px; } .skeleton-text { height: 16px; width: 100%; margin-bottom: 8px; } .skeleton-text.short { width: 40%; } /* ======================================== 7. Notification Badge ======================================== */ .notification-badge { position: absolute; top: -4px; right: -4px; background: #ef4444; color: white; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: bold; animation: bounce-badge 0.5s ease; } @keyframes bounce-badge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } } /* ======================================== 8. Card Enhancements ======================================== */ .card-enhanced { background: white; border-radius: 16px; padding: 24px; box-shadow: var(--shadow-md); transition: all 0.3s ease; } .card-enhanced:hover { box-shadow: var(--shadow-lg); } .card-header-enhanced { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px solid #f3f4f6; } .card-title-enhanced { font-size: 18px; font-weight: 700; color: #111827; display: flex; align-items: center; gap: 10px; } /* ======================================== 9. Breadcrumb Enhanced ======================================== */ .breadcrumb-enhanced { display: flex; align-items: center; gap: 12px; padding: 12px 0; font-size: 14px; } .breadcrumb-enhanced a { color: #6b7280; text-decoration: none; transition: color 0.2s ease; display: flex; align-items: center; gap: 6px; } .breadcrumb-enhanced a:hover { color: #E57393; } .breadcrumb-enhanced .separator { color: #d1d5db; font-size: 10px; } .breadcrumb-enhanced .current { color: #E57393; font-weight: 600; } /* ======================================== 10. Dark Mode Support ======================================== */ body.dark-mode { background-color: #0f172a; color: #e2e8f0; } body.dark-mode .card-enhanced { background: #1e293b; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); } body.dark-mode .table-enhanced thead { background: #1e293b; } body.dark-mode .table-enhanced tbody tr { background: #1e293b; } body.dark-mode .table-enhanced tbody tr:hover { background: #334155; } body.dark-mode .card-title-enhanced { color: #f1f5f9; } /* ======================================== 11. Animations ======================================== */ @keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } } .fade-in-up { animation: fadeInUp 0.5s ease; } @keyframes slideInRight { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } } .slide-in-right { animation: slideInRight 0.5s ease; } /* ======================================== 12. Responsive Utilities ======================================== */ @media (max-width: 768px) { .stat-card-enhanced { padding: 16px; } .stat-number { font-size: 24px; } .card-enhanced { padding: 16px; } }