
/* =========================================
   GOJAK TECHOPS - DASHBOARD
   Dark Glossy
   Komponen Dashboard
   ========================================= */

/* Welcome */

.welcome-panel {
  position: relative;
  min-height: 155px;
  overflow: hidden;
  padding: 26px 28px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background:
    radial-gradient(
      circle at 85% 50%,
      rgba(37,137,255,.24),
      transparent 34%
    ),
    linear-gradient(120deg,#192b43,#132238);
}

.eyebrow {
  color: var(--blue-light);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .15em;
}

.welcome-panel h2 {
  margin: 8px 0 5px;
  font-size: 23px;
}

.welcome-panel p {
  font-size: 12px;
}

.welcome-decoration {
  color: rgba(130,190,255,.12);
  font-size: 100px;
  font-weight: 900;
  line-height: 1;
}

/* Ringkasan perangkat */

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.stat-card {
  min-width: 0;
  min-height: 118px;
  padding: 17px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
}

.stat-icon svg {
  width: 21px;
  height: 21px;
}

.stat-icon.blue {
  color: #72b8ff;
  background: rgba(37,137,255,.15);
}

.stat-icon.teal {
  color: #5bd7d0;
  background: rgba(37,195,195,.14);
}

.stat-icon.purple {
  color: #b9a5ff;
  background: rgba(166,139,255,.14);
}

.stat-icon.green {
  color: #52dda9;
  background: rgba(34,199,139,.14);
}

.stat-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.stat-info > span {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.4;
}

.stat-info > strong {
  margin: 3px 0;
  font-size: 26px;
  line-height: 1.15;
}

.stat-info small {
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.5;
}

.stat-info small b {
  color: var(--text-secondary);
  font-weight: 700;
}

.stat-info small i {
  padding: 0 2px;
  color: var(--text-muted);
  font-style: normal;
}

.dash-stat {
  position: relative;
  overflow: hidden;
}

.dash-stat::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  right: -45px;
  top: -48px;
  border-radius: 50%;
  background: rgba(75,155,255,.055);
  pointer-events: none;
}

.dash-stat:hover {
  transform: translateY(-2px);
  border-color: var(--border-bright);
  box-shadow: var(--shadow-blue);
  transition: var(--transition);
}

.dashboard-connection-label {
  color: var(--green);
  font-size: 19px !important;
}

/* Susunan panel */

.dashboard-lower-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px;
}

.dash-panel {
  min-width: 0;
  padding: 20px !important;
}

.dash-panel .card-heading {
  margin-bottom: 17px;
}

.dash-panel .card-heading h3 {
  font-size: 15px;
  line-height: 1.4;
}

.dash-panel .card-heading p {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.55;
}

/* Monitoring unit */

.dashboard-unit-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
}

.dashboard-unit-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}

.dashboard-unit-card > strong {
  display: block;
  overflow: hidden;
  color: var(--text-main);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-unit-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
}

.dashboard-unit-counts span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
}

.dashboard-unit-counts svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

.unit-computer {
  color: #72b8ff;
  background: rgba(37,137,255,.14);
}

.unit-printer {
  color: #5bd7d0;
  background: rgba(37,195,195,.13);
}

/* Aktivitas maintenance */

.dashboard-activity-list,
.dashboard-schedule-list {
  display: flex;
  flex-direction: column;
}

.dashboard-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.dashboard-activity-item:last-child,
.dashboard-schedule-item:last-child {
  border-bottom: 0;
}

.dashboard-activity-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
}

.dashboard-activity-icon svg {
  width: 20px;
  height: 20px;
}

.dashboard-activity-icon.komputer {
  color: #72b8ff;
  background: rgba(37,137,255,.15);
}

.dashboard-activity-icon.printer {
  color: #5bd7d0;
  background: rgba(37,195,195,.14);
}

.dashboard-activity-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  gap: 4px;
}

.dashboard-activity-info strong {
  color: var(--text-main);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.dashboard-activity-info span,
.dashboard-activity-info small {
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.dashboard-activity-info time {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.5;
}

/* Jadwal maintenance */

.dashboard-schedule-summary {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 9px;
  margin-bottom: 15px;
}

.dashboard-schedule-summary > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 5px;
  padding: 12px 10px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255,255,255,.025);
}

.dashboard-schedule-summary strong {
  font-size: 22px;
  line-height: 1.1;
}

.dashboard-schedule-summary span {
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.4;
}

.schedule-overdue strong {
  color: var(--red);
}

.schedule-upcoming strong {
  color: var(--yellow);
}

.schedule-future strong {
  color: var(--blue-light);
}

.dashboard-schedule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.dashboard-schedule-item > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 5px;
}

.dashboard-schedule-item strong {
  color: var(--text-main);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.dashboard-schedule-item small {
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.dashboard-schedule-item time {
  flex: 0 0 auto;
  color: var(--text-secondary);
  font-size: 11px;
  text-align: right;
}

.dashboard-more {
  display: block;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 10px;
}

/* Kondisi perangkat */

.dashboard-condition-table {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.02);
}

.condition-table-header,
.condition-table-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 85px 85px;
  align-items: center;
  gap: 8px;
  padding: 13px 14px;
}

.condition-table-header {
  min-height: 44px;
  background: rgba(37,137,255,.09);
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 11px;
}

.condition-table-header strong,
.condition-table-row > strong {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.condition-table-row {
  min-height: 45px;
  border-bottom: 1px solid var(--border);
}

.condition-table-row:last-child {
  border-bottom: 0;
}

.condition-name {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.45;
}

.condition-table-row > strong {
  color: var(--text-main);
  font-size: 14px;
}

.condition-indicator {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.condition-indicator.baik {
  background: var(--green);
  box-shadow: 0 0 8px rgba(34,199,139,.4);
}

.condition-indicator.attention {
  background: var(--yellow);
}

.condition-indicator.bad {
  background: var(--red);
}

.condition-indicator.unknown {
  background: var(--text-muted);
}

.dashboard-condition-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 14px;
  margin-top: 13px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.6;
}

/* Pesan kosong dan error */

.dashboard-empty,
.dashboard-error {
  padding: 18px 13px;
  border: 1px dashed var(--border-bright);
  border-radius: 11px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.dashboard-error {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--red);
  overflow-wrap: anywhere;
}

.dashboard-error small {
  color: var(--text-muted);
}

.dashboard-offline {
  background: var(--red) !important;
  box-shadow: 0 0 9px rgba(240,100,100,.5) !important;
}
