/* Overlay pour mobile quand la sidebar est ouverte */ .mobile-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); z-index: 999; opacity: 0; transition: opacity 0.3s ease; } .mobile-overlay.active { display: block; opacity: 1; } /* Amélioration des transitions et animations */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif; background: #0f1419; color: #e4e7ea; min-height: 100vh; line-height: 1.6; overflow-x: hidden; scroll-behavior: smooth; } .app-layout { display: flex; min-height: 100vh; } .sidebar { width: 280px; background: #1a1f29; border-right: 1px solid #2a3441; position: fixed; height: 100vh; left: 0; top: 0; z-index: 1000; overflow-y: auto; transition: transform 0.3s ease; display: flex; flex-direction: column; } .sidebar-header { padding: 1.5rem; border-bottom: 1px solid #2a3441; background: #151a23; } .sidebar-header h1 { font-size: 1.4rem; font-weight: 600; color: #5d90fd; margin: 0; display: flex; align-items: center; gap: 0.5rem; } .nav-menu { list-style: none; padding: 1rem 0; flex: 1; } .nav-menu li { margin: 0.25rem 0; } .nav-link { display: flex; align-items: center; gap: 0.75rem; color: #9ca3af; text-decoration: none; padding: 0.75rem 1.5rem; margin: 0 0.5rem; border-radius: 8px; transition: all 0.2s ease; font-weight: 500; font-size: 0.9rem; } .nav-link i { width: 16px; text-align: center; font-size: 0.875rem; opacity: 0.8; } .nav-link:hover { background: #2a3441; color: #e4e7ea; transform: translateX(4px); } .nav-link.active { background: #6366f1; color: #ffffff; } .reports-badge { background: #ef4444; color: #ffffff; font-size: 0.7rem; font-weight: 600; padding: 0.2rem 0.4rem; border-radius: 50%; margin-left: 0.5rem; min-width: 1.2rem; height: 1.2rem; display: inline-flex; align-items: center; justify-content: center; animation: pulse 2s infinite; } @keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } } .main-content { flex: 1; margin-left: 280px; background: #0f1419; min-height: 100vh; } .content-header { background: #151a23; border-bottom: 1px solid #2a3441; padding: 1.5rem 2rem; position: sticky; top: 0; z-index: 100; } .content-header h2 { font-size: 1.5rem; font-weight: 600; color: #e4e7ea; margin: 0; display: flex; align-items: center; gap: 0.5rem; } .content-body { padding: 2rem; } .content-section { display: none; } .content-section.active { display: block; animation: fadeIn 0.3s ease-out; } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 0.5rem; margin-top: -1.5rem; padding: 0.5rem; } .stat-card { background: #1a1f29; border: 1px solid #2a3441; padding: 1.5rem; border-radius: 12px; position: relative; overflow: hidden; } .stat-card h3 { margin-bottom: 1rem; color: #9ca3af; font-size: 0.875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; } .stat-number { font-size: 2.25rem; font-weight: 700; color: #e4e7ea; line-height: 1; } button { padding: 0.5rem 1rem; border: none; border-radius: 6px; cursor: pointer; transition: all 0.2s ease; font-weight: 500; font-size: 0.875rem; display: inline-flex; align-items: center; gap: 0.375rem; } .btn-primary { background: #6366f1; color: #ffffff; padding: 0.75rem 1.5rem; font-size: 0.9rem; } .btn-primary:hover { background: #5b5cf6; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4); } .btn-secondary { background: #374151; color: #e4e7ea; border: 1px solid #4b5563; } .btn-secondary:hover { background: #4b5563; border-color: #6b7280; } .mobile-nav-toggle { display: none; position: fixed; top: 1rem; left: 1rem; z-index: 1100; background: #6366f1; border: none; border-radius: 8px; padding: 0.75rem; color: white; cursor: pointer; font-size: 1.2rem; box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4); transition: all 0.2s ease; } /* Style du bouton quand la sidebar est ouverte - le faire disparaître */ .sidebar.open ~ .main-content .mobile-nav-toggle, .mobile-nav-toggle.sidebar-open { opacity: 0; visibility: hidden; transform: scale(0.8); } /* Amélioration des cartes statistiques */ .stat-card { background: #1a1f29; border: 1px solid #2a3441; padding: 1.5rem; border-radius: 12px; transition: all 0.3s ease; position: relative; overflow: hidden; } .stat-card h3 { margin-bottom: 1rem; color: #9ca3af; font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; display: flex; align-items: center; gap: 0.5rem; } .stat-number { font-size: 2.5rem; font-weight: 800; color: #e4e7ea; line-height: 1; background: linear-gradient(135deg, #e4e7ea, #9ca3af); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 0.5rem; } .stat-description { font-size: 0.8rem; color: #6b7280; margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid #2a3441; } /* Responsive Design amélioré */ @media (max-width: 1200px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } .sidebar { width: 260px; } .main-content { margin-left: 260px; } } @media (max-width: 992px) { .sidebar { width: 240px; } .main-content { margin-left: 240px; } .content-body { padding: 1.5rem; } .stat-number { font-size: 2.25rem; } } @media (max-width: 768px) { .mobile-nav-toggle { display: block; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); } .sidebar { transform: translateX(-100%); width: 280px; box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3); } .sidebar.open { transform: translateX(0); } .main-content { margin-left: 0; width: 100%; } .content-header { padding: 1rem 1rem 1rem 70px; margin-left: 0; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 99; } .content-body { padding: 1rem; padding-top: 1rem; } .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; margin-bottom: 0.25rem; margin-top: 0.25rem; } .stat-card { padding: 0.4rem; text-align: center; } .stat-number { font-size: 1rem; } .btn-primary { width: 100%; justify-content: center; } } @media (max-width: 480px) { .content-header { padding: 1rem 1rem 1rem 60px; margin-left: 0; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 99; } .content-header h2 { font-size: 1.25rem; flex: 1; } .content-body { padding: 0.75rem; } .stat-card { padding: 0.3rem; border-radius: 6px; text-align: center; } .stat-number { font-size: 0.9rem; } .stat-card h3 { font-size: 0.6rem; margin-bottom: 0.2rem; justify-content: center; } .mobile-nav-toggle { top: 0.75rem; left: 0.75rem; padding: 0.5rem; font-size: 1.1rem; } } /* Ajout de classes spécifiques pour les cartes */ .stat-card.players-online { border-left: 4px solid #10b981; } .stat-card.daily-record { border-left: 4px solid #f59e0b; } .stat-card.staff-online { border-left: 4px solid #8b5cf6; } .stat-card.reports-handled { border-left: 4px solid #06b6d4; } /* Icônes pour les cartes */ .stat-card .stat-icon { position: absolute; top: 1rem; right: 1rem; font-size: 2rem; opacity: 0.1; } .stat-card.players-online .stat-icon { color: #10b981; } .stat-card.daily-record .stat-icon { color: #f59e0b; } .stat-card.staff-online .stat-icon { color: #8b5cf6; } .stat-card.reports-handled .stat-icon { color: #06b6d4; } /* Animation pour les nombres */ .stat-number.animated { animation: countUp 1s ease-out; } @keyframes countUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } /* Indicateur de status pour les cartes */ .stat-status { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.7rem; font-weight: 600; padding: 0.2rem 0.5rem; border-radius: 12px; margin-top: 0.5rem; } .stat-status.online { background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); } .stat-status.high { background: rgba(245, 158, 11, 0.1); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.2); } .stat-status.active { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; border: 1px solid rgba(139, 92, 246, 0.2); } .stat-status.completed { background: rgba(6, 182, 212, 0.1); color: #06b6d4; border: 1px solid rgba(6, 182, 212, 0.2); } .stat-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; } .text-muted { color: #9ca3af; } .text-success { color: #10b981; } .text-warning { color: #f59e0b; } .text-error { color: #ef4444; } .bg-card { background: #1a1f29; border: 1px solid #2a3441; } ::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: #1a1f29; } ::-webkit-scrollbar-thumb { background: #6366f1; border-radius: 3px; } button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #6366f1; outline-offset: 2px; } .notification { position: fixed; top: 20px; right: 20px; z-index: 1000; max-width: 280px; min-width: 220px; padding: 8px 12px; border-radius: 4px; font-size: 0.8rem; font-weight: 500; color: #e4e7ea; backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); transform: translateX(450px); animation: slideIn 0.5s ease forwards; } @keyframes slideIn { to { transform: translateX(0); opacity: 1; } } .notification.slide-out { animation: slideOut 0.3s ease forwards; } @keyframes slideOut { to { transform: translateX(450px); opacity: 0; } } .notification.success { background: rgba(16, 185, 129, 0.2); border-left: 2px solid #10b981; } .notification.error { background: rgba(239, 68, 68, 0.2); border-left: 2px solid #ef4444; } .notification.warning { background: rgba(245, 158, 11, 0.2); border-left: 2px solid #f59e0b; } .notification.info { background: rgba(14, 165, 233, 0.2); border-left: 2px solid #0ea5e9; } .notification:hover { transform: translateX(-5px) scale(1.02); transition: all 0.2s ease; } .sidebar-footer { padding: 1rem; border-top: 1px solid #2a3441; margin-top: auto; } .user-profile { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; background: rgba(93, 144, 253, 0.1); border: 1px solid rgba(93, 144, 253, 0.2); border-radius: 10px; transition: all 0.3s ease; } .user-profile:hover { background: rgba(93, 144, 253, 0.15); border-color: rgba(93, 144, 253, 0.3); } .user-avatar { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: #2a3441; display: flex; align-items: center; justify-content: center; } .user-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; } .user-avatar .loading-spinner { font-size: 0.7rem; color: #6b7280; } .user-info { flex: 1; min-width: 0; } .user-name { font-size: 0.8rem; font-weight: 600; color: #e4e7ea; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.1; } .user-group { font-size: 0.6rem; font-weight: 600; color: #10b981; background: rgba(16, 185, 129, 0.12); padding: 1px 4px; border-radius: 3px; margin: 1px 0; display: inline-block; text-transform: uppercase; letter-spacing: 0.3px; line-height: 1.1; } .user-steam-id { font-size: 0.7rem; color: #6b7280; font-family: 'Consolas', 'Monaco', monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; } .user-actions { flex-shrink: 0; } .logout-btn { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: rgba(239, 68, 68, 0.1); color: #ef4444; text-decoration: none; transition: all 0.3s ease; border: 1px solid rgba(239, 68, 68, 0.2); } .logout-btn:hover { background: rgba(239, 68, 68, 0.2); border-color: rgba(239, 68, 68, 0.3); color: #ffffff; transform: translateY(-1px); } .logout-btn i { font-size: 0.9rem; } @media (max-width: 768px) { .sidebar-footer { padding: 0.75rem; } .user-profile { padding: 0.5rem; } .user-avatar { width: 36px; height: 36px; } .user-name { font-size: 0.85rem; } .user-steam-id { font-size: 0.7rem; } }