/* Dashboard Container */ .dashboard-container { padding: 2rem !important; /* background-color: var(--dark-gray); */ min-height: 100vh; } /* Page Header */ .page-header { margin-bottom: 1rem; padding: 0.75rem 0; } .header-content { gap: 0.75rem; } .header-icon { color: var(--primary-red); font-size: 1.5rem; } .header-title { display: flex; } .header-title h1 { margin: 0; font-size: 1.5rem; font-weight: 600; } .header-subtitle { color: var(--light-gray); font-size: 14px; margin-top: 0.25rem; } /* Stats Grid */ .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.75rem; margin-bottom: 1rem; } .stat-card { /* background-color: var(--medium-gray); */ border-radius: 8px; padding: 1rem; border-left: 4px solid var(--primary-red); transition: transform 0.2s ease, box-shadow 0.2s ease; /* color: black; */ } .stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); } .stat-content { display: flex; align-items: center; justify-content: space-between; } .stat-icon { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: var(--white); } .stat-info { flex: 1; margin-left: 0.75rem; } .stat-info h3 { margin: 0; font-size: 1.125rem; font-weight: 600; /* color: var(--white); */ } .stat-info p { margin: 0.25rem 0 0; font-size: 0.875rem; color: var(--light-gray); } .stat-change { display: flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; font-weight: 500; margin-top: 0.25rem; } .stat-change.positive { color: var(--accent-green); } .stat-change.negative { color: var(--red); } /* Specific stat card styles */ .total-assets .stat-icon { background-color: var(--primary-red); } .total-value .stat-icon { background-color: var(--accent-green); } .active-users .stat-icon { background-color: var(--yellow-orange); } .pending-tasks .stat-icon { background-color: var(--red); } /* Content Grid */ .content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 0.75rem; } .content-card { /* background-color: var(--medium-gray); */ border-radius: 8px; padding: 1rem; } .content-card h3 { margin: 0 0 0.75rem 0; font-size: 1rem; font-weight: 600; /* color: var(--white); */ display: flex; align-items: center; gap: 0.5rem; } .card-icon { color: var(--primary-red); font-size: 1.125rem; } /* Activity List */ .activity-list { list-style: none; padding: 0; margin: 0; } .activity-item { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); } .activity-item:last-child { border-bottom: none; } .activity-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.875rem; color: var(--white); flex-shrink: 0; } .activity-icon > .mat-icon { /* width: 24px; height: 24px; */ width: auto !important; font-size: 1.3rem; } .activity-asset { background-color: var(--accent-green); } .activity-maintenance { background-color: var(--yellow-orange); } .activity-alert { background-color: var(--red); } .activity-content { flex: 1; min-width: 0; } .activity-content > .activity-description { color: var(--light-gray); } .activity-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.25rem; } .activity-time { font-size: 0.75rem; color: var(--light-gray); } .activity-description { font-size: 0.875rem; color: var(--white); line-height: 1.4; } /* Category List */ .category-list { list-style: none; padding: 0; margin: 0; } .category-item { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); } .category-item:last-child { border-bottom: none; } .category-info { display: flex; align-items: center; gap: 0.75rem; } .category-header { display: flex; align-items: center; gap: 0.5rem; } .category-color { width: 12px; height: 12px; border-radius: 50%; } .color-blue-500 { background-color: #3b82f6; } .color-green-500 { background-color: var(--accent-green); } .color-yellow-500 { background-color: var(--yellow-orange); } .color-red-500 { background-color: var(--red); } .color-purple-500 { background-color: #8b5cf6; } .category-progress { display: flex; align-items: center; gap: 0.5rem; } .progress-high { color: var(--accent-green); } .progress-medium { color: var(--yellow-orange); } .progress-low { color: var(--red); } .percentage { font-size: 0.875rem; font-weight: 500; } /* Alert List */ .alert-list { list-style: none; padding: 0; margin: 0; } .alert-item { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); } .alert-item:last-child { border-bottom: none; } .alert-priority { width: 8px; height: 8px; border-radius: 50%; margin-top: 0.375rem; flex-shrink: 0; } .priority-critical { background-color: var(--red); } .priority-high { background-color: var(--yellow-orange); } .priority-low { background-color: var(--accent-green); } .alert-content { flex: 1; min-width: 0; } .alert-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.25rem; } .alert-description { font-size: 0.875rem; color: var(--white); line-height: 1.4; } .alert-date { font-size: 0.75rem; color: var(--light-gray); } /* Material Chip Customization */ .mat-mdc-chip { font-size: 0.75rem !important; height: 24px !important; padding: 0 8px !important; } /* Responsive Design */ @media (max-width: 1024px) { .content-grid { grid-template-columns: 1fr; } .stats-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.5rem; } .stat-card { padding: 0.75rem; } .content-card { padding: 0.75rem; } } @media (max-width: 768px) { .dashboard-container { padding: 0.25rem; } .page-header { margin-bottom: 0.75rem; padding: 0.5rem 0; } .header-title h1 { font-size: 1.25rem; } .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; } .stat-card { padding: 0.5rem; } .stat-icon { width: 32px; height: 32px; font-size: 1rem; } .stat-info h3 { font-size: 1rem; } .content-card { padding: 0.5rem; } .activity-item, .category-item, .alert-item { padding: 0.5rem 0; } } @media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } .stat-content { flex-direction: column; align-items: flex-start; gap: 0.5rem; } .stat-info { margin-left: 0; } .activity-icon, .alert-priority { width: 24px; height: 24px; font-size: 0.75rem; } } /* Animations */ .stat-card, .activity-item, .category-item, .alert-item { transition: all 0.2s ease; } .stat-card:hover { transform: translateY(-2px); } .activity-item:hover, .category-item:hover, .alert-item:hover { background-color: rgba(255, 255, 255, 0.05); border-radius: 4px; padding-left: 0.5rem; padding-right: 0.5rem; } /* Compact spacing optimizations */ .dashboard-container { padding: 0.375rem; } .page-header { margin-bottom: 0.75rem; padding: 0.5rem 0; } .stats-grid { gap: 0.5rem; margin-bottom: 0.75rem; } .content-grid { gap: 0.5rem; } .content-card { padding: 0.75rem; } .activity-item, .category-item, .alert-item { padding: 0.5rem 0; } /* Reduce font sizes for better density */ .header-title h1 { font-size: 1.375rem; } .stat-info h3 { font-size: 1rem; } .content-card h3 { font-size: 0.9375rem; } .activity-description, .alert-description { font-size: 0.8125rem; } .percentage { font-size: 0.8125rem; }