Admin Navbar - Copy this Angular, Css Component to your project
.dashboard-container { padding: 20px; background-color: #f5f5f5; margin-top: 60px; /* Adjust this value to match the height of the admin-navbar */ overflow: hidden; /* Hide the scrollbar */ } .header-section { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; } .dashboard-title { font-size: 2rem; color: #343a40; margin: 0; } .date-filter input { padding: 8px; border: 1px solid #ddd; border-radius: 4px; } .dashboard-cards { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 30px; } .dashboard-card { background-color: #fff; padding: 20px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); border-radius: 8px; flex: 1; min-width: 200px; max-width: 300px; text-align: center; transition: transform 0.3s, box-shadow 0.3s; } .dashboard-card:hover { transform: translateY(-5px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); } .card-number { font-size: 2rem; font-weight: bold; color: #343a40; margin: 10px 0; } .trend { font-size: 0.9rem; padding: 4px 8px; border-radius: 4px; } .trend.up { color: #28a745; background-color: rgba(40, 167, 69, 0.1); } .trend.down { color: #dc3545; background-color: rgba(220, 53, 69, 0.1); } .dashboard-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 30px; } .chart-container { background-color: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .recent-activity { background-color: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .activity-list { margin-top: 15px; } .activity-item { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid #eee; } .activity-icon { width: 40px; height: 40px; border-radius: 50%; margin-right: 15px; display: flex; align-items: center; justify-content: center; } .activity-icon.created { background-color: rgba(25, 135, 84, 0.1); color: #198754; } .activity-icon.updated { background-color: rgba(13, 110, 253, 0.1); color: #0d6efd; } .activity-icon.completed { background-color: rgba(102, 16, 242, 0.1); color: #6610f2; } .activity-details { flex: 1; } .activity-text { margin: 0; color: #343a40; } .activity-time { font-size: 0.85rem; color: #6c757d; } @media (max-width: 1024px) { .dashboard-charts { grid-template-columns: 1fr; } } @media (max-width: 768px) { .dashboard-cards { flex-direction: column; } .dashboard-card { max-width: none; } } adjust this css properly i don't want scroll bar in it when i click on another tab and again open this the css gets disturbed make it accrdingly
