:root { --primary: #1a365d; --primary-hover: #2d5a87; --secondary: #00d4aa; --secondary-hover: #00b894; --light: #f8fafc; --dark: #2d3748; --darker: #1a202c; --text: #2d3748; --text-light: #718096; --white: #ffffff; --danger: #e53e3e; --warning: #dd6b20; --success: #38a169; --info: #3182ce; --border: #e2e8f0; --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1); --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%); --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); --gradient-warning: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); } * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; background: var(--light); color: var(--text); line-height: 1.6; } /* Animations */ @keyframes slideIn { from { transform: translateX(-100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } } @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } @keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } } @keyframes shimmer { 0% { background-position: -200px 0; } 100% { background-position: calc(200px + 100%) 0; } } .animate-fade-in { animation: fadeIn 0.6s ease-out; } .animate-pulse { animation: pulse 2s infinite; } /* Header */ header { background: var(--gradient-primary); color: white; padding: 0 2rem; height: 70px; display: flex; align-items: center; justify-content: space-between; position: fixed; top: 0; left: 0; right: 0; z-index: 1000; box-shadow: var(--shadow-lg); backdrop-filter: blur(10px); } .left-header { display: flex; align-items: center; gap: 1.5rem; } .toggle-btn { font-size: 1.5rem; cursor: pointer; padding: 8px; border-radius: 8px; transition: all 0.3s; background: rgba(255,255,255,0.1); } .toggle-btn:hover { background: rgba(255,255,255,0.2); transform: scale(1.1); } .logo { font-size: 1.5rem; font-weight: bold; display: flex; align-items: center; gap: 0.5rem; } .search-container { position: relative; } .search-box { position: relative; display: flex; align-items: center; } .search-box input { padding: 12px 16px 12px 45px; border-radius: 25px; border: none; outline: none; width: 320px; background: rgba(255,255,255,0.15); color: white; backdrop-filter: blur(10px); transition: all 0.3s; } .search-box input::placeholder { color: rgba(255,255,255,0.7); } .search-box input:focus { width: 380px; background: rgba(255,255,255,0.25); } .search-icon { position: absolute; left: 15px; color: rgba(255,255,255,0.7); } .right-header { display: flex; align-items: center; gap: 1.5rem; } .icon-container { position: relative; cursor: pointer; padding: 10px; border-radius: 50%; transition: all 0.3s; background: rgba(255,255,255,0.1); } .icon-container:hover { background: rgba(255,255,255,0.2); transform: scale(1.1); } .notification-badge { position: absolute; top: 5px; right: 5px; background: var(--danger); color: white; font-size: 0.7rem; padding: 2px 6px; border-radius: 12px; min-width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; animation: pulse 2s infinite; } .user-profile { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; padding: 8px 12px; border-radius: 25px; transition: all 0.3s; background: rgba(255,255,255,0.1); } .user-profile:hover { background: rgba(255,255,255,0.2); } .user-avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.3); } /* Sidebar */ #sidebar { position: fixed; top: 70px; left: 0; width: 280px; height: calc(100vh - 70px); background: var(--white); padding: 1.5rem 0; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); overflow: hidden; box-shadow: var(--shadow-lg); border-right: 1px solid var(--border); } #sidebar.collapsed { width: 80px; } .sidebar-section { margin-bottom: 2rem; } .sidebar-title { padding: 0 1.5rem 0.5rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; color: var(--text-light); letter-spacing: 0.05em; } #sidebar.collapsed .sidebar-title { display: none; } #sidebar ul { list-style: none; } #sidebar li { position: relative; margin: 0.25rem 1rem; border-radius: 12px; overflow: hidden; } #sidebar li a { display: flex; align-items: center; gap: 1rem; padding: 1rem; text-decoration: none; color: var(--text); transition: all 0.3s; white-space: nowrap; font-weight: 500; } #sidebar li:hover a, #sidebar li.active a { background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-hover) 100%); color: white; transform: translateX(5px); } #sidebar li.active::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--secondary); border-radius: 0 4px 4px 0; } .menu-icon { font-size: 1.2rem; width: 24px; text-align: center; } #sidebar.collapsed li a span { opacity: 0; visibility: hidden; } /* Tooltip for collapsed sidebar */ .tooltip { position: absolute; left: 70px; top: 50%; transform: translateY(-50%); background: var(--dark); color: white; padding: 8px 12px; border-radius: 6px; font-size: 0.875rem; opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 1000; white-space: nowrap; } .tooltip::before { content: ''; position: absolute; right: 100%; top: 50%; transform: translateY(-50%); border: 6px solid transparent; border-right-color: var(--dark); } #sidebar.collapsed li:hover .tooltip { opacity: 1; visibility: visible; } /* Main content */ #main { margin-left: 280px; margin-top: 70px; padding: 2rem; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); min-height: calc(100vh - 70px); } #main.collapsed { margin-left: 80px; } .page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; } .page-title { font-size: 2rem; font-weight: 700; color: var(--text); } .breadcrumb { display: flex; align-items: center; gap: 0.5rem; color: var(--text-light); font-size: 0.9rem; margin-top: 0.5rem; } .breadcrumb a { color: var(--secondary); text-decoration: none; } .breadcrumb a:hover { text-decoration: underline; } .action-buttons { display: flex; gap: 1rem; } .btn { padding: 12px 24px; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; transition: all 0.3s; font-size: 0.9rem; } .btn-primary { background: var(--gradient-primary); color: white; box-shadow: var(--shadow); } .btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); } .btn-secondary { background: var(--gradient-primary); color: var(--text); border: 1px solid var(--border); } .btn-secondary:hover { background: var(--light); transform: translateY(-1px); } /* Stats Grid */ .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; } .stat-card { padding: 2rem; border-radius: 16px; box-shadow: var(--shadow); position: relative; overflow: hidden; transition: all 0.3s; } .stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); } .stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gradient-primary); } .stat-card.revenue::before { background: var(--gradient-secondary); } .stat-card.users::before { background: var(--gradient-success); } .stat-card.tasks::before { background: var(--gradient-warning); } .stat-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; } .stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; background: var(--gradient-primary); color: white; } .stat-card.revenue .stat-icon { background: var(--gradient-secondary); } .stat-card.users .stat-icon { background: var(--gradient-success); } .stat-card.tasks .stat-icon { background: var(--gradient-warning); } .stat-value { font-size: 2.5rem; font-weight: 700; color: var(--text); line-height: 1; margin-bottom: 0.5rem; } .stat-label { color: var(--text-light); font-weight: 500; margin-bottom: 1rem; } .stat-change { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; } .stat-change.positive { color: var(--success); } .stat-change.negative { color: var(--danger); } .progress-container { margin-top: 1rem; } .progress-bar { background: #e2e8f0; border-radius: 10px; height: 8px; overflow: hidden; position: relative; } .progress-fill { height: 100%; border-radius: 10px; transition: width 1s ease-in-out; background: var(--gradient-primary); position: relative; } .progress-fill::after { content: ''; position: absolute; top: 0; left: 0; bottom: 0; right: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); animation: shimmer 2s infinite; } /* Chart Container */ .chart-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; margin-bottom: 2rem; } .chart-card { padding: 2rem; border-radius: 16px; box-shadow: var(--shadow); } .chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; } .chart-title { font-size: 1.25rem; font-weight: 700; color: var(--text); } .chart-filters { display: flex; gap: 0.5rem; } .filter-btn { padding: 6px 12px; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; font-size: 0.8rem; transition: all 0.3s; } .filter-btn.active, .filter-btn:hover { background: var(--secondary); color: white; border-color: var(--secondary); } .mini-chart { height: 80px; background: var(--gradient-primary); border-radius: 8px; position: relative; overflow: hidden; margin-top: 1rem; } /* Data Table */ .table-container { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 2rem; } .table-header { padding: 2rem 2rem 1rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); } .table-title { font-size: 1.25rem; font-weight: 700; color: var(--text); } .table-actions { display: flex; gap: 1rem; align-items: center; } .search-mini { padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 0.875rem; width: 200px; } .table-responsive { overflow-x: auto; } table { width: 100%; border-collapse: collapse; } th, td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border); } th { background: var(--light); font-weight: 600; color: var(--text); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; } td { font-size: 0.9rem; } .status-badge { padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; } .status-active { background: rgba(56, 161, 105, 0.1); color: var(--success); } .status-pending { background: rgba(221, 107, 32, 0.1); color: var(--warning); } .status-inactive { background: rgba(229, 62, 62, 0.1); color: var(--danger); } .user-cell { display: flex; align-items: center; gap: 0.75rem; } .user-avatar-small { width: 32px; height: 32px; border-radius: 50%; } /* Notification Panel */ .notification-panel { position: fixed; top: 70px; right: -400px; width: 380px; height: calc(100vh - 70px); box-shadow: var(--shadow-lg); transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 999; overflow-y: auto; } .notification-panel.open { right: 0; } .notification-header { padding: 2rem; border-bottom: 1px solid var(--border); display: flex; justify-content: between; align-items: center; } .notification-title { font-size: 1.25rem; font-weight: 700; color: var(--text); } .notification-close { cursor: pointer; padding: 8px; border-radius: 6px; transition: all 0.3s; } .notification-close:hover { background: var(--light); } .notification-item { padding: 1.5rem 2rem; border-bottom: 1px solid var(--border); transition: all 0.3s; cursor: pointer; } .notification-item:hover { background: var(--light); } .notification-item.unread { background: rgba(0, 212, 170, 0.05); border-left: 4px solid var(--secondary); } .notification-content { display: flex; gap: 1rem; } .notification-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; background: var(--light); flex-shrink: 0; } .notification-text { flex: 1; } .notification-message { font-weight: 500; margin-bottom: 0.25rem; color: var(--text); } .notification-time { font-size: 0.8rem; color: var(--text-light); } /* Quick Actions */ .quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem; } .quick-action { padding: 1.5rem; border-radius: 12px; box-shadow: var(--shadow); text-align: center; transition: all 0.3s; cursor: pointer; text-decoration: none; color: var(--text); } .quick-action:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); } .quick-action-icon { font-size: 2rem; margin-bottom: 1rem; display: block; } .quick-action-label { font-weight: 600; margin-bottom: 0.5rem; } .quick-action-desc { font-size: 0.8rem; color: var(--text-light); } /* Mobile Responsive */ @media (max-width: 1024px) { .chart-grid { grid-template-columns: 1fr; } .stats-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); } } @media (max-width: 768px) { header { padding: 0 1rem; } .search-box input { width: 200px; } .search-box input:focus { width: 240px; } #main { margin-left: 80px; padding: 1rem; } #sidebar { width: 80px; } #sidebar.collapsed .sidebar-title, #sidebar li a span { display: none; } .page-title { font-size: 1.5rem; } .stats-grid { grid-template-columns: 1fr; } .action-buttons { flex-direction: column; gap: 0.5rem; } .table-actions { flex-direction: column; gap: 0.5rem; align-items: stretch; } .search-mini { width: 100%; } } /* Dark mode support */ @media (prefers-color-scheme: dark) { :root { --light: #1a202c; --white: #2d3748; --text: #f7fafc; --text-light: #a0aec0; --border: #4a5568; } } /* Loading states */ .loading { background: linear-gradient(90deg, #f0f0f0 25%, transparent 50%, #f0f0f0 75%); background-size: 200px 100%; animation: shimmer 1.5s infinite; } /* Custom scrollbar */ ::-webkit-scrollbar { width: 8px; } ::-webkit-scrollbar-track { background: var(--light); } ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: var(--text-light); }