.advanced-dashboard { padding: 30px; background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); min-height: 100vh; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif; } .dashboard-header { display: flex; justify-content: space-between; align-items: flex-start; background: white; padding: 25px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); margin-bottom: 30px; } .header-content h2 { margin: 0 0 10px 0; color: #1f2937; font-size: 28px; font-weight: 700; } .project-name { margin: 5px 0; color: #6b7280; font-size: 14px; font-weight: 600; } .last-update { margin: 5px 0 0 0; color: #9ca3af; font-size: 12px; } .refresh-btn { padding: 10px 16px; background: #3b82f6; color: white; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; transition: all 0.3s; font-size: 14px; } .refresh-btn:hover:not(:disabled) { background: #2563eb; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); } .refresh-btn:disabled { opacity: 0.5; cursor: not-allowed; } /* Dashboard Sections */ .dashboard-section { background: white; padding: 25px; border-radius: 12px; margin-bottom: 25px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); } .dashboard-section h3 { margin: 0 0 20px 0; color: #1f2937; font-size: 18px; font-weight: 700; border-bottom: 2px solid #e5e7eb; padding-bottom: 12px; } .dashboard-section h4 { margin: 0 0 15px 0; color: #374151; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; } /* Services Grid */ .services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; } .status-card { background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%); border: 1px solid #e5e7eb; border-radius: 10px; padding: 20px; transition: all 0.3s; } .status-card:hover { box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); transform: translateY(-2px); border-color: #d1d5db; } .status-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; } .status-header h4 { margin: 0; color: #1f2937; font-size: 14px; font-weight: 600; } .status-indicator { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #e5e7eb; background: white; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; } .status-indicator:hover { border-color: #d1d5db; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } /* Blue Status Indicator - Same style as green but blue */ .blue-status-indicator { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #3b82f6; background: #eff6ff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; padding: 0; } .blue-status-indicator:hover { border-color: #2563eb; background: #dbeafe; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); transform: translateY(-2px); } .blue-status-dot { width: 16px; height: 16px; border-radius: 50%; background: #3b82f6; display: block; box-shadow: 0 0 8px #3b82f6; animation: pulse-blue 2s infinite; } @keyframes pulse-blue { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } } .status-dot { width: 16px; height: 16px; border-radius: 50%; display: block; box-shadow: 0 0 8px currentColor; animation: pulse 2s infinite; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } } .status-content { text-align: center; } .status-label { margin: 0 0 8px 0; color: #6b7280; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; } .status-value { margin: 0; color: #374151; font-size: 13px; font-weight: 500; } /* Metrics Grid */ .metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; } .metric-subsection { background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%); padding: 20px; border-radius: 10px; border: 1px solid #e5e7eb; } .resource-metrics { display: flex; flex-direction: column; gap: 15px; } .resource-item { display: flex; align-items: center; gap: 12px; } .resource-label { min-width: 120px; color: #374151; font-size: 12px; font-weight: 600; text-transform: uppercase; } .resource-bar { flex: 1; height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; } .resource-fill { height: 100%; border-radius: 4px; transition: width 0.5s ease; } .resource-fill.cpu { background: linear-gradient(90deg, #3b82f6, #06b6d4); } .resource-fill.memory { background: linear-gradient(90deg, #8b5cf6, #ec4899); } .resource-fill.disk { background: linear-gradient(90deg, #f59e0b, #ef4444); } .resource-value { min-width: 40px; text-align: right; color: #1f2937; font-size: 12px; font-weight: 600; } .db-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; } .metric-card { background: white; padding: 15px; border-radius: 8px; border: 1px solid #e5e7eb; display: flex; align-items: center; gap: 12px; transition: all 0.3s; } .metric-card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); border-color: #d1d5db; } .metric-icon { font-size: 24px; min-width: 30px; } .metric-content { flex: 1; } .metric-label { margin: 0; color: #6b7280; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; } .metric-value { margin: 4px 0 0 0; color: #1f2937; font-size: 18px; font-weight: 700; } .metric-unit { color: #9ca3af; font-size: 12px; margin-left: 4px; } /* App Metrics Grid */ .app-metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; } /* Performance Metrics */ .performance-metrics { display: flex; flex-direction: column; gap: 20px; } .perf-item { background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%); padding: 20px; border-radius: 10px; border: 1px solid #e5e7eb; } .perf-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; } .perf-header span:first-child { color: #374151; font-size: 14px; font-weight: 600; } .perf-value { color: #1f2937; font-size: 16px; font-weight: 700; padding: 2px 8px; background: white; border-radius: 4px; border: 1px solid #e5e7eb; } .perf-bar { height: 12px; background: #e5e7eb; border-radius: 6px; overflow: hidden; } .perf-fill { height: 100%; border-radius: 6px; transition: width 0.5s ease; background: linear-gradient(90deg, #3b82f6, #06b6d4); } /* Action Buttons */ .dashboard-actions { display: flex; justify-content: center; align-items: center; gap: 15px; margin-top: 30px; padding: 20px; background: white; border-radius: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); } .smart-pakke-action-btn { padding: 14px 32px; background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white; border: none; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); } .smart-pakke-action-btn:hover:not(:disabled) { background: linear-gradient(135deg, #059669 0%, #047857 100%); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4); } .smart-pakke-action-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; } .warning-text { color: #dc2626; font-size: 13px; font-weight: 600; margin: 0; padding: 8px 12px; background: #fee2e2; border-radius: 6px; border-left: 3px solid #dc2626; } /* Responsive Design */ @media (max-width: 768px) { .advanced-dashboard { padding: 20px; } .dashboard-header { flex-direction: column; gap: 20px; } .services-grid { grid-template-columns: 1fr; } .metrics-grid { grid-template-columns: 1fr; } .app-metrics-grid { grid-template-columns: repeat(2, 1fr); } .dashboard-section { padding: 20px; } .header-content h2 { font-size: 24px; } } @media (max-width: 480px) { .advanced-dashboard { padding: 15px; } .dashboard-header { padding: 15px; } .app-metrics-grid { grid-template-columns: 1fr; } .resource-item { flex-wrap: wrap; } .dashboard-actions { flex-direction: column; } .smart-pakke-action-btn { width: 100%; } } /* PM2 Processes Grid */ .pm2-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; } .pm2-card { background: white; border: 1px solid #e0e0e0; border-radius: 8px; padding: 16px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); } .pm2-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #f0f0f0; } .pm2-name { font-weight: 600; color: #333; } .pm2-status { font-size: 18px; } .pm2-details { display: flex; flex-direction: column; gap: 8px; } .pm2-row { display: flex; justify-content: space-between; font-size: 13px; } .pm2-label { color: #666; font-weight: 500; } /* SQL Status */ .sql-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; } .sql-card { background: white; border: 1px solid #e0e0e0; border-radius: 8px; padding: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); } .sql-metric { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #f5f5f5; } .sql-metric:last-child { border-bottom: none; } .sql-label { color: #666; font-weight: 500; font-size: 13px; } .sql-value { font-weight: 600; font-size: 14px; } .status-ok { color: #22c55e; } .status-warning { color: #eab308; } .status-error { color: #ef4444; }