### 2. css/style.css css * { margin: 0; padding: 0; box-sizing: border-box; } :root { --primary: #0066cc; --secondary: #00b366; --accent: #ff6b6b; --dark: #1a1a1a; --light: #f5f7fa; --border: #e0e6ed; --text: #333; --text-light: #666; --shadow: 0 2px 8px rgba(0, 0, 0, 0.1); --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12); } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; color: var(--text); background-color: #fff; line-height: 1.6; } .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; } /* Navbar */ .navbar { background: white; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); } .navbar .container { display: flex; justify-content: space-between; align-items: center; height: 70px; } .navbar-brand { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 700; color: var(--primary); } .navbar-brand i { font-size: 28px; } .navbar-menu { display: flex; align-items: center; gap: 30px; } .nav-link { color: var(--text); text-decoration: none; font-weight: 500; transition: color 0.3s; } .nav-link:hover { color: var(--primary); } /* Buttons */ .btn { display: inline-block; padding: 10px 24px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: all 0.3s; border: none; cursor: pointer; text-align: center; font-size: 14px; } .btn-primary { background: var(--primary); color: white; } .btn-primary:hover { background: #0052a3; box-shadow: var(--shadow-lg); } .btn-secondary { background: transparent; color: var(--primary); border: 2px solid var(--primary); } .btn-secondary:hover { background: var(--primary); color: white; } .btn-lg { padding: 14px 32px; font-size: 16px; } .btn-success { background: var(--secondary); color: white; } .btn-success:hover { background: #00924d; } .btn-danger { background: var(--accent); color: white; } .btn-danger:hover { background: #e55555; } /* Hero Section */ .hero { padding: 80px 0; background: linear-gradient(135deg, #f5f7fa 0%, #e8f0f8 100%); } .hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; } .hero-content h1 { font-size: 48px; margin-bottom: 20px; color: var(--dark); line-height: 1.2; } .hero-content p { font-size: 18px; color: var(--text-light); margin-bottom: 30px; } .hero-buttons { display: flex; gap: 20px; } .hero-image { display: flex; justify-content: center; align-items: center; } .hero-icon { font-size: 200px; color: var(--primary); opacity: 0.1; } /* Services Section */ .services { padding: 80px 0; background: white; } .services h2, .features h2 { font-size: 40px; text-align: center; margin-bottom: 60px; color: var(--dark); } .services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; } .service-card { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 40px; text-align: center; transition: all 0.3s; box-shadow: var(--shadow); } .service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); } .service-icon { font-size: 60px; color: var(--primary); margin-bottom: 20px; } .service-card h3 { font-size: 24px; margin-bottom: 15px; color: var(--dark); } .service-card p { color: var(--text-light); margin-bottom: 25px; line-height: 1.8; } .service-card ul { list-style: none; text-align: left; } .service-card li { padding: 10px 0; color: var(--text-light); border-bottom: 1px solid var(--border); } .service-card li:last-child { border-bottom: none; } .service-card i { color: var(--secondary); margin-right: 10px; } /* Features Section */ .features { padding: 80px 0; background: #f9fbfd; } .features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; } .feature-item { background: white; padding: 30px; border-radius: 12px; text-align: center; border: 1px solid var(--border); transition: all 0.3s; } .feature-item:hover { box-shadow: var(--shadow-lg); border-color: var(--primary); } .feature-icon { font-size: 48px; color: var(--primary); margin-bottom: 15px; } .feature-item h3 { font-size: 18px; margin-bottom: 10px; color: var(--dark); } .feature-item p { color: var(--text-light); font-size: 14px; } /* Footer */ .footer { background: var(--dark); color: white; padding: 60px 0 20px; } .footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; } .footer-section h4 { margin-bottom: 15px; font-size: 18px; } .footer-section ul { list-style: none; } .footer-section a { color: #ccc; text-decoration: none; transition: color 0.3s; } .footer-section a:hover { color: var(--primary); } .footer-section p { color: #ccc; margin-bottom: 10px; } .footer-bottom { border-top: 1px solid #444; padding-top: 20px; text-align: center; color: #999; } /* Forms */ .form-group { margin-bottom: 20px; } label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text); } input, select, textarea { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; transition: border-color 0.3s; } input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1); } /* Cards */ .card { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 24px; box-shadow: var(--shadow); transition: all 0.3s; } .card:hover { box-shadow: var(--shadow-lg); } .card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--border); } .card-header h3 { font-size: 20px; color: var(--dark); } .card-body { color: var(--text); } /* Tables */ .table { width: 100%; border-collapse: collapse; font-size: 14px; } .table thead { background: var(--light); } .table th { padding: 15px; text-align: left; font-weight: 600; color: var(--dark); border-bottom: 2px solid var(--border); } .table td { padding: 15px; border-bottom: 1px solid var(--border); } .table tbody tr:hover { background: #f9fbfd; } .badge { display: inline-block; padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; } .badge-success { background: #d4edda; color: #155724; } .badge-warning { background: #fff3cd; color: #856404; } .badge-danger { background: #f8d7da; color: #721c24; } .badge-info { background: #d1ecf1; color: #0c5460; } /* Alerts */ .alert { padding: 15px 20px; border-radius: 8px; margin-bottom: 20px; display: flex; align-items: center; gap: 15px; } .alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; } .alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; } .alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; } .alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; } .alert i { font-size: 20px; } /* Utility Classes */ .text-center { text-align: center; } .text-right { text-align: right; } .mt-20 { margin-top: 20px; } .mt-40 { margin-top: 40px; } .mb-20 { margin-bottom: 20px; } .mb-40 { margin-bottom: 40px; } .gap-20 { gap: 20px; } .gap-40 { gap: 40px; } .hidden { display: none !important; } .text-muted { color: var(--text-light); } .text-success { color: var(--secondary); } .text-danger { color: var(--accent); } ### 3. css/dashboard.css css /* Dashboard Layout */ .dashboard-container { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; background: var(--light); } .sidebar { background: white; border-right: 1px solid var(--border); padding: 0; position: fixed; width: 250px; height: 100vh; overflow-y: auto; box-shadow: var(--shadow); } .sidebar-header { padding: 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; color: var(--primary); } .sidebar-menu { list-style: none; padding: 20px 0; } .sidebar-menu li { margin: 0; } .sidebar-menu a { display: flex; align-items: center; gap: 15px; padding: 15px 20px; color: var(--text); text-decoration: none; transition: all 0.3s; border-left: 3px solid transparent; } .sidebar-menu a:hover, .sidebar-menu a.active { background: var(--light); color: var(--primary); border-left-color: var(--primary); } .sidebar-menu i { font-size: 18px; width: 20px; } .sidebar-footer { position: absolute; bottom: 0; width: 100%; padding: 20px; border-top: 1px solid var(--border); background: white; } .sidebar-footer a { display: flex; align-items: center; gap: 10px; padding: 10px; color: var(--text); text-decoration: none; transition: all 0.3s; } .sidebar-footer a:hover { color: var(--accent); } /* Main Content */ .main-content { margin-left: 250px; padding: 30px; } .top-bar { background: white; padding: 20px 30px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow); } .top-bar-left { display: flex; align-items: center; gap: 20px; } .top-bar-left h1 { font-size: 28px; color: var(--dark); } .top-bar-right { display: flex; align-items: center; gap: 20px; } .user-profile { display: flex; align-items: center; gap: 10px; padding: 8px 15px; background: var(--light); border-radius: 8px; cursor: pointer; transition: all 0.3s; } .user-profile:hover { background: var(--border); } .user-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; } /* KPI Cards */ .kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 40px; } .kpi-card { background: white; border-radius: 12px; padding: 25px; border: 1px solid var(--border); box-shadow: var(--shadow); transition: all 0.3s; } .kpi-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); } .kpi-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; } .kpi-title { font-size: 14px; color: var(--text-light); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; } .kpi-icon { font-size: 28px; opacity: 0.2; } .kpi-value { font-size: 32px; font-weight: 700; color: var(--dark); margin-bottom: 10px; } .kpi-change { font-size: 13px; font-weight: 600; } .kpi-change.positive { color: var(--secondary); } .kpi-change.negative { color: var(--accent); } /* Data Tables */ .data-table { background: white; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 40px; } .table-header { padding: 20px 30px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; } .table-header h3 { font-size: 18px; color: var(--dark); } .table-header .btn-group { display: flex; gap: 10px; } .table-wrapper { overflow-x: auto; } .data-table .table { margin: 0; } .data-table .table th { background: var(--light); font-weight: 600; color: var(--dark); } .action-buttons { display: flex; gap: 10px; } .action-btn { padding: 6px 12px; border: none; border-radius: 6px; font-size: 12px; cursor: pointer; transition: all 0.3s; font-weight: 600; } .action-btn.edit { background: #e3f2fd; color: var(--primary); } .action-btn.edit:hover { background: var(--primary); color: white; } .action-btn.delete { background: #ffebee; color: var(--accent); } .action-btn.delete:hover { background: var(--accent); color: white; } .action-btn.view { background: #e8f5e9; color: var(--secondary); } .action-btn.view:hover { background: var(--secondary); color: white; } /* Charts */ .chart-container { background: white; border-radius: 12px; padding: 30px; box-shadow: var(--shadow); margin-bottom: 40px; } .chart-container h3 { font-size: 18px; margin-bottom: 20px; color: var(--dark); } .chart-wrapper { position: relative; height: 300px; } /* Modal */ .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 1000; align-items: center; justify-content: center; } .modal.active { display: flex; } .modal-content { background: white; border-radius: 12px; padding: 30px; max-width: 600px; width: 90%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); } .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--border); } .modal-header h2 { font-size: 24px; color: var(--dark); } .modal-close { background: none; border: none; font-size: 28px; cursor: pointer; color: var(--text-light); transition: color 0.3s; } .modal-close:hover { color: var(--dark); } .modal-body { margin-bottom: 20px; } .modal-footer { display: flex; gap: 10px; justify-content: flex-end; padding-top: 20px; border-top: 1px solid var(--border); } /* Forms in Modal */ .form-group { margin-bottom: 20px; } .form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text); font-size const Component = App; const root = ReactDOM.createRoot(document.getElementById('root')); root.render();