@charset "UTF-8";
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2c3e50 0%, #1b2631 100%);
  padding: 16px;
}
.login-container .login-box {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 400px;
}
.login-container .login-box .logo-container {
  text-align: center;
  margin-bottom: 24px;
}
.login-container .login-box .logo-container .logo {
  width: 80px;
  height: 80px;
  margin-bottom: 12px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.login-container .login-box .logo-container h1 {
  color: #ffffff;
  font-size: 2.5em;
  margin: 8px 0 4px 0;
  font-weight: 300;
}
.login-container .login-box .logo-container .tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875em;
  margin: 0;
}
.login-container .login-box .login-form h2 {
  color: #ffffff;
  text-align: center;
  margin-bottom: 24px;
  font-weight: 400;
}
.login-container .login-box .login-form .form-group {
  margin-bottom: 16px;
}
.login-container .login-box .login-form .form-group label {
  display: block;
  color: #ffffff;
  margin-bottom: 4px;
  font-weight: 500;
}
.login-container .login-box .login-form .form-group input {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.login-container .login-box .login-form .form-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.login-container .login-box .login-form .form-group input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.login-container .login-box .login-form .login-btn {
  width: 100%;
  padding: 12px;
  background: #e74c3c;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
}
.login-container .login-box .login-form .login-btn:hover {
  background: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}
.login-container .login-box .login-form .error-message {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
  padding: 8px;
  border-radius: 4px;
  margin-bottom: 12px;
  text-align: center;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

@media (max-width: 576px) {
  .login-container .login-box {
    padding: 24px 16px;
    margin: 16px;
  }
  .login-container .login-box .logo-container .logo {
    width: 60px;
    height: 60px;
  }
  .login-container .login-box .logo-container h1 {
    font-size: 2em;
  }
}
.login-btn {
  background: #e74c3c;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 1em;
  transition: 0.3s ease;
}
.login-btn:hover {
  background: #c0392b;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.device-card {
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background: #ffffff;
}
.device-card .status-active {
  color: #27ae60;
}
.device-card .battery-low {
  color: #e74c3c;
}

.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  background: linear-gradient(135deg, #2c3e50 0%, #1b2631 100%);
  font-family: "Arial", "Helvetica", "Noto Sans", sans-serif;
}

.dashboard-header {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 1020;
}
.dashboard-header .header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: 1400px;
  margin: 0 auto;
}
.dashboard-header .header-left {
  display: flex;
  align-items: center;
  gap: 24px;
}
.dashboard-header .header-left .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dashboard-header .header-left .brand .logo {
  width: 32px;
  height: 32px;
}
.dashboard-header .header-left .brand h1 {
  font-size: 1.25em;
  font-weight: 600;
  color: #343a40;
  margin: 0;
}
.dashboard-header .header-left .main-nav {
  display: flex;
  gap: 16px;
}
.dashboard-header .header-left .main-nav .nav-link {
  padding: 8px 12px;
  color: #6c757d;
  font-weight: 500;
  border-radius: 6px;
  transition: 0.3s ease;
}
.dashboard-header .header-left .main-nav .nav-link:hover {
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.05);
  text-decoration: none;
}
.dashboard-header .header-left .main-nav .nav-link.active {
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.1);
}
.dashboard-header .header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.dashboard-header .header-right .user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dashboard-header .header-right .user-menu .user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e74c3c 0%, #e7853c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875em;
}
.dashboard-header .header-right .user-menu .user-info .username {
  display: block;
  font-weight: 500;
  color: #343a40;
  font-size: 0.875em;
}
.dashboard-header .header-right .user-menu .user-info .user-role {
  display: block;
  font-size: 0.75em;
  color: #6c757d;
  text-transform: capitalize;
}
.dashboard-header .header-right .user-menu .logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #e74c3c;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  padding: 8px 12px;
  font-size: 0.875em;
}
.dashboard-header .header-right .user-menu .logout-btn:hover {
  background: rgb(213.698630137, 43.8356164384, 26.301369863);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
  text-decoration: none;
  color: #ffffff;
}
.dashboard-header .header-right .user-menu .logout-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.dashboard-header .header-right .user-menu .logout-btn.secondary {
  background: #f8f9fa;
  color: #343a40;
  border: 1px solid rgba(108, 117, 125, 0.3);
}
.dashboard-header .header-right .user-menu .logout-btn.secondary:hover {
  background: rgb(233.125, 236.25, 239.375);
  color: #343a40;
}
.dashboard-header .header-right .user-menu .logout-btn .icon {
  font-size: 1.125em;
}

.sidebar {
  width: 250px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
}
.sidebar .sidebar-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar .sidebar-header .logo {
  width: 64px;
  height: 64px;
  border-radius: 5%;
  background: #000000;
  padding: 8px;
  filter: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.sidebar .sidebar-header h2 {
  color: #ffffff;
  margin: 0;
  font-size: 1.25em;
  font-weight: 300;
}
.sidebar .sidebar-nav {
  flex: 1;
  padding: 16px 0;
}
.sidebar .sidebar-nav .nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
}
.sidebar .sidebar-nav .nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.sidebar .sidebar-nav .nav-item.active {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
  border-right: 3px solid #e74c3c;
}
.sidebar .sidebar-nav .nav-item i {
  width: 20px;
  height: 20px;
}
.sidebar .sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.sidebar .sidebar-footer .user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.sidebar .sidebar-footer .user-info .user-avatar {
  width: 40px;
  height: 40px;
  background: #e74c3c;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.sidebar .sidebar-footer .user-info .user-details .username {
  display: block;
  font-weight: 600;
  color: #ffffff;
}
.sidebar .sidebar-footer .user-info .user-details .user-role {
  display: block;
  font-size: 0.875em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: capitalize;
}
.sidebar .sidebar-footer .logout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  background: #e74c3c;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.875em;
  transition: all 0.3s ease;
}
.sidebar .sidebar-footer .logout-btn:hover {
  background: rgb(213.698630137, 43.8356164384, 26.301369863);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.main-content {
  flex: 1;
  padding: 24px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  color: #ffffff;
}
.main-content h1 {
  color: #ffffff;
  margin-bottom: 16px;
}
.main-content p {
  color: rgba(255, 255, 255, 0.8);
}

.dashboard-main {
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.page-header .page-title h2 {
  font-size: 2em;
  color: #343a40;
  margin: 0 0 4px 0;
}
.page-header .page-title .breadcrumb {
  font-size: 0.875em;
  color: #6c757d;
}
.page-header .page-title .breadcrumb .current {
  color: #e74c3c;
  font-weight: 500;
}
.page-header .page-actions {
  display: flex;
  gap: 12px;
}
.page-header .page-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #e74c3c;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.page-header .page-actions .btn:hover {
  background: rgb(213.698630137, 43.8356164384, 26.301369863);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
  text-decoration: none;
  color: #ffffff;
}
.page-header .page-actions .btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.page-header .page-actions .btn.secondary {
  background: #f8f9fa;
  color: #343a40;
  border: 1px solid rgba(108, 117, 125, 0.3);
}
.page-header .page-actions .btn.secondary:hover {
  background: rgb(233.125, 236.25, 239.375);
  color: #343a40;
}
.page-header .page-actions .btn .icon {
  font-size: 1.125em;
}

.page-header {
  margin-bottom: 24px;
}
.page-header h1 {
  color: #ffffff;
  margin: 0 0 8px 0;
  font-size: 2em;
}
.page-header p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}
.stat-card .stat-icon-img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}
.stat-card .stat-content h3 {
  color: #ffffff;
  font-size: 1.5em;
  margin: 0 0 4px 0;
}
.stat-card .stat-content p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: 0.875em;
}
.stat-card.status-online .stat-icon-img {
  filter: brightness(0) saturate(100%) invert(71%) sepia(55%) saturate(4940%) hue-rotate(100deg) brightness(96%) contrast(85%);
}
.stat-card.status-offline .stat-icon-img {
  filter: brightness(0) saturate(100%) invert(26%) sepia(89%) saturate(1583%) hue-rotate(342deg) brightness(96%) contrast(87%);
}
.stat-card.status-maintenance .stat-icon-img {
  filter: brightness(0) saturate(100%) invert(78%) sepia(85%) saturate(1142%) hue-rotate(12deg) brightness(101%) contrast(91%);
}

.table-section h2 {
  color: #ffffff;
  margin: 0 0 16px 0;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75em;
  font-weight: 600;
}
.status-badge.status-online {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.3);
}
.status-badge.status-offline {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.3);
}
.status-badge.status-maintenance {
  background: rgba(241, 196, 15, 0.2);
  color: #f1c40f;
  border: 1px solid rgba(241, 196, 15, 0.3);
}

.coordinates-info {
  font-size: 0.75em;
}
.coordinates-info div {
  margin-bottom: 2px;
}
.coordinates-info div:last-child {
  margin-bottom: 0;
}

.time-info div {
  color: #ffffff;
}
.time-info small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75em;
}

.no-data {
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

.error-message {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 16px;
  color: #e74c3c;
  display: flex;
  align-items: center;
  gap: 8px;
}
.error-message .error-icon {
  width: 18px;
  height: 18px;
  filter: brightness(0) saturate(100%) invert(26%) sepia(89%) saturate(1583%) hue-rotate(342deg) brightness(96%) contrast(87%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.stats-grid .stat-card.devices {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: 0.3s ease;
  border: 1px solid rgba(108, 117, 125, 0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.stats-grid .stat-card.devices:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}
.stats-grid .stat-card.devices::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3498db 0%, rgb(138.6359832636, 195.9581589958, 234.3640167364) 100%);
}
.stats-grid .stat-card.devices .stat-number {
  font-size: 2.5em;
  font-weight: 700;
  color: #3498db;
  display: block;
  margin-bottom: 8px;
}
.stats-grid .stat-card.devices .stat-label {
  font-size: 0.875em;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}
.stats-grid .stat-card.devices .stat-trend {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.75em;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}
.stats-grid .stat-card.devices .stat-trend.up {
  background: rgba(39, 174, 96, 0.1);
  color: #27ae60;
}
.stats-grid .stat-card.devices .stat-trend.up::before {
  content: "↗";
  margin-right: 2px;
}
.stats-grid .stat-card.devices .stat-trend.down {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
}
.stats-grid .stat-card.devices .stat-trend.down::before {
  content: "↘";
  margin-right: 2px;
}
.stats-grid .stat-card.devices .stat-trend.neutral {
  background: rgba(108, 117, 125, 0.1);
  color: #6c757d;
}
.stats-grid .stat-card.devices .stat-trend.neutral::before {
  content: "→";
  margin-right: 2px;
}
.stats-grid .stat-card.active {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: 0.3s ease;
  border: 1px solid rgba(108, 117, 125, 0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.stats-grid .stat-card.active:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}
.stats-grid .stat-card.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #27ae60 0%, rgb(95.7042253521, 219.2957746479, 147.8873239437) 100%);
}
.stats-grid .stat-card.active .stat-number {
  font-size: 2.5em;
  font-weight: 700;
  color: #27ae60;
  display: block;
  margin-bottom: 8px;
}
.stats-grid .stat-card.active .stat-label {
  font-size: 0.875em;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}
.stats-grid .stat-card.active .stat-trend {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.75em;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}
.stats-grid .stat-card.active .stat-trend.up {
  background: rgba(39, 174, 96, 0.1);
  color: #27ae60;
}
.stats-grid .stat-card.active .stat-trend.up::before {
  content: "↗";
  margin-right: 2px;
}
.stats-grid .stat-card.active .stat-trend.down {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
}
.stats-grid .stat-card.active .stat-trend.down::before {
  content: "↘";
  margin-right: 2px;
}
.stats-grid .stat-card.active .stat-trend.neutral {
  background: rgba(108, 117, 125, 0.1);
  color: #6c757d;
}
.stats-grid .stat-card.active .stat-trend.neutral::before {
  content: "→";
  margin-right: 2px;
}
.stats-grid .stat-card.offline {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: 0.3s ease;
  border: 1px solid rgba(108, 117, 125, 0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.stats-grid .stat-card.offline:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}
.stats-grid .stat-card.offline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e74c3c 0%, rgb(242.1780821918, 159.3698630137, 150.8219178082) 100%);
}
.stats-grid .stat-card.offline .stat-number {
  font-size: 2.5em;
  font-weight: 700;
  color: #e74c3c;
  display: block;
  margin-bottom: 8px;
}
.stats-grid .stat-card.offline .stat-label {
  font-size: 0.875em;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}
.stats-grid .stat-card.offline .stat-trend {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.75em;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}
.stats-grid .stat-card.offline .stat-trend.up {
  background: rgba(39, 174, 96, 0.1);
  color: #27ae60;
}
.stats-grid .stat-card.offline .stat-trend.up::before {
  content: "↗";
  margin-right: 2px;
}
.stats-grid .stat-card.offline .stat-trend.down {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
}
.stats-grid .stat-card.offline .stat-trend.down::before {
  content: "↘";
  margin-right: 2px;
}
.stats-grid .stat-card.offline .stat-trend.neutral {
  background: rgba(108, 117, 125, 0.1);
  color: #6c757d;
}
.stats-grid .stat-card.offline .stat-trend.neutral::before {
  content: "→";
  margin-right: 2px;
}
.stats-grid .stat-card.maintenance {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: 0.3s ease;
  border: 1px solid rgba(108, 117, 125, 0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.stats-grid .stat-card.maintenance:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}
.stats-grid .stat-card.maintenance::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f39c12 0%, rgb(247.9156626506, 196.5542168675, 115.0843373494) 100%);
}
.stats-grid .stat-card.maintenance .stat-number {
  font-size: 2.5em;
  font-weight: 700;
  color: #f39c12;
  display: block;
  margin-bottom: 8px;
}
.stats-grid .stat-card.maintenance .stat-label {
  font-size: 0.875em;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}
.stats-grid .stat-card.maintenance .stat-trend {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.75em;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}
.stats-grid .stat-card.maintenance .stat-trend.up {
  background: rgba(39, 174, 96, 0.1);
  color: #27ae60;
}
.stats-grid .stat-card.maintenance .stat-trend.up::before {
  content: "↗";
  margin-right: 2px;
}
.stats-grid .stat-card.maintenance .stat-trend.down {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
}
.stats-grid .stat-card.maintenance .stat-trend.down::before {
  content: "↘";
  margin-right: 2px;
}
.stats-grid .stat-card.maintenance .stat-trend.neutral {
  background: rgba(108, 117, 125, 0.1);
  color: #6c757d;
}
.stats-grid .stat-card.maintenance .stat-trend.neutral::before {
  content: "→";
  margin-right: 2px;
}

.chart-section {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: 0.3s ease;
  border: 1px solid rgba(108, 117, 125, 0.1);
  margin-bottom: 24px;
}
.chart-section:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}
.chart-section .chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(108, 117, 125, 0.1);
}
.chart-section .chart-header h3 {
  font-size: 1.25em;
  color: #343a40;
  margin: 0;
}
.chart-section .chart-header .chart-controls {
  display: flex;
  gap: 8px;
}
.chart-section .chart-header .chart-controls .time-filter {
  padding: 4px 8px;
  border: 1px solid rgba(108, 117, 125, 0.3);
  border-radius: 6px;
  background: #ffffff;
  color: #6c757d;
  font-size: 0.75em;
  cursor: pointer;
  transition: 0.3s ease;
}
.chart-section .chart-header .chart-controls .time-filter:hover, .chart-section .chart-header .chart-controls .time-filter.active {
  border-color: #e74c3c;
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.05);
}
.chart-section .chart-container {
  height: 300px;
  background: rgba(248, 249, 250, 0.3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-style: italic;
}

.recent-activity {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: 0.3s ease;
  border: 1px solid rgba(108, 117, 125, 0.1);
}
.recent-activity:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}
.recent-activity .activity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.recent-activity .activity-header h3 {
  font-size: 1.25em;
  color: #343a40;
  margin: 0;
}
.recent-activity .activity-header .view-all {
  color: #e74c3c;
  font-size: 0.875em;
  font-weight: 500;
}
.recent-activity .activity-header .view-all:hover {
  text-decoration: underline;
}
.recent-activity .activity-list .activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(108, 117, 125, 0.1);
}
.recent-activity .activity-list .activity-item:last-child {
  border-bottom: none;
}
.recent-activity .activity-list .activity-item .activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875em;
}
.recent-activity .activity-list .activity-item .activity-icon.device-online {
  background: rgba(39, 174, 96, 0.1);
  color: #27ae60;
}
.recent-activity .activity-list .activity-item .activity-icon.device-offline {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
}
.recent-activity .activity-list .activity-item .activity-icon.alert {
  background: rgba(243, 156, 18, 0.1);
  color: #f39c12;
}
.recent-activity .activity-list .activity-item .activity-content {
  flex: 1;
}
.recent-activity .activity-list .activity-item .activity-content .activity-message {
  font-size: 0.875em;
  color: #343a40;
  margin-bottom: 2px;
}
.recent-activity .activity-list .activity-item .activity-content .activity-time {
  font-size: 0.75em;
  color: #6c757d;
}

.nav-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.stat-icon-img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.empty-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.btn-icon {
  width: 16px;
  height: 16px;
  margin-right: 4px;
  filter: brightness(0) invert(1);
}

.error-icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  filter: brightness(0) invert(1);
}

@media (max-width: 992px) {
  .dashboard-header {
    padding: 0 16px;
  }
  .dashboard-header .header-left {
    gap: 16px;
  }
  .dashboard-header .header-left .main-nav {
    gap: 12px;
  }
  .dashboard-main {
    padding: 20px 16px;
  }
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .dashboard-header .header-content {
    flex-direction: column;
    height: auto;
    padding: 12px 0;
    gap: 12px;
  }
  .dashboard-header .header-left,
  .dashboard-header .header-right {
    width: 100%;
    justify-content: center;
  }
  .dashboard-header .main-nav {
    order: 1;
  }
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .chart-section .chart-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
@media (max-width: 576px) {
  .dashboard-main {
    padding: 16px 12px;
  }
  .dashboard-header {
    padding: 0 12px;
  }
  .dashboard-header .user-menu {
    gap: 8px;
  }
  .dashboard-header .user-menu .user-info {
    display: none;
  }
  .page-actions {
    flex-direction: column;
    width: 100%;
  }
  .page-actions .btn {
    justify-content: center;
  }
}
@media (prefers-color-scheme: dark) {
  .dashboard-wrapper.dark-mode {
    background: #343a40;
  }
  .dashboard-wrapper.dark-mode .dashboard-header {
    background: rgb(63.4310344828, 70.75, 78.0689655172);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .dashboard-wrapper.dark-mode .stats-grid .stat-card,
  .dashboard-wrapper.dark-mode .chart-section,
  .dashboard-wrapper.dark-mode .recent-activity {
    background: rgb(58.8586206897, 65.65, 72.4413793103);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
  }
  .dashboard-wrapper.dark-mode h1, .dashboard-wrapper.dark-mode h2, .dashboard-wrapper.dark-mode h3, .dashboard-wrapper.dark-mode .page-title h2 {
    color: #ffffff;
  }
  .dashboard-wrapper.dark-mode .activity-message {
    color: rgba(255, 255, 255, 0.9);
  }
  .dashboard-wrapper.dark-mode .activity-time {
    color: rgba(255, 255, 255, 0.6);
  }
}
.connection-status {
  margin-top: 8px;
}

.status-indicator {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: all 0.3s ease;
}
.status-indicator.online {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
  border: 1px solid #2ecc71;
}
.status-indicator.offline {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
  border: 1px solid #e74c3c;
}
.status-indicator.connecting, .status-indicator.reconnecting {
  background: rgba(52, 152, 219, 0.2);
  color: #3498db;
  border: 1px solid #3498db;
  animation: pulse 2s infinite;
}
.status-indicator.error {
  background: rgba(241, 196, 15, 0.2);
  color: #f1c40f;
  border: 1px solid #f1c40f;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}
.info {
  text-align: center;
  padding: 15px;
  background-color: #1b2631;
  border-radius: 5px;
  font-size: 14px;
  margin-top: 20px;
}

.tabulator {
  font-size: 0.875em;
  border: none;
  background-color: #1b2631;
}
.tabulator .tabulator-header {
  background-color: #34495e;
  color: #ffffff;
  font-weight: 600;
}
.tabulator .tabulator-col {
  background-color: #34495e !important;
  color: #ffffff;
  border-right: 1px solid #1b2631;
}
.tabulator .tabulator-row {
  background-color: #1b2631;
  color: #ffffff;
  transition: background-color 0.15s ease;
}
.tabulator .tabulator-row.tabulator-selected {
  background-color: #3498db !important;
  color: #ffffff;
}
.tabulator .tabulator-row:hover {
  background-color: rgba(231, 76, 60, 0.05) !important;
  color: #1b2631;
}
.tabulator .tabulator-cell {
  background-color: #1b2631 !important;
  color: #ffffff;
  border-color: #34495e !important;
  padding: 12px;
}
.tabulator .tabulator-page {
  background-color: #f8f9fa;
  border: 1px solid #6c757d;
  color: #1b2631;
}
.tabulator .tabulator-page.active {
  background-color: #3498db;
  color: #ffffff;
  border-color: #85c1e9;
}

.device-btn-min {
  background: none;
  color: #e74c3c;
  border: 1.5px solid #e74c3c;
  padding: 0.55em 1.5em;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1em;
  min-width: 120px;
  text-align: center;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  letter-spacing: 0.2px;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.device-btn-min:hover, .device-btn-min:focus {
  background: #e74c3c;
  color: #fff;
  border-color: #c0392b;
}

.box-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  padding: 0;
  list-style: none;
  margin-bottom: 30px;
}
.box-info li {
  background: #34495e;
  padding: 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.box-info li:hover {
  transform: translateY(-5px);
  background: #5d6d7e;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.box-info li i {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  font-size: 1.5em;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: #f39c9c;
}
.box-info li .text h3 {
  font-size: 1.5em;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}
.box-info li .text p {
  font-size: 0.875em;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.recent-activities {
  background: #34495e;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.recent-activities h3 {
  font-size: 1.25em;
  margin-bottom: 24px;
  color: #ffffff;
  border-left: 4px solid #e74c3c;
  padding-left: 12px;
}
.recent-activities table {
  width: 100%;
  border-collapse: collapse;
}
.recent-activities table thead tr {
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}
.recent-activities table th {
  text-align: left;
  padding: 12px;
  color: #6c757d;
  font-size: 0.875em;
  text-transform: uppercase;
}
.recent-activities table td {
  padding: 12px;
  color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1em;
}
.recent-activities table tbody tr:hover {
  background: rgba(255, 255, 255, 0.1);
}
.recent-activities table [class^=badge-] {
  padding: 4px 16px;
  border-radius: 2px;
  font-size: 0.75em;
  font-weight: 700;
}
.recent-activities table .badge-measurement {
  background: rgba(52, 152, 219, 0.2);
  color: #85c1e9;
  border: 1px solid #3498db;
}
.recent-activities table .badge-image {
  background: rgba(243, 156, 18, 0.2);
  color: #f7dc6f;
  border: 1px solid #f39c12;
}
.recent-activities table .badge-video {
  background: rgba(39, 174, 96, 0.2);
  color: #58d68d;
  border: 1px solid #27ae60;
}

.device-details-simple-flex {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2.5rem;
  margin: 2rem 0;
}

.device-details-table-wrap {
  flex: 1 1 400px;
  max-width: 500px;
}

.device-details-title {
  font-size: 2em;
  color: #e74c3c;
  margin-bottom: 1.5rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.device-details-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  margin-bottom: 2rem;
}

.device-details-table th,
.device-details-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #34495e;
  text-align: left;
  font-size: 1em;
}

.device-details-table th {
  background: #1b2631;
  color: #e74c3c;
  font-weight: 500;
  width: 180px;
}

.device-details-table td {
  background: rgba(44, 62, 80, 0.7);
  color: #fff;
}

.status-indicator {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.95em;
  font-weight: 500;
  text-transform: uppercase;
  display: inline-block;
}

.status-indicator.active {
  background: rgba(39, 174, 96, 0.2);
  color: #2ecc71;
}

.status-indicator.inactive {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
}

.status-indicator.maintenance {
  background: rgba(241, 196, 15, 0.2);
  color: #f1c40f;
}

.device-details-actions-right {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: flex-end;
  margin-top: 2.5rem;
}

.device-details-actions-top {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  margin-top: 1.5rem;
}

.device-btn-pro {
  background: linear-gradient(90deg, #e74c3c 0%, #1abc9c 100%);
  color: #fff;
  padding: 0.9em 2.2em;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15em;
  box-shadow: 0 2px 12px rgba(34, 46, 60, 0.09);
  border: none;
  transition: background 0.2s, box-shadow 0.2s;
  letter-spacing: 0.5px;
  text-align: center;
}

.device-btn-pro:hover {
  background: linear-gradient(90deg, #1abc9c 0%, #e74c3c 100%);
  box-shadow: 0 4px 18px rgba(34, 46, 60, 0.13);
}

.device-btn-min {
  background: none;
  color: #e74c3c;
  border: 1.5px solid #e74c3c;
  padding: 0.55em 2em;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1em;
  min-width: 120px;
  text-align: center;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  letter-spacing: 0.2px;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.device-btn-min:hover, .device-btn-min:focus {
  background: #e74c3c;
  color: #fff;
  border-color: #c0392b;
}

.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  flex: 0 0 240px;
  height: 100vh;
  position: sticky;
  top: 0;
}

.main-content {
  flex: 1;
  height: 100vh;
  overflow-y: auto;
  padding: 0 2rem;
  background: #222a36;
}

@media (max-width: 900px) {
  .device-details-simple-flex {
    flex-direction: column;
    gap: 1.5rem;
  }
  .device-details-actions-right {
    align-items: stretch;
    margin-top: 0;
  }
}
#measurement-selector label {
  margin-bottom: 8px;
  margin-right: 8px;
  font-weight: 600;
  font-size: 18px;
  color: #f8f9fa;
}
#measurement-selector select {
  width: 100%;
  max-width: 300px;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #343a40;
  border-radius: 6px;
  background-color: #ffffff;
  color: #333;
  appearance: none;
  background-image: url("../images/icons/chevron-down.svg ");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
#measurement-selector select:focus {
  border-color: #1b2631;
  outline: none;
}

.camera-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 16px;
  padding: 16px;
}

.camera-tile {
  width: 100px;
  height: 100px;
  background-color: #f4f4f4;
  border: 1px solid #ccc;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.camera-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
}

.camera-label {
  font-size: 14px;
  font-weight: bold;
  color: #333;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  padding: 20px;
}

.gallery-item {
  cursor: pointer;
  transition: transform 0.2s;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  padding: 20px;
}

.video-square {
  aspect-ratio: 1;
  background: #2d3436;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.video-square:hover {
  background: #0984e3;
  transform: scale(1.05);
}

.video-icon {
  font-size: 40px;
  color: white;
}

.video-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px;
  font-size: 12px;
  text-align: center;
}

.filename {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stream-container {
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
}

.stream-header {
  color: #fff;
  margin-bottom: 20px;
}

.stream-header h2 {
  margin: 0;
  font-size: 1.5em;
}

.stream-info {
  color: #ccc;
  font-size: 0.9em;
  margin-top: 10px;
}

#video {
  max-width: 100%;
  border-radius: 4px;
}

.device-camera-details-simple-flex {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2.5rem;
  margin: 2rem 0;
}

.device-camera-details-table-wrap {
  flex: 1 1 400px;
  max-width: 500px;
}

.device-camera-details-title {
  font-size: 2em;
  color: #e74c3c;
  margin-bottom: 1.5rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.device-camera-details-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  margin-bottom: 2rem;
}

.device-camera-details-table th,
.device-camera-details-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #34495e;
  text-align: left;
  font-size: 1em;
}

.device-camera-details-table th {
  background: #1b2631;
  color: #e74c3c;
  font-weight: 500;
  width: 180px;
}

.device-camera-details-table td {
  background: rgba(44, 62, 80, 0.7);
  color: #fff;
}

.status-indicator {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.95em;
  font-weight: 500;
  text-transform: uppercase;
  display: inline-block;
}

.status-indicator.active {
  background: rgba(39, 174, 96, 0.2);
  color: #2ecc71;
}

.status-indicator.inactive {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
}

.status-indicator.maintenance {
  background: rgba(241, 196, 15, 0.2);
  color: #f1c40f;
}

.device-camera-details-actions-right {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: flex-end;
  margin-top: 2.5rem;
}

.device-camera-details-actions-top {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  margin-top: 1.5rem;
}

.device-camera-btn-pro {
  background: linear-gradient(90deg, #e74c3c 0%, #1abc9c 100%);
  color: #fff;
  padding: 0.9em 2.2em;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15em;
  box-shadow: 0 2px 12px rgba(34, 46, 60, 0.09);
  border: none;
  transition: background 0.2s, box-shadow 0.2s;
  letter-spacing: 0.5px;
  text-align: center;
}

.device-camera-details-actions-top {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  margin-top: 1.5rem;
}

.device-camera-btn-min:hover {
  background: linear-gradient(90deg, #1abc9c 0%, #e74c3c 100%);
  box-shadow: 0 4px 18px rgba(34, 46, 60, 0.13);
}

.device-camera-btn-min {
  background: none;
  color: #e74c3c;
  border: 1.5px solid #e74c3c;
  padding: 0.55em 2em;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1em;
  min-width: 120px;
  text-align: center;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  letter-spacing: 0.2px;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.device-camera-btn-min:hover, .device-camera-btn-min:focus {
  background: #e74c3c;
  color: #fff;
  border-color: #c0392b;
}

@media (max-width: 900px) {
  .device-camera-details-simple-flex {
    flex-direction: column;
    gap: 1.5rem;
  }
  .device-camera-details-actions-right {
    align-items: stretch;
    margin-top: 0;
  }
}
.command-log {
  background: #1b2631;
  color: #f8f9fa;
  padding: 16px;
  height: 400px;
  overflow-y: auto;
  border-radius: 8px;
  font-family: "Courier New", "Monaco", monospace;
  border: 1px solid #343a40;
  margin-top: 20px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.status {
  padding: 4px 16px;
  border-radius: 2px;
  display: inline-block;
  font-weight: 700;
  font-size: 0.875em;
}
.status.connected {
  background: rgba(39, 174, 96, 0.15);
  color: #27ae60;
}
.status.disconnected {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
}

.command-controls {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(108, 117, 125, 0.2);
}

#commandInput {
  flex-grow: 1;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-family: "Courier New", "Monaco", monospace;
  transition: 0.15s ease;
}
#commandInput:focus {
  outline: none;
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

#sendBtn {
  background: #e74c3c;
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: 0.15s ease;
}
#sendBtn:hover {
  background: #c0392b;
}
#sendBtn:active {
  transform: translateY(1px);
}

.settings-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.settings-card {
  background: #34495e;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.settings-card .head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.settings-card .head i {
  font-size: 1.5em;
  color: #f39c9c;
}
.settings-card .head h3 {
  font-size: 1.25em;
  margin: 0;
  color: #ffffff;
}

.settings-form .form-group {
  margin-bottom: 16px;
}
.settings-form .form-group label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.875em;
  color: rgba(255, 255, 255, 0.7);
}
.settings-form .form-group input {
  width: 100%;
  padding: 12px 15px;
  background: #1b2631;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #ffffff;
  transition: 0.15s ease;
}
.settings-form .form-group input:focus {
  border-color: #e74c3c;
  outline: none;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}
.settings-form .btn-primary {
  background: #e74c3c;
  color: #ffffff;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s ease;
  width: 100%;
}
.settings-form .btn-primary:hover {
  background: #c0392b;
  transform: translateY(-2px);
}

.info-group p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
}
.info-group .badge {
  background: rgba(52, 152, 219, 0.2);
  color: #85c1e9;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75em;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.5;
}

body {
  font-family: "Arial", "Helvetica", "Noto Sans", sans-serif;
  color: #343a40;
  background-color: #f8f9fa;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #e74c3c;
  text-decoration: none;
  transition: 0.3s ease;
}
a:hover {
  color: #c0392b;
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 12px;
}

h1 {
  font-size: 2.5em;
}

h2 {
  font-size: 2em;
}

h3 {
  font-size: 1.5em;
}

h4 {
  font-size: 1.25em;
}

h5 {
  font-size: 1.125em;
}

h6 {
  font-size: 1em;
}

p {
  margin-bottom: 16px;
}
p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin-left: 20px;
  margin-bottom: 16px;
}

li {
  margin-bottom: 4px;
}

img {
  max-width: 100%;
  height: auto;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-primary {
  color: #e74c3c;
}

.text-secondary {
  color: #2c3e50;
}

.text-success {
  color: #27ae60;
}

.text-error {
  color: #e74c3c;
}

.text-warning {
  color: #f39c12;
}

.text-info {
  color: #3498db;
}

.text-muted {
  color: #6c757d;
}

.font-light {
  font-weight: 300;
}

.font-normal {
  font-weight: 400;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.mt-0 {
  margin-top: 0;
}

.mt-sm {
  margin-top: 8px;
}

.mt-md {
  margin-top: 12px;
}

.mt-lg {
  margin-top: 16px;
}

.mt-xl {
  margin-top: 20px;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-sm {
  margin-bottom: 8px;
}

.mb-md {
  margin-bottom: 12px;
}

.mb-lg {
  margin-bottom: 16px;
}

.mb-xl {
  margin-bottom: 20px;
}

.p-0 {
  padding: 0;
}

.p-sm {
  padding: 8px;
}

.p-md {
  padding: 12px;
}

.p-lg {
  padding: 16px;
}

.p-xl {
  padding: 20px;
}

.d-none {
  display: none;
}

.d-block {
  display: block;
}

.d-inline {
  display: inline;
}

.d-inline-block {
  display: inline-block;
}

.d-flex {
  display: flex;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-start {
  justify-content: flex-start;
}

.justify-end {
  justify-content: flex-end;
}

.align-center {
  align-items: center;
}

.align-start {
  align-items: flex-start;
}

.align-end {
  align-items: flex-end;
}

@media (max-width: 576px) {
  .container {
    padding: 0 12px;
  }
  h1 {
    font-size: 2em;
  }
  h2 {
    font-size: 1.5em;
  }
  h3 {
    font-size: 1.25em;
  }
  .d-sm-none {
    display: none;
  }
}
@media (min-width: 576px) {
  .container {
    max-width: 540px;
    margin: 0 auto;
  }
  .d-sm-block {
    display: block;
  }
  .d-sm-flex {
    display: flex;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  .d-md-block {
    display: block;
  }
  .d-md-flex {
    display: flex;
  }
  .d-md-none {
    display: none;
  }
}
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
  .d-lg-block {
    display: block;
  }
  .d-lg-flex {
    display: flex;
  }
  .d-lg-none {
    display: none;
  }
}
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  .d-xl-block {
    display: block;
  }
  .d-xl-flex {
    display: flex;
  }
  .d-xl-none {
    display: none;
  }
}
@media print {
  * {
    color: #000000 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  a {
    text-decoration: underline;
  }
  .no-print {
    display: none !important;
  }
  .page-break {
    page-break-before: always;
  }
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: #6c757d;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgb(84.3605150215, 91.3905579399, 97.6394849785);
}

html {
  scrollbar-width: thin;
  scrollbar-color: #6c757d #f8f9fa;
}

.loading::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #f8f9fa;
  border-radius: 50%;
  border-top-color: #e74c3c;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
