/* Devices Page Styles */
.devices-page {
  padding: 10px;
  background: #fafafa;
  min-height: 100vh;
}

/* Page Header */
.devices-page .page-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.devices-page .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.devices-page .header-title h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.devices-page .header-title h1 i {
  color: #667eea;
  font-size: 1.4rem;
}

.devices-page .subtitle {
  color: #718096;
  margin: 0;
  font-size: 0.85rem;
}

.devices-page .header-actions {
  display: flex;
  gap: 8px;
}

/* Statistics Cards - Devices */
.devices-stats {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.devices-stats .stats-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 140px;
}

.devices-stats .stats-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.devices-stats .stats-card.online .stats-icon {
  background: linear-gradient(135deg, #48bb78, #38a169);
}

.devices-stats .stats-card.offline .stats-icon {
  background: linear-gradient(135deg, #f56565, #e53e3e);
}

.devices-stats .stats-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.devices-stats .stats-content {
  flex: 1;
  min-width: 0;
}

.devices-stats .stats-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2d3748;
  line-height: 1;
  margin-bottom: 2px;
}

.devices-stats .stats-label {
  color: #718096;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Controls Section */
.devices-controls {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.devices-controls .filter-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.devices-controls .filter-group,
.devices-controls .search-group,
.devices-controls .sort-group {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.devices-controls .filter-label {
  font-weight: 600;
  color: #4a5568;
  font-size: 0.9rem;
  white-space: nowrap;
}

.devices-controls .filter-buttons {
  display: flex;
  gap: 8px;
}

.devices-controls .filter-btn {
  padding: 8px 16px;
  border: 2px solid transparent;
  background: #f7fafc;
  color: #4a5568;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.devices-controls .filter-btn:hover {
  background: #edf2f7;
  transform: translateY(-1px);
}

.devices-controls .filter-btn.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.devices-controls .search-input {
  position: relative;
  width: 300px;
}

.devices-controls .search-input i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #a0aec0;
}

.devices-controls .search-input input {
  width: 100%;
  padding: 10px 12px 10px 40px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.875rem;
  background: #f7fafc;
  transition: all 0.2s ease;
}

.devices-controls .search-input input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.devices-controls .form-select {
  padding: 8px 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: #f7fafc;
  color: #4a5568;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.devices-controls .form-select:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Devices Content */
.devices-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.devices-table-container {
  position: relative;
}

.table-wrapper {
  overflow-x: auto;
  max-height: 70vh;
  position: relative;
}

/* Devices Table */
.devices-table {
  border-collapse: collapse;
  background: white;
  table-layout: fixed;
}

/* Column width constraints for better layout */
.devices-table thead th:nth-child(1) { width: 18%; } /* Name */
.devices-table thead th:nth-child(2) { width: 12%; } /* IP */
.devices-table thead th:nth-child(3) { width: 15%; } /* Location */
.devices-table thead th:nth-child(4) { width: 10%; } /* Type */
.devices-table thead th:nth-child(5) { width: 10%; } /* Parent */
.devices-table thead th:nth-child(6) { width: 12%; } /* MAC */
.devices-table thead th:nth-child(7) { width: 10%; } /* Last Seen */
.devices-table thead th:nth-child(8) { width: 10%; } /* Status */
.devices-table thead th:nth-child(9) { width: 8%; } /* Actions */

/* Layout for read-only users (no action column) */
.devices-table.read-only thead th:nth-child(1) { width: 20%; }
.devices-table.read-only thead th:nth-child(2) { width: 13%; }
.devices-table.read-only thead th:nth-child(3) { width: 16%; }
.devices-table.read-only thead th:nth-child(4) { width: 11%; }
.devices-table.read-only thead th:nth-child(5) { width: 11%; }
.devices-table.read-only thead th:nth-child(6) { width: 13%; }
.devices-table.read-only thead th:nth-child(7) { width: 11%; }
.devices-table.read-only thead th:nth-child(8) { width: 11%; }

/* Hide action column for read-only users */
.devices-table.read-only thead th:nth-child(9),
.devices-table.read-only tbody td:nth-child(9) {
  display: none !important;
}

/* Add visual indicator for read-only mode */
.devices-table.read-only::before {
  content: "🔒 Mode Read-Only - Akses Terbatas";
  display: block;
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: white;
  padding: 8px 15px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  border-radius: 4px 4px 0 0;
  margin-bottom: -1px;
}

/* Read-only notices in page header */
.read-only-notice {
  background: rgba(243, 156, 18, 0.1);
  border: 1px solid #f39c12;
  color: #d68910;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.read-only-info {
  background: rgba(52, 152, 219, 0.1);
  border: 1px solid #3498db;
  color: #2980b9;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.devices-table tbody td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.devices-table thead {
  background: linear-gradient(135deg, #667eea, #764ba2);
  position: sticky;
  top: 0;
  z-index: 10;
}

.devices-table thead th {
  padding: 10px 8px;
  text-align: left;
  color: white;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.devices-table thead th.sortable {
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.devices-table thead th.sortable:hover {
  background: rgba(255, 255, 255, 0.1);
}

.devices-table thead th .sort-icon {
  margin-left: 8px;
  opacity: 0.6;
  transition: all 0.2s ease;
}

.devices-table thead th.sort-asc .sort-icon,
.devices-table thead th.sort-desc .sort-icon {
  opacity: 1;
  color: #ffd700;
}

.devices-table tbody tr {
  border-bottom: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.devices-table tbody tr:hover {
  background: #f8fafc;
  transform: scale(1.01);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.devices-table tbody td {
  padding: 8px 6px;
  vertical-align: middle;
  font-size: 0.75rem;
  color: #4a5568;
  border-bottom: 1px solid #e2e8f0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Device Info Styles */
.device-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-width: 100%;
}

.device-title {
  font-weight: 600;
  color: #2d3748;
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-subtitle {
  font-size: 0.7rem;
  color: #718096;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.type-badge {
  display: inline-block;
  padding: 2px 6px;
  background: #edf2f7;
  color: #4a5568;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 500;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status-badge.status-online {
  background: rgba(72, 187, 120, 0.1);
  color: #38a169;
  border: 1px solid rgba(72, 187, 120, 0.2);
}

.status-badge.status-offline {
  background: rgba(245, 101, 101, 0.1);
  color: #e53e3e;
  border: 1px solid rgba(245, 101, 101, 0.2);
}

.devices-table tbody td.device-actions {
  padding: 8px 4px;
  text-align: center;
  white-space: nowrap;
  overflow: visible;
}

.devices-table tbody td.device-status {
  text-align: center;
  white-space: nowrap;
  overflow: visible;
  padding: 8px 6px;
}

.action-buttons {
  display: flex;
  gap: 4px;
  white-space: nowrap;
  min-width: 110px;
  justify-content: center;
}

.btn-action {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.btn-action:hover {
  transform: translateY(-1px);
}

.btn-edit {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
}

.btn-edit:hover {
  background: #667eea;
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-view {
  background: rgba(56, 178, 172, 0.1);
  color: #38b2ac;
}

.btn-view:hover {
  background: #38b2ac;
  color: white;
  box-shadow: 0 4px 12px rgba(56, 178, 172, 0.3);
}

.btn-delete {
  background: rgba(245, 101, 101, 0.1);
  color: #f56565;
}

.btn-delete:hover {
  background: #f56565;
  color: white;
  box-shadow: 0 4px 12px rgba(245, 101, 101, 0.3);
}

/* Empty and Loading States */
.empty-state,
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  background: white;
}

.empty-state .empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  margin-bottom: 24px;
}

.empty-state h3 {
  font-size: 1.5rem;
  color: #2d3748;
  margin: 0 0 12px 0;
  font-weight: 600;
}

.empty-state p {
  color: #718096;
  margin: 0 0 24px 0;
  font-size: 1rem;
}

.loading-state .spinner {
  font-size: 2rem;
  color: #667eea;
  margin-bottom: 16px;
}

.loading-state p {
  color: #718096;
  margin: 0;
}

/* Legacy device styles (keeping for compatibility) */
.device-filter-form {
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
/* Responsive Design for Devices */
@media (max-width: 1024px) {
  .devices-page {
    padding: 5px;
  }
  
  .devices-stats {
    gap: 12px;
  }
  
  .devices-stats .stats-card {
    min-width: 130px;
    padding: 14px 16px;
  }
  
  .devices-controls .filter-section {
    gap: 20px;
  }
  
  .devices-controls .search-input {
    width: 250px;
  }
}

@media (max-width: 768px) {
  .devices-page .header-title h1 {
    font-size: 1.4rem;
    margin-bottom: 4px;
  }
  
  .devices-page .subtitle {
    font-size: 0.85rem;
  }
  
  .devices-page .header-actions .btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  
  .devices-stats {
    gap: 8px;
    margin-bottom: 16px;
  }
  
  .devices-stats .stats-card {
    min-width: 110px;
    padding: 10px 12px;
  }
  
  .devices-stats .stats-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .devices-stats .stats-number {
    font-size: 1.5rem;
  }
  
  .devices-stats .stats-label {
    font-size: 0.7rem;
  }
  
  .devices-controls {
    padding: 15px;
  }
  
  .devices-controls .filter-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .devices-controls .search-input {
    width: 100%;
  }
  
  .table-wrapper {
    max-height: 60vh;
  }
  
  .devices-table thead th,
  .devices-table tbody td {
    padding: 12px 8px;
    font-size: 0.8rem;
  }
  
  .device-title {
    font-size: 0.85rem;
  }
  
  .device-subtitle {
    font-size: 0.7rem;
  }
}

@media (max-width: 600px) {
  .devices-page {
    padding: 8px 4px;
  }
  
  .device-table th, .device-table td {
    padding: 6px 4px;
    font-size: 0.75rem;
  }
  
  .device-filter-form {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px 12px;
  }
  
  .devices-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -4px;
    padding: 0 4px;
  }
  
  .devices-table {
    min-width: 700px;
  }
  
  .device-title {
    font-size: 0.75rem;
  }
  
  .device-subtitle {
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  .devices-page {
    padding: 2px;
  }
  
  .devices-page .page-header {
    padding: 5px 10px;
    margin-bottom: 8px;
  }
  
  .devices-page .header-title h1 {
    font-size: 1.2rem;
    margin-bottom: 4px;
  }
  
  .devices-page .subtitle {
    font-size: 0.8rem;
    margin-bottom: 0;
  }
  
  .devices-page .header-actions .btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  
  .devices-stats {
    gap: 5px;
    margin-bottom: 8px;
  }
  
  .devices-stats .stats-card {
    min-width: 90px;
    padding: 8px 10px;
    gap: 6px;
  }
  
  .devices-stats .stats-icon {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
  
  .devices-stats .stats-number {
    font-size: 1.1rem;
  }
  
  .devices-stats .stats-label {
    font-size: 0.6rem;
  }
  
  .devices-controls {
    padding: 5px 10px;
    margin-bottom: 8px;
  }
  
  .filter-section {
    flex-direction: column;
    gap: 12px;
  }
  
  .filter-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .filter-buttons {
    gap: 6px;
    flex-wrap: wrap;
  }
  
  .filter-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
  
  .search-group {
    width: 100%;
  }
  
  .search-input {
    width: 100%;
  }
  
  .search-input input {
    font-size: 0.8rem;
    padding: 8px 12px 8px 32px;
  }
  
  .sort-group select {
    font-size: 0.8rem;
    padding: 6px 8px;
  }
  
  .action-buttons {
    gap: 2px;
    min-width: 80px;
    justify-content: center;
  }
  
  .btn-action {
    width: 22px;
    height: 22px;
    font-size: 0.65rem;
  }
  
  .devices-table tbody td {
    padding: 4px 3px;
    font-size: 0.65rem;
    line-height: 1.3;
  }
  
  .devices-table thead th {
    padding: 6px 3px;
    font-size: 0.65rem;
    line-height: 1.2;
  }
  
  .device-title {
    font-size: 0.7rem;
  }
  
  .device-subtitle {
    font-size: 0.6rem;
  }
  
  .status-badge {
    padding: 2px 6px;
    font-size: 0.6rem;
    gap: 3px;
  }
  
  .type-badge {
    padding: 2px 4px;
    font-size: 0.6rem;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .devices-table-container {
    padding: 4px;
    margin: 0 -4px;
  }
  
  .devices-table {
    font-size: 0.65rem;
    border-radius: 6px;
  }
  
  .devices-table thead th:nth-child(5),
  .devices-table tbody td:nth-child(5),
  .devices-table thead th:nth-child(6),
  .devices-table tbody td:nth-child(6) {
    display: none; /* Hide Parent and MAC columns on very small screens */
  }
  
  .devices-table thead th:nth-child(1) { width: 25%; }
  .devices-table thead th:nth-child(2) { width: 15%; }
  .devices-table thead th:nth-child(3) { width: 18%; }
  .devices-table thead th:nth-child(4) { width: 12%; }
  .devices-table thead th:nth-child(7) { width: 12%; }
  .devices-table thead th:nth-child(8) { width: 12%; }
  .devices-table thead th:nth-child(9) { width: 6%; }
  
  /* Read-only layout for mobile */
  .devices-table.read-only thead th:nth-child(1) { width: 28%; }
  .devices-table.read-only thead th:nth-child(2) { width: 16%; }
  .devices-table.read-only thead th:nth-child(3) { width: 20%; }
  .devices-table.read-only thead th:nth-child(4) { width: 13%; }
  .devices-table.read-only thead th:nth-child(7) { width: 13%; }
  .devices-table.read-only thead th:nth-child(8) { width: 10%; }
  
  /* Hide action column for read-only users on mobile */
  .devices-table.read-only thead th:nth-child(9),
  .devices-table.read-only tbody td:nth-child(9) {
    display: none !important;
  }
  
  /* Adjust read-only indicator for mobile */
  .devices-table.read-only::before {
    font-size: 11px;
    padding: 6px 10px;
  }
  
  .devices-table tbody tr {
    border-bottom: 2px solid #f1f5f9;
  }
  
  .devices-table tbody tr:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  /* Mobile card-style layout for device rows */
  .devices-table tbody td.device-name {
    position: relative;
  }
  
  .devices-table tbody td.device-status {
    text-align: center;
    padding: 4px 2px;
    overflow: visible;
  }
  
  .devices-table tbody td.device-actions {
    padding: 2px 1px;
    vertical-align: middle;
    text-align: center;
    overflow: visible;
  }
  
  .status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
  }
  
  .action-buttons {
    gap: 1px;
    min-width: 65px;
    justify-content: center;
  }
  
  .action-buttons {
    gap: 1px;
    min-width: 75px;
  }
  
  .btn-action {
    width: 22px;
    height: 22px;
    font-size: 0.65rem;
  }
  
  /* Empty state mobile styling */
  .empty-state {
    padding: 20px 16px;
    text-align: center;
  }
  
  .empty-state .empty-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
  }
  
  .empty-state h3 {
    font-size: 1rem;
    margin-bottom: 8px;
  }
  
  .empty-state p {
    font-size: 0.8rem;
    margin-bottom: 16px;
  }
  
  .empty-state .btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
  
  /* Loading state mobile styling */
  .loading-state {
    padding: 20px 16px;
    text-align: center;
  }
  
  .loading-state .spinner {
    font-size: 2rem;
    margin-bottom: 12px;
  }
  
  .loading-state p {
    font-size: 0.8rem;
  }
}
/* removed monospace for lat/lng as these columns were hidden */
/* Footer Responsive Styles */
.app-footer {
  width: 100%;
  background: #f8f9fa;
  color: #333;
  font-size: 0.98rem;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
  margin-top: 32px;
}
.footer-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 8px 12px;
}
.footer-mobile-list { display: block; }
.footer-mobile-card {
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  max-width: 900px;
}
.footer-right .hotspot-badge {
  background: #e3f2fd;
  color: #1976d2;
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 0.95rem;
}
.footer-right .status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #4caf50;
  border-radius: 50%;
  margin: 0 8px;
}
.footer-right .version {
  color: #888;
  font-size: 0.95rem;
}
.footer-row { margin: 6px 0; }
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
}
.footer-row:last-child {
  border-bottom: none;
}
.footer-row.center {
  justify-content: center;
  color: #888;
  font-size: 0.95rem;
  padding-top: 8px;
}
.footer-row .label {
  color: #555;
  font-weight: 500;
}
.footer-row .value {
  color: #1976d2;
  font-weight: 600;
}
.footer-row .muted {
  color: #aaa;
}
/* Always use mobile-style footer across sizes (user requested same look) */
/* Modal Custom Styles */
.custom-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.custom-modal-content {
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  padding: 0;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  animation: modalFadeIn 0.3s ease-out;
}

.modern-form label i {
  color: #667eea;
  width: 14px;
  text-align: center;
}

.modern-form input,
.modern-form select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.9rem;
  box-sizing: border-box;
  transition: all 0.2s ease;
  background: white;
}

.modern-form input:focus,
.modern-form select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.modern-form input[type="color"] {
  height: 42px;
  border: 2px solid #e5e7eb;
  cursor: pointer;
}

.readonly-field {
  background: #f9fafb !important;
  color: #6b7280;
  cursor: not-allowed;
}

.field-hint {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 4px;
  display: block;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.form-actions .btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  min-width: 120px;
  justify-content: center;
}

.form-actions .btn-cancel {
  background: #f3f4f6;
  color: #374151;
}

.form-actions .btn-cancel:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

.form-actions .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.form-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
/* Legacy styles - kept for backward compatibility but overridden by modern styles */
.btn {
  padding: 8px 18px;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-cancel {
  background: #eee;
  color: #333;
}
.btn-cancel:hover {
  background: #ddd;
}
.btn-primary {
  background: #007bff;
  color: #fff;
}
.btn-primary:hover {
  background: #0056b3;
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
/* assets/css/style.css */
/* Reset dasar */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

/* Layout wrapper */
.layout-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* Header navbar */
.navbar {
  height: 56px;
  background-color: #343a40;
  color: white;
  display: flex;
  align-items: center;
  padding: 0 15px;
  z-index: 1000;
  width: 100%;
  position: absolute;
  top: 0; left: 0; right: 0;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  margin-right: 15px;
}

.logo { font-size: 18px; font-weight: bold; }

/* Main container for content and sidebar - Dynamic height adjustment */
.main-container {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  display: flex;
}

/* Dynamic adjustment via JavaScript */
body.has-footer .main-container {
  bottom: 50px; /* Default footer height */
}

@media (max-width: 768px) {
  body.has-footer .main-container {
    bottom: 47px;
  }
}

@media (max-width: 480px) {
  body.has-footer .main-container {
    bottom: 44px;
  }
}

/* Sidebar */
.sidebar {
  position: absolute;
  top: 0;
  left: -250px;
  bottom: 0;
  width: 250px;
  background-color: #2c3e50;
  color: white;
  transition: left 0.3s ease;
  z-index: 900;
  overflow-y: auto;
}
.sidebar.open { left: 0; }

.sidebar-header {
  padding: 15px;
  font-size: 16px;
  background-color: #1a2530;
  text-align: center;
  border-bottom: 1px solid #465b70;
}

.sidebar-search { padding: 10px 15px; border-bottom: 1px solid #465b70; }
.search-input { position: relative; }
.search-input i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #7f8c8d;
}
.search-input input {
  width: 100%;
  padding: 8px 8px 8px 30px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
}
.search-input input::placeholder { color: #95a5a6; }

.sidebar-menu { 
  list-style: none; 
  padding: 0; 
  margin: 0; 
}
.sidebar-menu li { border-bottom: 1px solid #465b70; }
.sidebar-menu a {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  color: white;
  text-decoration: none;
  transition: background-color 0.2s;
}
.sidebar-menu a:hover, .sidebar-menu a.active { background-color: #34495e; }
.sidebar-menu i { margin-right: 10px; width: 20px; text-align: center; }

.submenu-toggle { margin-left: auto; transition: transform 0.3s; }
.has-submenu.open .submenu-toggle { transform: rotate(180deg); }
.submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: #1a2530;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.submenu.open { max-height: 300px; }
.submenu a { padding-left: 45px; }

.device-lists-container { padding: 15px; }
.device-category h3 { font-size: 14px; margin-bottom: 10px; color: #ecf0f1; }
.device-list { max-height: 260px; overflow-y: auto; margin-bottom: 20px; }

/* Make sidebar device lists scrollable on desktop too */
@media (min-width: 769px) {
  .device-lists-container { padding: 15px; }
  .device-list { max-height: 50vh; overflow-y: auto; }
}
.device-list a {
  display: block;
  padding: 8px 10px;
  color: white;
  text-decoration: none;
  background-color: #34495e;
  margin-bottom: 5px;
  border-radius: 3px;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.2s;
}
.device-list a:hover { background-color: #465b70; }

/* Device link status colors */
.device-link.online { border-left: 3px solid #27ae60; }
.device-link.offline { border-left: 3px solid #e74c3c; }
.device-link.unknown { border-left: 3px solid #f39c12; }

.device-link i {
  margin-right: 6px;
  font-size: 10px;
}

.no-device-sidebar {
    display: block;
    padding: 8px 10px;
    color: #95a5a6;
    font-style: italic;
    font-size: 13px;
}

/* Main content area - Full height with proper scrolling */
.main-content {
  position: absolute;
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0;
  transition: padding-left 0.3s ease;
  overflow: auto;
  /* Ensure content can scroll without interfering with footer */
}

/* Push content saat sidebar terbuka (desktop) */
body.sidebar-open .main-content { padding-left: 250px; }

/* Mobile behavior */
@media (max-width: 768px) {
  body.sidebar-open .main-content { padding-left: 0; }
  .sidebar { width: 80%; max-width: 250px; }

  /* Izinkan konten utama scroll pada mobile agar tidak muncul ruang kosong */
  .main-content {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Map */
#map { width: 100%; height: 100%; position: relative; z-index: 1; }

/* Footer (professional design) */
.app-footer {
  position: fixed;
  bottom: 0; 
  left: 0; 
  right: 0;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: #ecf0f1;
  z-index: 1000;
  border-top: 2px solid #3498db;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
  font-size: 13px;
  min-height: 50px;
}

.footer-content {
  display: flex;
  align-items: center;
  padding: 8px 15px;
  max-width: 100%;
  height: 100%;
}

/* Desktop Footer */
.footer-desktop {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #3498db;
}

.brand-text {
  font-size: 16px;
  font-weight: bold;
}

.version-text {
  background: #3498db;
  color: white;
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 500;
}

.footer-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #bdc3c7;
}

.router-info {
  display: flex;
  align-items: center;
  gap: 4px;
}

.footer-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.status-indicators {
  display: flex;
  gap: 20px;
  align-items: center;
}

.indicator-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 15px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.indicator-item:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-1px);
}

.indicator-label {
  font-size: 11px;
  font-weight: 500;
  color: #bdc3c7;
}

.indicator-value {
  font-weight: bold;
  color: #ecf0f1;
  min-width: 20px;
  text-align: center;
  background: rgba(0,0,0,0.2);
  padding: 1px 5px;
  border-radius: 8px;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-end;
}

.connection-status {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-end;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e74c3c;
  transition: all 0.3s ease;
  animation: pulse-status 2s infinite;
}

@keyframes pulse-status {
  0% { opacity: 1; box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1); }
  100% { opacity: 1; box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4); }
}

.status-dot[style*="background: #2ecc71"] {
  animation: pulse-success 2s infinite;
}

@keyframes pulse-success {
  0% { opacity: 1; box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.1); }
  100% { opacity: 1; box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4); }
}

.status-text {
  font-size: 10px;
  color: #bdc3c7;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #bdc3c7;
}

/* Mobile Footer */
.footer-mobile {
  display: none;
  flex-direction: column;
  padding: 6px 15px;
  width: 100%;
}

.footer-mobile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #3498db;
  font-size: 14px;
}

.mobile-connection {
  display: flex;
  align-items: center;
}

.footer-mobile-stats {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 5px;
}

.mobile-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.mobile-stat:hover {
  background: rgba(255,255,255,0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer-desktop {
    display: none;
  }
  
  .footer-mobile {
    display: flex;
  }
  
  .app-footer {
    min-height: 45px;
  }
}

@media (max-width: 480px) {
  .footer-mobile-stats {
    gap: 2px;
  }
  
  .mobile-stat {
    font-size: 11px;
    padding: 2px 4px;
  }
  
  .app-footer {
    font-size: 12px;
    min-height: 42px;
  }
  
  .mobile-brand {
    font-size: 13px;
  }
}

/* Status Colors */
.text-success {
  color: #27ae60 !important;
}

.text-danger {
  color: #e74c3c !important;
}

.text-warning {
  color: #f39c12 !important;
}

/* Footer dynamic height adjustment handled by main-container */
body {
  margin: 0;
  padding: 0;
}

/* No need for body padding - handled by main-container bottom */

/* User dropdown */
.user-dropdown { position: relative; margin-left: auto; }
.user-trigger {
  display: flex; align-items: center; cursor: pointer;
  padding: 5px 10px; border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s;
}
.user-trigger:hover { background-color: rgba(255, 255, 255, 0.2); }
.user-icon { margin-right: 8px; font-size: 16px; }
.user-name { margin-right: 8px; font-size: 14px; }
.dropdown-arrow { font-size: 10px; }
.user-dropdown-content {
  display: none; position: absolute; top: 40px; right: 0;
  background-color: #2c3e50; min-width: 200px; border-radius: 4px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); z-index: 1002; padding: 10px;
}
.user-dropdown-content.show { display: block; }
.user-info-details {
  margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid #465b70;
}
.user-info-details p { margin: 5px 0; color: #ecf0f1; font-size: 14px; }
.profile-btn, .logout-btn {
  display: block; padding: 8px 10px; border-radius: 4px;
  text-decoration: none; font-size: 14px; text-align: center; margin-bottom: 5px;
}
.profile-btn { background: #3498db; color: white; }
.logout-btn { background: #e74c3c; color: white; }
.profile-btn:hover { background: #2980b9; }
.logout-btn:hover { background: #c0392b; }

/* Utility */
.text-success { color: #2ecc71; }
.text-danger  { color: #e74c3c; }

/* Modal */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex; justify-content: center; align-items: center; z-index: 2000;
  overflow-y: auto;
  padding: 20px 0;
}
.modal-content {
  background-color: white; border-radius: 8px; padding: 20px;
  width: 90%; max-width: 500px; max-height: calc(100vh - 40px); 
  overflow-y: auto;
  margin: auto;
}
.modal-content h2 { margin-top: 0; color: #333; }

/* Login page */
body.login-page {
  background-color: #2d3436;
  display: flex; justify-content: center; align-items: center;
  min-height: 100vh; height: 100vh; margin: 0; padding: 20px; box-sizing: border-box;
  color: white;
}
.login-container {
  background-color: #34495e; border-radius: 8px;
  width: 100%; max-width: 400px; padding: 30px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3); position: relative; margin: auto;
}
@media (max-width: 768px) { .login-container { max-width: 90%; padding: 20px; } }

/* Messages */
.success-message {
  background-color: rgba(46,204,113,0.2);
  color: #2ecc71; padding: 10px; border-radius: 4px; margin-bottom: 15px;
  border-left: 4px solid #2ecc71;
}
.error-message {
  background-color: rgba(231,76,60,0.2);
  color: #e74c3c; padding: 10px; border-radius: 4px; margin-bottom: 15px;
  border-left: 4px solid #e74c3c;
}

/* Leaflet controls: akan disetel ulang via JS sesuai tinggi footer */
.leaflet-top { top: 10px !important; }
.leaflet-bottom { bottom: 0px !important; }

/* iOS Safari fix */
@supports (-webkit-overflow-scrolling: touch) {
  html, body { height: -webkit-fill-available; }
  .layout-wrapper { height: -webkit-fill-available; }
  .sidebar, .main-content, #map { -webkit-overflow-scrolling: touch; }
}

/* Debug button (opsional) */
.debug-toggle-button {
  position: fixed;
  bottom: 70px; right: 20px;
  z-index: 9999;
  padding: 10px; background: #e74c3c; color: white;
  border: none; border-radius: 4px; cursor: pointer;
}

.marker-tooltip {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 2px 5px;
  border: 1px solid #ccc;
  font-size: 10px;
  font-weight: bold;
  color: #0f0;
  text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
  white-space: nowrap;
}

/* Bootstrap-style badges compatibility */
.badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  display: inline-block;
}

.badge-warning {
  background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
  color: #d63031;
}

.badge-success {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
  color: white;
}

.badge-danger {
  background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
  color: white;
}

.badge-primary {
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  color: white;
}

.badge-secondary {
  background: linear-gradient(135deg, #636e72 0%, #2d3436 100%);
  color: white;
}

/* Card styles for compatibility */
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 24px;
}

.card-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 20px 24px;
  border-bottom: 2px solid #dee2e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-body {
  padding: 24px;
}

.table-responsive {
  overflow-x: auto;
}

/* Form styles */
.form-group {
  margin-bottom: 16px;
}

.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  background: #fff;
  font-size: 0.95rem;
  color: #2c3e50;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-control-sm {
  padding: 6px 10px;
  font-size: 0.9rem;
}

/* Text utilities */
.text-center {
  text-align: center;
}

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

.text-success {
  color: #00b894;
}

.text-danger {
  color: #d63031;
}

/* Alert styles */
.alert {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: none;
}

.alert-danger {
  background: linear-gradient(135deg, #fab1a0 0%, #e17055 100%);
  color: #2d3436;
  border-left: 4px solid #d63031;
}

.alert-success {
  background: linear-gradient(135deg, #81ecec 0%, #00cec9 100%);
  color: #2d3436;
  border-left: 4px solid #00b894;
}

.alert-info {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
  color: white;
  border-left: 4px solid #0984e3;
}

/* Requests Page Styles */
.requests-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
}

.requests-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.requests-title {
  color: #2c3e50;
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.requests-title::before {
  content: "📋";
  font-size: 1.5rem;
}

.filter-section {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-label {
  color: #5a6c7d;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
}

.status-filter {
  padding: 8px 12px;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  background: #fff;
  font-size: 0.95rem;
  color: #2c3e50;
  min-width: 150px;
  transition: all 0.2s ease;
}

.status-filter:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.requests-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.stat-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
  flex: 1;
  min-width: 140px;
  text-align: center;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.9;
  font-weight: 500;
}

.requests-container {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.table-container {
  overflow-x: auto;
}

.requests-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.requests-table th {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-weight: 600;
  padding: 16px 12px;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 2px solid rgba(255,255,255,0.1);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 10;
}

.requests-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #f1f3f4;
  vertical-align: middle;
}

.requests-table tbody tr {
  transition: all 0.2s ease;
}

.requests-table tbody tr:hover {
  background-color: #f8f9ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

.request-id {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: #6c757d;
  font-size: 0.9rem;
}

.request-type {
  font-weight: 600;
  color: #2c3e50;
}

.request-time {
  color: #6c757d;
  font-size: 0.9rem;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  display: inline-block;
}

.status-pending {
  background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
  color: #d63031;
}

.status-approved {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
  color: white;
}

.status-rejected {
  background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
  color: white;
}

.status-completed {
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  color: white;
}

.action-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-info {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
  color: white;
}

.btn-success {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
  color: white;
}

.btn-danger {
  background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
  color: white;
}

.btn-primary {
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  color: white;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #495057;
}

.empty-state-description {
  color: #6c757d;
  font-size: 0.95rem;
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .requests-page {
    padding: 2px;
  }
  
  .requests-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .requests-title {
    font-size: 1.4rem;
  }
  
  .filter-section {
    width: 100%;
    justify-content: flex-start;
  }
  
  .status-filter {
    flex: 1;
    min-width: auto;
  }
  
  .requests-stats {
    gap: 8px;
  }
  
  .stat-card {
    min-width: 100px;
    padding: 12px 16px;
  }
  
  .stat-number {
    font-size: 1.4rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  .requests-table {
    font-size: 0.85rem;
  }
  
  .requests-table th,
  .requests-table td {
    padding: 10px 8px;
  }
  
  .action-buttons {
    flex-direction: row;
    gap: 4px;
  }
  
  /* Hindari memaksa semua tombol full width dalam tabel agar mirip devices */
  .requests-table .btn {
    width: auto;
  }
  
  /* Hide less important columns on mobile */
  .requests-table th:nth-child(3),
  .requests-table td:nth-child(3) {
    display: none;
  }
  
  .requests-table th:nth-child(4),
  .requests-table td:nth-child(4) {
    display: none;
  }
}

@media (max-width: 480px) {
  .requests-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stat-card {
    min-width: auto;
    padding: 10px 12px;
  }
  
  .stat-number {
    font-size: 1.2rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
  
  .requests-title {
    font-size: 1.2rem;
  }
  
  .requests-table th,
  .requests-table td {
    padding: 8px 4px;
    font-size: 0.8rem;
  }
  
  /* On very small screens, stack action buttons */
  .action-buttons .btn {
    font-size: 0.75rem;
    padding: 6px 10px;
  }
}

/* Enhanced hover effects */
.requests-table tbody tr:hover .btn {
  transform: scale(1.05);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* Loading states */
.btn.loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Enhanced empty state */
.empty-state {
  animation: fadeInUp 0.5s ease;
}

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

/* Better focus indicators */
.btn:focus,
.status-filter:focus {
  outline: 2px solid #3498db;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .requests-page {
    max-width: none;
    padding: 0;
  }
  
  .requests-header,
  .requests-stats {
    display: none;
  }
  
  .requests-container {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .action-buttons,
  .btn {
    display: none;
  }
  
  .requests-table {
    font-size: 12px;
  }
}

/* Request Marker Popup Styles */
.request-popup .leaflet-popup-content {
    margin: 12px 16px;
    line-height: 1.4;
    font-size: 12px;
    font-family: Arial, sans-serif;
    max-height: 320px;
    overflow-y: auto;
}

.request-popup-content {
    min-width: 280px;
    max-width: 350px;
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e1e8ed;
}

.request-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.request-info {
    margin-bottom: 12px;
}

.request-actions {
    text-align: center;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #dee2e6;
}

/* Vertical button layout */
.request-actions .btn {
    font-size: 11px;
    padding: 6px 12px;
    margin: 2px 0;
    display: block;
    width: 100%;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.request-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.request-actions .btn-success {
    background: #28a745;
    color: white;
}

.request-actions .btn-danger {
    background: #dc3545;
    color: white;
}

.request-actions .btn-info {
    background: #17a2b8;
    color: white;
}

.status-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.status-badge.status-pending {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    color: #d63031;
}

.status-badge.status-approved {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
}

.status-badge.status-rejected {
    background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
    color: white;
}

.status-badge.status-completed {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    color: white;
}

/* Request approval animations */
.requests-table tr {
    transition: all 0.3s ease;
}

.requests-table tr.approval-success {
    background-color: #d4edda !important;
    border-left: 4px solid #28a745 !important;
    transform: scale(1.02);
}

.requests-table tr.approval-processing {
    background-color: #fff3cd !important;
    border-left: 4px solid #ffc107 !important;
}

.requests-table tr.approval-error {
    background-color: #f8d7da !important;
    border-left: 4px solid #dc3545 !important;
    animation: shake 0.5s ease-in-out;
}

/* Button loading states */
.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.btn.loading.btn-success::after {
    border-color: #ffffff;
    border-top-color: transparent;
}

.btn.loading.btn-danger::after {
    border-color: #ffffff;
    border-top-color: transparent;
}

/* Status badge transitions */
.status-badge {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.status-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s;
}

.status-badge.status-updating::before {
    left: 100%;
}

/* Action buttons container */
.action-buttons {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.action-buttons .btn {
    transition: all 0.2s ease;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Shake animation for errors */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Spin animation for loading */
@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.request-info {
    margin-bottom: 12px;
}

.request-info p {
    margin: 4px 0;
    font-size: 0.9rem;
    color: #495057;
}

.request-info strong {
    color: #2c3e50;
    font-weight: 600;
}

.request-details {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    border-left: 3px solid #3498db;
}

.request-details h5 {
    margin: 0 0 8px 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2c3e50;
}

.request-details p {
    margin: 3px 0;
    font-size: 0.8rem;
    color: #6c757d;
}

.request-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #dee2e6;
    justify-content: center;
}

.request-actions .btn {
    flex: 0 1 auto;
    min-width: 80px;
    padding: 6px 12px;
    font-size: 0.7rem;
    border-radius: 6px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.request-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.request-actions .btn-success {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
}

.request-actions .btn-danger {
    background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
    color: white;
}

.request-actions .btn-info {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
}

/* Enhanced Map Controls */
.map-controls {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 16px;
    min-width: 200px;
}

.map-controls label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
}

.map-controls select {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.2s ease;
}

.map-controls select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.map-controls select:hover {
    border-color: #74b9ff;
}

/* Request Type Icons in Select Options */
.map-controls option {
    padding: 8px;
}

/* Leaflet Popup Enhancements */
.leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: none;
}

.leaflet-popup-tip {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Mobile responsiveness for popups */
@media (max-width: 768px) {
    .request-popup-content {
        min-width: 250px;
        max-width: 300px;
    }
    
    .request-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .request-actions {
        flex-direction: column;
    }
    
    .request-actions .btn {
        width: 100%;
        flex: none;
    }
    
    .map-controls {
        padding: 12px;
        min-width: 180px;
    }
}

/* Animation for request markers */
@keyframes requestMarkerPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.request-marker-pending {
    animation: requestMarkerPulse 2s infinite;
}

/* Enhanced marker tooltips */
.marker-tooltip {
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    padding: 5px 10px;
    border: #ffffff90 solid 1px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
}

/* Enhanced Modal Styles for Requests */
.request-modal-content {
  max-width: 700px;
  width: 95%;
  max-height: calc(80vh - 40px);
  overflow-y: auto;
  background-color: white; 
  border-radius: 8px; 
  padding: 24px;
  margin: auto;
}

.request-detail-section {
  margin-bottom: 20px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #3498db;
}

.request-detail-title {
  color: #2c3e50;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.request-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  color: #6c757d;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  color: #2c3e50;
  font-weight: 500;
  padding: 8px 12px;
  background: white;
  border-radius: 6px;
  border: 1px solid #e1e8ed;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    color: white;
    z-index: 2000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 1;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.notification-success {
    background-color: #28a745; /* Green */
}

.notification-error {
    background-color: #dc3545; /* Red */
}

.notification-info {
    background-color: #17a2b8; /* Blue-ish */
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    margin-left: 15px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.notification-close:hover {
    opacity: 1;
}

.notification-hiding {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
}

/* ===================== Device Icons & Markers ===================== */

/* Device icon styling */
.device-icon {
    transition: all 0.2s ease;
}

.device-icon:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.4));
}

/* Emoji font fallbacks for device icons */
.device-icon text,
.legend-icon text {
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', 'Android Emoji', 'EmojiSymbols', sans-serif;
    font-size: inherit;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Device popup styling */
.device-popup {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 280px;
}

.device-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 6px;
    margin-bottom: 8px;
}

.device-type-badge {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.device-details > div {
    margin-bottom: 4px;
    padding: 2px 0;
}

.status-indicator {
    font-weight: 500;
}

.status-indicator.status-up {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-indicator.status-down {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.active-requests {
    animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
    0% { background-color: #fff3cd; }
    50% { background-color: #ffeaa7; }
    100% { background-color: #fff3cd; }
}

/* Request popup styling */
.request-popup-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.request-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin: -10px -10px 10px -10px;
    padding: 10px;
    border-radius: 6px 6px 0 0;
}

.status-badge {
    display: inline-block;
    font-weight: 500;
    border-radius: 12px;
}

.status-badge.status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-badge.status-approved {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.status-rejected {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-badge.status-completed {
    background: #cce7ff;
    color: #004085;
    border: 1px solid #99d6ff;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(3px);
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(3px);
}

.custom-modal-content {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 90%;
    max-height: 70%;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    z-index: 10001;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: #f5f5f5;
    color: #333;
}

.modern-close {
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    color: #6c757d !important;
}

.modern-close:hover {
    background: #e9ecef !important;
    color: #495057 !important;
}

.form-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px;
    border-radius: 12px 12px 0 0;
    text-align: center;
}

.form-header .form-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.form-header h2 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.form-subtitle {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.modern-device-form {
    width: 600px;
    max-width: 90vw;
}

.device-form {
    padding: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group input,
.form-group select {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a67d8;
}

.btn-cancel {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-cancel:hover {
    background: #e5e7eb;
}

.field-hint {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 4px;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .modern-device-form {
        width: 95vw;
        margin: 10px;
    }
    
    .form-actions {
        flex-direction: column-reverse;
    }
    
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===================== End Device Icons & Markers ===================== */

/* ===================== Quick Help Button in Sidebar ===================== */
.sidebar-quick-help {
    padding: 15px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: auto;
}

.quick-help-btn {
    width: 100%;
    padding: 10px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.quick-help-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.quick-help-btn i {
    font-size: 16px;
}

.quick-help-container {
    padding: 15px;
    border-top: 1px solid #465b70;
    margin-top: 10px;
}

/* ===================== End Quick Help Button ===================== */