﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --hm-primary: #4f46e5;
    --hm-primary-dark: #4338ca;
    --hm-secondary: #1e293b;
    --hm-text-muted: #64748b;
    --hm-bg: #f1f5f9;
    --hm-card: #ffffff;
    --hm-border: #e2e8f0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
  color: var(--hm-secondary);
}

.main-wrap {
  padding-top: 80px;
}

/* ===============================
   NAVBAR BARU (sesuai gambar)
================================= */

.hm-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #ffffff;
  border-bottom: 1px solid var(--hm-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  z-index: 1000;
}

.hm-navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 32px;
}

/* Brand (Logo + Nama) */
.hm-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.hm-brand-logo {
  width: 40px;
  height: 40px;
  background: var(--hm-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.hm-brand-logo svg {
  width: 22px;
  height: 22px;
}

.hm-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hm-brand-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--hm-secondary);
  line-height: 1.3;
}

.hm-brand-device {
  font-size: 12px;
  color: var(--hm-text-muted);
  font-weight: 400;
}

/* Navigation Menu */
.hm-nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.hm-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--hm-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.hm-nav-item:hover {
  background: #f1f5f9;
}

.hm-nav-item.is-active {
  background: var(--hm-primary);
  color: #ffffff;
}

.hm-nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.hm-nav-item.is-active .hm-nav-icon {
  stroke: #ffffff;
}

/* User Menu */
.hm-user-menu {
  flex-shrink: 0;
}

.hm-user-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  background: #eef2ff;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--hm-secondary);
  font-size: 14px;
  font-weight: 500;
}

.hm-user-btn:hover {
  background: #e0e7ff;
}

.hm-user-btn::after {
  display: none;
}

.hm-user-avatar {
  width: 32px;
  height: 32px;
  background: var(--hm-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.hm-user-avatar svg {
  width: 18px;
  height: 18px;
}

.hm-user-name {
  color: var(--hm-secondary);
  font-weight: 500;
}

.hm-user-chevron {
  color: var(--hm-text-muted);
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

/* Dropdown Menu */
.hm-dropdown-menu {
  min-width: 200px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  padding: 8px;
  margin-top: 8px;
}

.hm-dropdown-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--hm-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
  text-decoration: none;
}

.hm-dropdown-menu .dropdown-item:hover {
  background: #f1f5f9;
}

.hm-dropdown-menu .dropdown-item svg {
  color: var(--hm-text-muted);
}

.hm-dropdown-menu .dropdown-divider {
  border-top: 1px solid var(--hm-border);
  margin: 8px 0;
}

.hm-profile-head {
  padding: 16px 18px 12px;
}

.hm-profile-head-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--hm-secondary);
}

.hm-profile-head-email {
  margin-top: 2px;
  color: var(--hm-text-muted);
  font-size: 13px;
}

.hm-menu-item {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  font-weight: 600;
}

.hm-menu-item svg {
  width: 18px;
  height: 18px;
}

.hm-menu-primary {
  color: var(--hm-primary) !important;
}

.hm-menu-primary:hover {
  background: #eef2ff !important;
}

.hm-menu-danger {
  color: #dc2626 !important;
}

.hm-menu-danger:hover {
  background: #fff1f2 !important;
}

/* Responsive */
@media (max-width: 768px) {
  .hm-navbar-container {
    padding: 0 16px;
    gap: 16px;
  }
  
  .hm-brand-name {
    font-size: 14px;
  }
  
  .hm-brand-device {
    font-size: 11px;
  }
  
  .hm-nav-menu {
    gap: 4px;
  }
  
  .hm-nav-item {
    padding: 6px 10px;
    font-size: 13px;
  }
  
  .hm-nav-item span {
    display: none;
  }
  
  .hm-user-name {
    display: none;
  }
  
  .hm-user-chevron {
    display: none;
  }
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 16px 0 24px;
}

.card {
    border: none;
    border-radius: 16px;
    background: var(--hm-card);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.stat-card h2 {
    font-weight: 700;
}

.device-card {
    border-left: 4px solid var(--hm-primary);
}

.form-card {
    max-width: 540px;
}

.empty-state {
    padding: 32px;
    text-align: center;
    color: #64748b;
    background: #f8fafc;
    border-radius: 12px;
}

.login-card {
    border: none;
    border-radius: 20px;
    background: #ffffff;
}

.status-badge.bradykardia,
.status-badge.hipotermia {
    background: #e2e8f0;
    color: #1e293b;
}

.status-badge.sehat,
.status-badge.normal {
    background: #dcfce7;
    color: #166534;
}

.status-badge.waspada {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.bahaya,
.status-badge.kritis {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.takikardia,
.status-badge.pireksia,
.status-badge.hipertermia {
    background: #fef3c7;
    color: #92400e;
}

.status-badge-sehat {
    background: #dcfce7;
    color: #166534;
    font-weight: 600;
}

.status-badge-waspada {
    background: #fef3c7;
    color: #92400e;
    font-weight: 600;
}

.status-badge-bahaya {
    background: #fee2e2;
    color: #991b1b;
    font-weight: 600;
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .navbar-nav .nav-link {
        margin: 4px 0;
    }
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 48px 0;
}

.login-header .login-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--hm-primary);
  color: #fff;
  font-size: 28px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
}

.login-title {
  font-weight: 700;
  font-size: 18px;
  color: var(--hm-secondary);
}

.login-subtitle {
  margin-top: 6px;
  color: #64748b;
  font-size: 14px;
}

.login-card {
  border: none;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

.login-card-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--hm-primary);
}

.login-input .input-group-text {
  background: #fff;
  border-right: 0;
  border-color: #e2e8f0;
  border-radius: 12px 0 0 12px;
  color: #94a3b8;
}

.login-input .form-control {
  border-left: 0;
  border-color: #e2e8f0;
  border-radius: 0 12px 12px 0;
  padding: 12px 14px;
}

.login-input .form-control:focus {
  box-shadow: none;
  border-color: #c7d2fe;
}

.login-btn {
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  background: var(--hm-primary);
  border: none;
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.22);
}

.login-btn:hover {
  filter: brightness(0.97);
}

.login-footer {
  color: #475569;
}

.login-link {
  font-weight: 700;
  color: var(--hm-primary);
  text-decoration: none;
}

.login-link:hover {
  text-decoration: underline;
}

.login-card-footer {
  border-top: 1px solid #eef2ff;
}

.login-page .form-label {
  margin-bottom: 6px;
}

.login-page .input-group {
  margin-bottom: 16px !important;
}

/* =========================
   GRAFIK PAGE
========================= */

.hm-hero-card{
  display:flex;
  align-items:center;
  gap:16px;
  padding:22px 24px;
  border-radius:18px;
  background:#fff;
  border:1px solid rgba(229,231,235,0.9);
  box-shadow: 0 10px 26px rgba(15,23,42,0.08);
  margin: 18px 0 18px;
}

.hm-hero-icon{
  width:56px;
  height:56px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:#eef2ff;
  color: var(--hm-primary);
  font-size:26px;
}

.hm-hero-title{
  font-size:22px;
  font-weight:800;
  color: var(--hm-secondary);
  line-height:1.15;
}

.hm-hero-subtitle{
  margin-top:6px;
  color:#64748b;
  font-size:14px;
  font-weight:500;
}

.hm-chart-wrap{
  border-radius:18px;
}

.hm-chart-block{
  padding: 6px 4px 14px;
}

.hm-chart-title{
  font-size:18px;
  font-weight:800;
  color:#0f172a;
  margin: 6px 0 14px;
}

.hm-chart-divider{
  height: 26px;
}

.hm-chart-canvas{
  background: #f8fafc;
  border-radius: 14px;
  padding: 18px 18px 10px;
  border: 1px solid rgba(226,232,240,0.9);
  height: 320px;
}

.hm-chart-loading,
.hm-chart-empty{
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed rgba(148,163,184,0.55);
  color: #64748b;
  text-align: center;
  margin-bottom: 12px;
  font-weight: 600;
}

@media (max-width: 768px){
  .hm-hero-title{ font-size:18px; }
  .hm-chart-canvas{ height: 280px; }
}

/* ===============================
   MODAL MANAJEMEN PERANGKAT
================================= */

.hm-modal-content {
  border: none;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  position: relative;
  z-index: 1051;
}

.hm-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 32px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--hm-border);
}

.hm-modal-title-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.hm-modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--hm-primary) 0%, var(--hm-primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.hm-modal-icon svg {
  width: 24px;
  height: 24px;
}

.hm-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--hm-secondary);
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.hm-modal-subtitle {
  margin: 0;
  color: var(--hm-text-muted);
  font-size: 14px;
  font-weight: 400;
}

.hm-modal-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hm-text-muted);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.hm-modal-close:hover {
  background: #eef2ff;
  color: var(--hm-primary);
}

.hm-modal-close svg {
  width: 20px;
  height: 20px;
}

.hm-modal-body {
  padding: 32px;
  background: #ffffff;
  position: relative;
  z-index: 1;
}

/* Tab Navigation */
.hm-tab-nav {
  display: flex;
  gap: 8px;
  background: #f8fafc;
  padding: 6px;
  border-radius: 12px;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.hm-tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: none;
  background: transparent;
  border-radius: 10px;
  color: var(--hm-text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hm-tab-btn:hover {
  background: rgba(79, 70, 229, 0.08);
  color: var(--hm-primary);
}

.hm-tab-btn.active {
  background: #ffffff;
  color: var(--hm-primary);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15);
}

.hm-tab-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Form Styling */
.hm-form-group {
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

/* Tab Panel */
.hm-tab-panel {
  display: none;
  position: relative;
  z-index: 1;
}

.hm-tab-panel.active {
  display: block;
}

.hm-form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--hm-secondary);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.hm-form-label-icon {
  width: 18px;
  height: 18px;
  color: var(--hm-primary);
  flex-shrink: 0;
}

.hm-form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--hm-border);
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--hm-secondary);
  transition: all 0.15s ease;
  background: #ffffff;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.hm-form-input:focus {
  outline: none;
  border-color: var(--hm-primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.hm-form-input::placeholder {
  color: #94a3b8;
}

.hm-form-text {
  margin-top: 8px;
  font-size: 13px;
  color: var(--hm-text-muted);
  font-weight: 400;
}

.hm-form-actions {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--hm-border);
}

/* Buttons */
.hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.hm-btn-primary {
  background: linear-gradient(135deg, var(--hm-primary) 0%, var(--hm-primary-dark) 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.hm-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(79, 70, 229, 0.4);
}

.hm-btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Device List Table */
.hm-device-list-wrap {
  overflow-x: auto;
}

.hm-device-table {
  width: 100%;
  border-collapse: collapse;
}

.hm-device-table thead th {
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--hm-secondary);
  border-bottom: 2px solid var(--hm-border);
  background: #f8fafc;
}

.hm-device-table tbody tr {
  border-bottom: 1px solid var(--hm-border);
  transition: all 0.15s ease;
}

.hm-device-table tbody tr:hover {
  background: #f8fafc;
}

.hm-device-table tbody tr:last-child {
  border-bottom: none;
}

.hm-device-table tbody td {
  padding: 16px;
  font-size: 14px;
  color: var(--hm-text-muted);
  vertical-align: middle;
}

.hm-device-name {
  font-weight: 600;
  color: var(--hm-secondary);
}

.hm-device-code {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 13px;
  color: var(--hm-primary);
  background: #eef2ff;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
}

.hm-device-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.hm-device-status.active {
  background: #dcfce7;
  color: #166534;
}

.hm-device-status.inactive {
  background: #f1f5f9;
  color: #64748b;
}

.hm-device-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.hm-device-actions {
  display: flex;
  gap: 8px;
}

.hm-btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 8px;
}

.hm-btn-outline {
  background: transparent;
  border: 1.5px solid var(--hm-border);
  color: var(--hm-secondary);
}

.hm-btn-outline:hover {
  border-color: var(--hm-primary);
  color: var(--hm-primary);
  background: #eef2ff;
}

.hm-btn-active {
  background: var(--hm-primary);
  color: #ffffff;
  border-color: var(--hm-primary);
}

.hm-empty-state {
  padding: 48px 24px;
  text-align: center;
  background: #f8fafc;
  border-radius: 16px;
  border: 2px dashed var(--hm-border);
}

.hm-empty-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hm-primary);
}

.hm-empty-state-icon svg {
  width: 32px;
  height: 32px;
}

.hm-empty-state-text {
  color: var(--hm-text-muted);
  font-size: 14px;
  margin: 0 0 16px 0;
}

.hm-loading-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--hm-text-muted);
  font-size: 14px;
}

@media (max-width: 768px) {
  .hm-modal-header {
    padding: 20px 20px;
  }

  .hm-modal-icon {
    width: 40px;
    height: 40px;
  }

  .hm-modal-title {
    font-size: 18px;
  }

  .hm-modal-body {
    padding: 20px;
  }

  .hm-tab-nav {
    flex-direction: column;
  }

  .hm-tab-btn {
    justify-content: flex-start;
  }

  .hm-device-table thead th,
  .hm-device-table tbody td {
    padding: 12px;
    font-size: 13px;
  }

  .hm-device-actions {
    flex-direction: column;
  }
}

/* ===============================
   INFO SECTION (Tentang Grafik & Interpretasi Data)
================================= */

.hm-info-section {
  margin-top: 32px;
  margin-bottom: 24px;
}

.hm-info-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 28px;
  height: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.hm-info-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hm-info-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 14px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hm-info-card-icon {
  font-size: 20px;
  line-height: 1;
}

.hm-info-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hm-info-card-list li {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.9;
  padding-left: 14px;
  position: relative;
}

.hm-info-card-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.9;
  font-weight: 400;
}

@media (max-width: 768px) {
  .hm-info-section {
    margin-top: 24px;
    margin-bottom: 16px;
  }

  .hm-info-card {
    padding: 20px;
  }

  .hm-info-card-title {
    font-size: 16px;
  }

  .hm-info-card-list li {
    font-size: 13px;
    line-height: 1.8;
  }
}

/* ===============================
   HISTORI PAGE
================================= */

.histori-header-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
  border: 1px solid rgba(229, 231, 235, 0.9);
}

.histori-header-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 26px;
  flex-shrink: 0;
}

.histori-header-title {
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.histori-header-subtitle {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 400;
}

.histori-table-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(229, 231, 235, 0.9);
  overflow: hidden;
}

.histori-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  margin: 0;
}

.histori-table thead th {
  padding: 16px 20px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

.histori-table tbody tr {
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.15s ease;
}

.histori-table tbody tr:hover {
  background: #f9fafb;
}

.histori-table tbody tr:last-child {
  border-bottom: none;
}

.histori-table tbody td {
  padding: 16px 20px;
  font-size: 14px;
  color: #4b5563;
  font-weight: 400;
  vertical-align: middle;
}

.histori-time {
  color: #6b7280;
  font-weight: 400;
  font-size: 14px;
}

.histori-value {
  font-weight: 400;
  font-size: 14px;
  transition: color 0.2s ease;
}

.histori-value.hv-normal {
  color: #374151;
}

.histori-value.hv-waspada {
  color: #d97706;
}

.histori-value.hv-bahaya {
  color: #dc2626;
}

.normal-values-info {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  padding: 16px 20px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(229, 231, 235, 0.9);
  font-size: 14px;
  color: #4b5563;
  flex-wrap: wrap;
}

.normal-values-info > span:first-child {
  font-weight: 600;
  color: #374151;
}

.normal-values-info i {
  color: #3b82f6;
}

.normal-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.normal-item i {
  color: #10b981;
}

.normal-item strong {
  color: #166534;
}

.normal-divider {
  color: #e5e7eb;
  font-weight: 300;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: normal;
}

.status-pill.sp-sehat {
  background: #dcfce7;
  color: #166534;
}

.status-pill.sp-waspada {
  background: #fef3c7;
  color: #92400e;
}

.status-pill.sp-bahaya {
  background: #fee2e2;
  color: #991b1b;
}

.histori-footer {
  padding: 16px 20px;
  border-top: 1px solid #f3f4f6;
  color: #6b7280;
  font-size: 13px;
  font-weight: 400;
  background: #ffffff;
}

@media (max-width: 768px) {
  .histori-header-card {
    padding: 18px;
    gap: 14px;
  }

  .histori-header-icon {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }

  .histori-header-title {
    font-size: 18px;
  }

  .histori-table thead th,
  .histori-table tbody td {
    padding: 14px 12px;
    font-size: 13px;
  }

  .histori-footer {
    padding: 14px 16px;
    font-size: 12px;
  }
}

/* Dashboard */
.dashboard-header-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid rgba(229, 231, 235, 0.9);
}

.dashboard-title {
  color: #2d2d5f;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 4px;
}

.dashboard-subtitle {
  color: #6b7280;
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 0;
}

.connection-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.connection-badge.connected {
  background: #dcfce7;
  color: #166534;
}

.connection-badge.offline {
  background: #fee2e2;
  color: #991b1b;
}

.connection-badge i {
  font-size: 14px;
}

.btn-save-data {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  border: none;
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-save-data:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(79, 70, 229, 0.45);
}

.btn-save-data:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-save-data i {
  font-size: 14px;
}

.metric-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  height: 100%;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.metric-card.sehat {
  border-color: transparent;
}

.metric-card.waspada {
  border-color: #fbbf24;
  box-shadow: 0 6px 24px rgba(251, 191, 36, 0.25);
}

.metric-card.bahaya {
  border-color: #f87171;
  box-shadow: 0 6px 24px rgba(248, 113, 113, 0.25);
}

.metric-card.critical {
  border-color: #f87171;
  box-shadow: 0 6px 24px rgba(248, 113, 113, 0.25);
}

.metric-card.warning {
  border-color: #fbbf24;
  box-shadow: 0 6px 24px rgba(251, 191, 36, 0.25);
}

.metric-card.normal {
  border-color: transparent;
}

.metric-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.metric-icon-wrapper.heart {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.metric-icon-wrapper.temp {
  background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
}

.metric-icon {
  font-size: 26px;
}

.metric-icon.heart {
  color: #ef4444;
}

.metric-icon.temp {
  color: #f97316;
}

.metric-label {
  color: #4b5563;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
}

.metric-value {
  font-size: 42px;
  font-weight: 800;
  color: #1f2937;
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1;
}

.metric-unit {
  font-size: 16px;
  color: #6b7280;
  font-weight: 500;
}

.metric-normal-range {
  color: #6b7280;
  font-size: 13px;
  font-weight: 400;
}

.metric-status-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.metric-status-badge.sehat {
  background: #dcfce7;
  color: #166534;
}

.metric-status-badge.waspada {
  background: #fef3c7;
  color: #92400e;
}

.metric-status-badge.bahaya {
  background: #fee2e2;
  color: #991b1b;
}

.metric-status-badge.normal {
  background: #dcfce7;
  color: #166534;
}

.metric-status-badge.critical {
  background: #fee2e2;
  color: #991b1b;
}

.metric-status-badge.warning {
  background: #fef3c7;
  color: #92400e;
}

.monitoring-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.monitoring-indicator.frozen {
  color: #d97706;
}

.monitoring-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f87171;
  animation: pulse 1.5s infinite;
}

.monitoring-dot.frozen {
  background: #fbbf24;
  animation: none;
  opacity: 1;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.9); }
}

.status-panel {
  border-radius: 16px;
  padding: 20px 24px;
  margin-top: 24px;
  border: 1px solid;
}

.status-panel.sehat {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #86efac;
}

.status-panel.waspada {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fcd34d;
}

.status-panel.bahaya {
  background: linear-gradient(135deg, #fef2f2 0%, #fff1f2 100%);
  border-color: #fecdd3;
}

.status-panel.normal {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #86efac;
}

.status-panel.critical {
  background: linear-gradient(135deg, #fef2f2 0%, #fff1f2 100%);
  border-color: #fecdd3;
}

.status-panel.warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fcd34d;
}

.status-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.status-header i {
  font-size: 20px;
}

.status-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.status-title.critical {
  color: #991b1b;
}

.status-title.normal {
  color: #166534;
}

.status-title.warning {
  color: #92400e;
}

.status-description {
  color: #4b5563;
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

.reading-status-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 24px;
  margin-top: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(229, 231, 235, 0.9);
}

.reading-label {
  font-weight: 700;
  color: #374151;
  font-size: 14px;
  margin-bottom: 4px;
}

.reading-hint {
  font-size: 13px;
  color: #6b7280;
  font-weight: 400;
}

/* ===============================
   SAVE NOTIFICATION
================================= */

.save-notification {
  position: fixed;
  top: 80px;
  right: 24px;
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 420px;
  z-index: 10000;
  transform: translateX(450px);
  transition: transform 0.3s ease;
  border: 1px solid #e2e8f0;
}

.save-notification.show {
  transform: translateX(0);
}

.save-notification-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.save-notification-icon.sehat {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.save-notification-icon.waspada {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.save-notification-icon.bahaya {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.save-notification-icon i {
  font-size: 22px;
}

.save-notification-content {
  flex: 1;
  min-width: 0;
}

.save-notification-title {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}

.save-notification-message {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 12px;
}

.save-notification-overall {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: 6px;
}

.save-overall-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.save-overall-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: capitalize;
  margin-left: auto;
}

.save-overall-badge.sehat {
  background: #dcfce7;
  color: #166534;
}

.save-overall-badge.waspada {
  background: #fef3c7;
  color: #92400e;
}

.save-overall-badge.bahaya {
  background: #fee2e2;
  color: #991b1b;
}

.save-notification-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.save-detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 6px 10px;
  background: #f8fafc;
  border-radius: 6px;
}

.save-detail-item i {
  font-size: 14px;
  color: #64748b;
}

.save-detail-item strong {
  font-weight: 600;
  color: #1f2937;
}

.save-status-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: capitalize;
}

.save-status-badge.sehat {
  background: #dcfce7;
  color: #166534;
}

.save-status-badge.waspada {
  background: #fef3c7;
  color: #92400e;
}

.save-status-badge.bahaya {
  background: #fee2e2;
  color: #991b1b;
}

.save-notification-close {
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.save-notification-close:hover {
  background: #f3f4f6;
  color: #4b5563;
}

@media (max-width: 768px) {
  .save-notification {
    top: 70px;
    right: 12px;
    left: 12px;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .dashboard-header-card {
    padding: 18px;
  }

  .dashboard-title {
    font-size: 20px;
  }

  .metric-card {
    padding: 20px;
  }

  .metric-value {
    font-size: 36px;
  }

  .status-panel,
  .reading-status-card {
    padding: 16px 18px;
  }
}

/* ===============================
   MODAL MANAJEMEN PERANGKAT (NEW)
================================= */

.hm-device-modal .modal-content {
  border: none;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.hm-device-modal .modal-header {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 22px;
  flex-shrink: 0;
}

.hm-device-modal .modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.modal-subtitle {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 400;
}

.hm-device-modal .modal-body {
  padding: 32px;
  background: #ffffff;
}

/* Custom Tab Navigation */
.hm-tab-nav-custom {
  display: flex;
  gap: 8px;
  background: #f1f5f9;
  padding: 6px;
  border-radius: 12px;
}

.hm-tab-custom {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: none;
  background: transparent;
  border-radius: 10px;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  justify-content: center;
}

.hm-tab-custom:hover {
  background: rgba(79, 70, 229, 0.08);
  color: #4f46e5;
}

.hm-tab-custom.active {
  background: #ffffff;
  color: #4f46e5;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15);
}

.hm-tab-custom i {
  font-size: 16px;
}

/* Tab Content */
.tab-content {
  position: relative;
}

.tab-pane {
  display: none;
}

.tab-pane.show.active {
  display: block;
}

/* Custom Form */
.hm-form-clean {
  padding: 8px 4px;
}

.hm-form-group-custom {
  margin-bottom: 24px;
}

.hm-label {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 10px;
}

.hm-label i {
  color: #4f46e5;
  font-size: 16px;
}

.required-badge {
  color: #dc2626;
  font-weight: 700;
  margin-left: 4px;
}

.optional-badge {
  color: #94a3b8;
  font-weight: 400;
  font-size: 13px;
  margin-left: 6px;
}

.hm-input-custom {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  color: #1e293b;
  transition: all 0.2s ease;
  background: #ffffff;
}

.hm-input-custom:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.hm-input-custom::placeholder {
  color: #94a3b8;
}

.hm-form-text {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #64748b;
}

.hm-form-actions-custom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.hm-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.hm-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(79, 70, 229, 0.4);
}

/* Device List Table */
.hm-device-table-custom {
  width: 100%;
  border-collapse: collapse;
}

.hm-device-table-custom thead th {
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  border-bottom: 2px solid #e2e8f0;
  background: #f8fafc;
}

.hm-device-table-custom tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.15s ease;
}

.hm-device-table-custom tbody tr:hover {
  background: #f8fafc;
}

.hm-device-table-custom tbody tr:last-child {
  border-bottom: none;
}

.hm-device-table-custom tbody td {
  padding: 16px;
  font-size: 14px;
  vertical-align: middle;
}

.device-name-cell {
  font-weight: 600;
  color: #1e293b;
}

.device-code-cell {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 13px;
  color: #9b266f;
  background: #fdf2f8;
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-block;
}

.device-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.device-status-badge.active {
  background: #16a34a;
  color: #ffffff;
}

.device-status-badge.inactive {
  background: #64748b;
  color: #ffffff;
}

.device-action-btn {
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.device-action-btn.use {
  background: #3b82f6;
  color: #ffffff;
}

.device-action-btn.use:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.device-action-btn.using {
  background: #ffffff;
  color: #16a34a;
  border: 2px solid #16a34a;
}

.device-action-btn.using:hover {
  background: #f0fdf4;
}

/* Loading & Empty State */
.loading-state-custom {
  padding: 48px 24px;
  text-align: center;
}

.loading-state-custom .spinner-border {
  width: 40px;
  height: 40px;
}

.loading-state-custom p {
  color: #64748b;
  font-size: 14px;
  margin: 0;
}

.empty-state-custom {
  padding: 48px 24px;
  text-align: center;
}

.empty-state-custom i {
  font-size: 48px;
  color: #cbd5e1;
}

.empty-state-custom p {
  color: #64748b;
  font-size: 14px;
  margin: 12px 0 0 0;
}

/* Responsive */
@media (max-width: 768px) {
  .hm-device-modal .modal-header {
    padding: 20px;
  }
  
  .modal-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .hm-device-modal .modal-title {
    font-size: 18px;
  }
  
  .hm-device-modal .modal-body {
    padding: 20px;
  }
  
  .hm-tab-nav-custom {
    flex-direction: column;
  }
  
  .hm-tab-custom {
    justify-content: flex-start;
  }
}

/* ===============================
   GRAFIK & HISTORI FILTER
================================= */

.hm-filter-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
}

.hm-filter-card .filter-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  color: #4f46e5;
}

.hm-filter-card .filter-header i {
  font-size: 18px;
}

.hm-filter-card .filter-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hm-filter-card .filter-device-select {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  color: #1e293b;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hm-filter-card .filter-device-select:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.hm-filter-card .filter-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  background: #fee2e2;
  color: #dc2626;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.hm-filter-card .filter-clear-btn:hover {
  background: #fecaca;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.hm-filter-card .filter-clear-btn i {
  font-size: 16px;
}

/* Responsive Filter */
@media (max-width: 768px) {
  .hm-filter-card .filter-content {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hm-filter-card .filter-device-select {
    width: 100%;
  }
  
  .hm-filter-card .filter-clear-btn {
    justify-content: center;
  }
}

/* ===============================
   TIPS PANEL (DASHBOARD)
================================= */

.tips-panel {
  background: #ffffff;
  border: 1px solid var(--hm-border);
  border-radius: 16px;
  padding: 32px;
  margin-top: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.tips-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--hm-border);
}

.tips-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--hm-primary) 0%, var(--hm-primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.tips-title-wrapper h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--hm-secondary);
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.tips-title-wrapper p {
  font-size: 14px;
  color: var(--hm-text-muted);
  margin: 0;
  font-weight: 400;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.tip-card {
  background: #f8fafc;
  border: 1px solid var(--hm-border);
  border-radius: 12px;
  padding: 24px 20px;
  position: relative;
  transition: all 0.3s ease;
}

.tip-card:hover {
  background: #ffffff;
  border-color: var(--hm-primary);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.12);
  transform: translateY(-4px);
}

.tip-card-number {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 32px;
  font-weight: 800;
  color: rgba(79, 70, 229, 0.08);
  line-height: 1;
}

.tip-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hm-primary);
  font-size: 20px;
  margin-bottom: 16px;
}

.tip-card h5 {
  font-size: 16px;
  font-weight: 700;
  color: var(--hm-secondary);
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.tip-card p {
  font-size: 13px;
  color: var(--hm-text-muted);
  margin: 0;
  line-height: 1.6;
}

.tip-footer {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.tip-footer i {
  font-size: 20px;
  color: #0284c7;
  flex-shrink: 0;
  margin-top: 2px;
}

.tip-footer p {
  font-size: 14px;
  color: #475569;
  margin: 0;
  line-height: 1.6;
}

/* Responsive Tips */
@media (max-width: 1024px) {
  .tips-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .tips-panel {
    padding: 24px;
  }
  
  .tips-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .tips-icon-wrapper {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  
  .tips-title-wrapper h4 {
    font-size: 18px;
  }
  
  .tips-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .tip-card {
    padding: 20px 18px;
  }
  
  .tip-card-number {
    font-size: 28px;
  }
  
  .tip-card-icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  
  .tip-card h5 {
    font-size: 15px;
  }
  
  .tip-card p {
    font-size: 13px;
  }
  
  .tip-footer {
    padding: 14px 16px;
  }
  
  .tip-footer i {
    font-size: 18px;
  }
  
  .tip-footer p {
    font-size: 13px;
  }
}
