body { font-family: 'Kanit', Arial, sans-serif; background: #f4f7fa; margin: 0; color: #222; } .login-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0D47A1 0%, #1976D2 100%); } .login-form { background: #fff; padding: 2.5rem 2rem; border-radius: 18px; box-shadow: 0 6px 32px rgba(13, 71, 161, 0.12); width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 1rem; } .login-form h2 { color: #0D47A1; margin-bottom: 1rem; } .login-form label { font-weight: 600; } .login-form input { padding: 0.7rem; border: 1px solid #b0bec5; border-radius: 8px; font-size: 1rem; } .login-form button { background: linear-gradient(90deg, #0D47A1 60%, #1976D2 100%); color: #fff; border: none; border-radius: 8px; padding: 0.8rem; font-size: 1.1rem; font-weight: 600; cursor: pointer; box-shadow: 0 2px 8px rgba(13, 71, 161, 0.08); transition: background 0.2s; } .login-form button:hover { background: #1565C0; } .dashboard { display: flex; min-height: 100vh; } .sidebar { background: linear-gradient(180deg, #0D47A1 80%, #1976D2 100%); color: #fff; width: 220px; min-width: 60px; display: flex; flex-direction: column; align-items: center; padding: 1.5rem 0 0 0; box-shadow: 2px 0 16px rgba(13, 71, 161, 0.08); position: fixed; height: 100vh; z-index: 10; } .sidebar-logo { font-size: 2rem; font-weight: 700; margin-bottom: 2rem; letter-spacing: 2px; } .sidebar nav ul { list-style: none; padding: 0; margin: 0; width: 100%; } .sidebar nav li { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 2rem; cursor: pointer; border-radius: 12px 0 0 12px; transition: background 0.18s; } .sidebar nav li:hover, .sidebar nav li.active { background: rgba(255, 255, 255, 0.12); } .sidebar .icon { font-size: 1.3rem; } .sidebar .label { font-size: 1.1rem; } .main-content { margin-left: 220px; flex: 1; display: flex; flex-direction: column; min-height: 100vh; } .topbar { background: #fff; padding: 1.2rem 2rem; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 12px rgba(13, 71, 161, 0.06); border-radius: 0 0 18px 18px; margin-bottom: 1.5rem; } .topbar-title { font-size: 1.3rem; font-weight: 600; color: #0D47A1; } .topbar-user { font-size: 1rem; color: #1976D2; } .cards { display: flex; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; } .card { background: #fff; border-radius: 16px; box-shadow: 0 2px 12px rgba(13, 71, 161, 0.08); padding: 1.5rem 2rem; min-width: 180px; flex: 1; text-align: center; } .card h3 { color: #0D47A1; margin-bottom: 0.5rem; } .card p { font-size: 2rem; font-weight: 600; color: #1976D2; } .charts { display: flex; gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem; } .chart-card { background: #fff; border-radius: 16px; box-shadow: 0 2px 12px rgba(13, 71, 161, 0.08); padding: 1.5rem; flex: 1 1 320px; min-width: 280px; } .chart-card h4 { color: #0D47A1; margin-bottom: 1rem; } canvas { width: 100% !important; height: 220px !important; display: block; } .user-table-section { background: #fff; border-radius: 16px; box-shadow: 0 2px 12px rgba(13, 71, 161, 0.08); padding: 1.5rem; margin-bottom: 2rem; } .user-table-section h4 { color: #0D47A1; margin-bottom: 1rem; } .table-responsive { overflow-x: auto; } .user-table { width: 100%; border-collapse: collapse; font-size: 1rem; } .user-table th, .user-table td { padding: 0.8rem 1rem; border-bottom: 1px solid #e3eaf1; text-align: left; } .user-table th { background: #e3eaf1; color: #0D47A1; font-weight: 600; } .user-table tr:last-child td { border-bottom: none; } .user-table td { color: #222; } @media (max-width: 900px) { .cards, .charts { flex-direction: column; gap: 1rem; } .main-content { margin-left: 60px; } .sidebar { width: 60px; min-width: 60px; align-items: flex-start; } .sidebar .label { display: none; } } @media (max-width: 600px) { .main-content { margin-left: 0; } .sidebar { display: none; } .topbar { padding: 1rem; flex-direction: column; gap: 0.5rem; border-radius: 0 0 12px 12px; } .card, .chart-card, .user-table-section { padding: 1rem; } .user-table th, .user-table td { padding: 0.5rem 0.6rem; font-size: 0.95rem; } }