style.css

13.34 KB
30/10/2025 01:49
CSS
style.css
/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #F8F9FA;
  color: #333;
  line-height: 1.6;
}
/* Top Header */
.top-header {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}
.header-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  padding: 10px 20px;
  align-items: center;
}
/* Browser Bar */
.browser-bar {
  background: #e9ecef;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 10px;
}
.browser-controls {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}
.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.control.red {
  background: #ff5f56;
}
.control.yellow {
  background: #ffbd2e;
}
.control.green {
  background: #27ca3f;
}
.url-bar {
  font-size: 12px;
  color: #6c757d;
  display: flex;
  align-items: center;
  gap: 6px;
}
.url-bar i {
  color: #28a745;
}
/* Platform Title */
.platform-title .logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}
.title-text h1 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 2px;
}
.subtitle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #6c757d;
}
.main-subtitle {
  font-weight: 500;
}
/* Header Center */
.header-center {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.status-section {
  display: flex;
  gap: 16px;
  align-items: center;
}
.status-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6c757d;
}
.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #28a745;
}
.search-section {
  margin-top: 5px;
}
.search-bar {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6c757d;
  font-size: 13px;
}
.search-bar i {
  color: #6c757d;
}
/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}
.uptime-section {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #28a745;
  font-weight: 500;
}
.notification-section {
  position: relative;
  color: #6c757d;
  font-size: 16px;
}
.notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #dc3545;
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
}
.settings-section {
  color: #6c757d;
  font-size: 16px;
}
.user-section {
  display: flex;
  align-items: center;
  gap: 8px;
}
.user-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}
.user-info {
  display: flex;
  flex-direction: column;
}
.user-name {
  font-size: 13px;
  font-weight: 500;
  color: #333;
}
.user-role {
  font-size: 11px;
  color: #6c757d;
}
/* Main Container */
.main-container {
  display: flex;
  margin-top: 120px;
  min-height: calc(100vh - 120px);
}
/* Sidebar */
.sidebar {
  width: 280px;
  background: white;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 120px;
  bottom: 0;
  overflow-y: auto;
}
.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid #e9ecef;
}
.sidebar-header .logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-header .logo {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}
.sidebar-header .title-text h3 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 2px;
}
.sidebar-header .title-text p {
  font-size: 12px;
  color: #6c757d;
}
/* Key Metrics */
.key-metrics {
  padding: 20px;
  border-bottom: 1px solid #e9ecef;
}
.metric-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: #333;
}
.metric-card i {
  width: 20px;
  color: #6c757d;
}
.metric-value {
  font-weight: 600;
  color: #333;
  margin-left: auto;
}
.metric-label {
  font-size: 12px;
  color: #6c757d;
}
/* Navigation */
.sidebar-nav {
  flex: 1;
  padding: 20px 0;
}
.nav-list {
  list-style: none;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
}
.nav-item:hover {
  background: #f8f9fa;
}
.nav-item.active {
  background: #e3f2fd;
  color: #007bff;
}
.nav-item i:first-child {
  width: 20px;
  color: #6c757d;
}
.nav-item.active i:first-child {
  color: #007bff;
}
.nav-content {
  flex: 1;
}
.nav-title {
  display: block;
  font-weight: 500;
  color: #333;
  font-size: 14px;
}
.nav-item.active .nav-title {
  color: #007bff;
}
.nav-subtitle {
  font-size: 12px;
  color: #6c757d;
  margin-top: 1px;
}
.nav-tag {
  background: #ffc107;
  color: #212529;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
}
.nav-item i.fa-chevron-right {
  color: #6c757d;
  font-size: 12px;
}
/* System Status */
.system-status {
  padding: 20px;
  border-top: 1px solid #e9ecef;
}
.system-status h4 {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}
.system-status .status-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 12px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.status-dot.green {
  background: #28a745;
}
.status-dot.red {
  background: #dc3545;
}
.status-text {
  margin-left: auto;
  color: #6c757d;
}
/* Sidebar Footer */
.sidebar-footer {
  padding: 20px;
  border-top: 1px solid #e9ecef;
}
/* Main Content */
.main-content {
  flex: 1;
  margin-left: 280px;
  padding: 30px;
  background: #F8F9FA;
}
/* Content Header */
.content-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
}
.header-info h2 {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}
.header-info p {
  color: #6c757d;
  font-size: 14px;
}
.action-buttons {
  display: flex;
  gap: 10px;
}
.btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary {
  background: #007bff;
  color: white;
}
.btn-primary:hover {
  background: #0056b3;
}
.btn-success {
  background: #28a745;
  color: white;
}
.btn-success:hover {
  background: #1e7e34;
}
.btn-warning {
  background: #ffc107;
  color: #212529;
}
.btn-warning:hover {
  background: #e0a800;
}
.btn-secondary {
  background: #6c757d;
  color: white;
}
.btn-secondary:hover {
  background: #5a6268;
}
/* KPI Section */
.kpi-section {
  margin-bottom: 30px;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.kpi-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
}
.kpi-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}
.kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  color: #6c757d;
  font-size: 18px;
}
.kpi-title h3 {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 2px;
}
.kpi-subtitle {
  font-size: 12px;
  color: #6c757d;
}
.kpi-value {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
  line-height: 1;
}
.kpi-change {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 15px;
}
.kpi-change.positive {
  color: #28a745;
}
.kpi-change.neutral {
  color: #007bff;
}
.kpi-change.warning {
  color: #fd7e14;
}
.kpi-change.danger {
  color: #dc3545;
}
.progress-bar {
  width: 100%;
  height: 6px;
  background: #e9ecef;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}
.progress-fill {
  height: 100%;
  background: #28a745;
  border-radius: 3px;
}
.performance-label {
  font-size: 12px;
  font-weight: 500;
  color: #28a745;
}
/* Equipment Section */
.equipment-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  margin-bottom: 30px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e9ecef;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title i {
  color: #007bff;
  font-size: 18px;
}
.section-title h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}
.section-title p {
  color: #6c757d;
  font-size: 13px;
  margin-top: 2px;
}
.section-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dropdown {
  padding: 6px 12px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-size: 12px;
  background: white;
}
.btn-dot-menu {
  padding: 6px 10px;
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  font-size: 14px;
}
/* Equipment Summary */
.equipment-summary {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 13px;
}
.summary-item {
  color: #6c757d;
}
.summary-item.positive {
  color: #28a745;
}
.summary-item.warning {
  color: #fd7e14;
}
.summary-item.danger {
  color: #dc3545;
}
/* Equipment Grid */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}
.equipment-card {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
}
.equipment-image {
  height: 140px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.equipment-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #6c757d;
}
.equipment-placeholder i {
  font-size: 32px;
}
.equipment-placeholder span {
  font-size: 12px;
  font-weight: 500;
}
.equipment-info {
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.equipment-info h4 {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}
.status-tag {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}
.status-tag.operational {
  background: #d4edda;
  color: #155724;
}
.status-tag.maintenance {
  background: #fff3cd;
  color: #856404;
}
.status-tag.offline {
  background: #f8d7da;
  color: #721c24;
}
/* Alerts Section */
.alerts-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
}
.alerts-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.alert-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
}
.alert-item.danger {
  border-left: 4px solid #dc3545;
  background: #f8f9fa;
}
.alert-item.warning {
  border-left: 4px solid #fd7e14;
  background: #fff9f0;
}
.alert-item.info {
  border-left: 4px solid #007bff;
  background: #f0f7ff;
}
.alert-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.alert-item.danger .alert-icon {
  background: #f8d7da;
  color: #dc3545;
}
.alert-item.warning .alert-icon {
  background: #fff3cd;
  color: #fd7e14;
}
.alert-item.info .alert-icon {
  background: #d1ecf1;
  color: #007bff;
}
.alert-content {
  flex: 1;
}
.alert-main {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.alert-title {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}
.alert-status {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}
.alert-status.active.danger {
  background: #f8d7da;
  color: #721c24;
}
.alert-status.active.warning {
  background: #fff3cd;
  color: #856404;
}
.alert-status.active.info {
  background: #d1ecf1;
  color: #0c5460;
}
.alert-description {
  font-size: 13px;
  color: #6c757d;
  margin-bottom: 8px;
}
.alert-meta {
  font-size: 12px;
  color: #6c757d;
  display: flex;
  align-items: center;
  gap: 4px;
}
/* Responsive Design */
@media (max-width: 1200px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .equipment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    position: relative;
    top: 0;
  }
  .main-content {
    margin-left: 0;
    padding: 20px;
  }
  .header-content {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .equipment-grid {
    grid-template-columns: 1fr;
  }
  .action-buttons {
    flex-wrap: wrap;
    gap: 8px;
  }
  .content-header {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  .header-info {
    text-align: center;
  }
}