.settings-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  width: 100%;
  align-items: start;
}

.settings-left-col {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.settings-menu-panel, .settings-storage-panel {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.menu-header-lbl, .storage-header-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.settings-menu-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.settings-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  border: 1px solid transparent;
}

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

.settings-menu-item:hover {
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

.settings-menu-item.active {
  background-color: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.15);
  color: var(--accent-blue);
}

.storage-value-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 8px;
}

.storage-badge {
  padding: 4px 8px;
  border-radius: 6px;
  background-color: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.2);
  color: #00e676;
  font-size: 0.7rem;
  font-weight: 700;
}

.storage-pct {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.storage-progress-bar {
  width: 100%;
  height: 6px;
  background-color: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.storage-progress-bar .bar-fill {
  height: 100%;
  background-color: #00e676;
  border-radius: 3px;
}

.storage-subtext {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Right Column Forms */
.settings-right-col {
  display: flex;
  flex-direction: column;
}

.settings-inner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.settings-title-h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.settings-subtitle-p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 4px;
}

.settings-header-actions {
  display: flex;
  gap: 12px;
}

.settings-btn {
  padding: 10px 24px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.settings-btn.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.settings-btn.btn-secondary:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.settings-btn.btn-primary {
  background-color: var(--accent-blue);
  border: none;
  color: var(--bg-primary);
}

.settings-btn.btn-primary:hover {
  background-color: #00b8e6;
}

.settings-form-panel {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  margin-bottom: 30px;
}

.settings-form-panel .panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.title-with-icon {
  display: flex;
  align-items: center;
  gap: 12px;
}

.title-with-icon .panel-icon {
  width: 20px;
  height: 20px;
  color: var(--accent-blue);
}

.settings-form-panel h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.system-id-lbl {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 700;
}

.panel-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.form-group label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.form-group input[type="text"], .form-group input[type="number"] {
  width: 100%;
  padding: 10px 14px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s;
}

.form-group input[type="text"]:focus, .form-group input[type="number"]:focus {
  border-color: var(--accent-blue);
}

/* Language selector */
.language-selector-buttons {
  display: flex;
  gap: 12px;
}

.lang-btn {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background-color: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.lang-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
  background-color: rgba(0, 210, 255, 0.08);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.lang-btn .flag-icon {
  font-size: 1.1rem;
}

/* Timezone */
.timezone-input-wrapper {
  position: relative;
  width: 100%;
}

.timezone-input-wrapper input {
  width: 100%;
  padding: 10px 35px 10px 14px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.9rem;
  opacity: 0.6;
  cursor: not-allowed;
}

.timezone-input-wrapper .lock-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--text-secondary);
}

/* Sliders */
.metrics-sliders-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.metric-slider-box {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metric-slider-box .lbl {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.metric-slider-box .val {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
}

.metric-slider-box .val.color-green { color: #00e676; }
.metric-slider-box .val.color-orange { color: #ff9100; }
.metric-slider-box .val.color-blue { color: var(--accent-blue); }

.slider-wrapper {
  margin-top: 4px;
  width: 100%;
}

.target-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  outline: none;
  opacity: 0.7;
}

.target-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  cursor: default;
}

.target-slider.green-fill::-webkit-slider-thumb { background: #00e676; }
.target-slider.orange-fill::-webkit-slider-thumb { background: #ff9100; }
.target-slider.blue-fill::-webkit-slider-thumb { background: var(--accent-blue); }

.slider-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.panel-sub-header {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  margin: 20px 0 12px;
}

/* Registered specs table */
.settings-spec-table {
  width: 100%;
  border-collapse: collapse;
}

.settings-spec-table th {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 700;
  letter-spacing: 0.5px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.settings-spec-table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-primary);
}

.edit-spec-link {
  color: var(--accent-blue);
  font-weight: 700;
  text-decoration: none;
}

.edit-spec-link:hover {
  text-decoration: underline;
}

/* Warnings */
.warning-active-badge {
  padding: 4px 8px;
  border-radius: 6px;
  background-color: rgba(255, 61, 0, 0.08);
  border: 1px solid rgba(255, 61, 0, 0.2);
  color: #ff3d00;
  font-size: 0.7rem;
  font-weight: 800;
}

.thresholds-toggles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.threshold-toggle-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.card-top-row h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-top-row p {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.switch-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #1b2a4e;
  transition: .4s;
  border-radius: 24px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

.switch-toggle input:checked + .switch-slider {
  background-color: var(--accent-blue);
}

.switch-toggle input:checked + .switch-slider:before {
  transform: translateX(20px);
}

.card-inputs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.input-field-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-field-box .lbl {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.input-field-box input {
  padding: 8px 12px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  width: 100%;
}

/* Operation tip */
.operation-tip-card {
  display: flex;
  gap: 16px;
  background-color: rgba(0, 210, 255, 0.03);
  border: 1px solid rgba(0, 210, 255, 0.1);
  border-radius: 16px;
  padding: 18px;
}

.tip-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(0, 210, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tip-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-blue);
}

.tip-text h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-blue);
}

.tip-text p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-top: 4px;
}

/* Users access list */
.add-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: #00e676;
  border: none;
  border-radius: 10px;
  color: var(--bg-primary);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.add-user-btn:hover {
  background-color: #00b050;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.2);
}

.users-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.user-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-profile-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #1a2a4e;
  border: 1px solid rgba(0, 210, 255, 0.2);
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.user-card-details {
  display: flex;
  flex-direction: column;
}

.user-card-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.user-card-role {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.user-action-dots {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
  cursor: pointer;
}

/* Toast Notification styling */
.toast-container {
  position: fixed;
  top: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 12000;
}

.toast-alert {
  background-color: #0c1527;
  border: 1px solid #00e676;
  box-shadow: 0 8px 30px rgba(0, 230, 118, 0.2);
  border-radius: 12px;
  padding: 14px 20px;
  color: white;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  animation: toastFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1), toastFadeOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) 2.7s forwards;
}

@keyframes toastFadeIn {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes toastFadeOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100px); opacity: 0; }
}

@media (max-width: 1200px) {
  .settings-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .metrics-sliders-grid, .users-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Machine Detail & Stamp Animation Styles */
.machine-detail-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.detail-action-bar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 10px;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 20px;
}
.back-btn:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.15);
}
.detail-title-block {
  display: flex;
  flex-direction: column;
}
.detail-main-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 30px;
  width: 100%;
}
.machine-stamp-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}
.stamp-image-viewport {
  position: relative;
  width: 100%;
  height: 380px;
  background-color: #0c1527;
  overflow: hidden;
}
.machine-stamp-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: bottom center;
}
.machine-stamp-card.running-animation {
  animation: stamp-shake 0.8s infinite ease-in-out;
}
.machine-stamp-card.running-animation .machine-stamp-image {
  animation: stamping-press 0.8s infinite cubic-bezier(0.45, 0, 0.55, 1);
}
.machine-stamp-card.running-animation .stamp-glow {
  animation: stamp-glow-flash 0.8s infinite ease-in-out;
}
.stamp-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to top, rgba(0, 230, 118, 0.4), transparent);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}
.stamp-card-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.live-speed-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #00e676;
  box-shadow: 0 0 8px #00e676;
}
.machine-stamp-card.running-animation .live-pulse {
  animation: pulse-glow 1.5s infinite;
}
@keyframes pulse-glow {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}
.machine-stamp-card:not(.running-animation) .live-pulse {
  background-color: var(--text-secondary);
  box-shadow: none;
}
.speed-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
}
.speed-val {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-primary);
}
.speed-val .unit {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.oee-gauge-mini {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
}
.oee-gauge-mini .oee-val {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent-blue);
  margin-left: 4px;
}
.detail-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}
.detail-stat-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-card-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}
.stat-card-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
}
.stat-card-value.value-highlight {
  color: var(--accent-blue);
  text-shadow: 0 0 10px rgba(0, 210, 255, 0.15);
}
.detail-chart-panel {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

@keyframes stamping-press {
  0% { transform: translateY(0) scaleY(1); }
  40% { transform: translateY(18px) scaleY(0.92); }
  48% { transform: translateY(22px) scaleY(0.88); }
  52% { transform: translateY(22px) scaleY(0.88); }
  60% { transform: translateY(18px) scaleY(0.92); }
  100% { transform: translateY(0) scaleY(1); }
}
@keyframes stamp-shake {
  0%, 100% { transform: translate(0, 0); }
  46% { transform: translate(0, 0); }
  48% { transform: translate(-1.5px, 2px); }
  50% { transform: translate(2px, -1.5px); }
  52% { transform: translate(-1px, 1px); }
  54% { transform: translate(0, 0); }
}
@keyframes stamp-glow-flash {
  0%, 100% { opacity: 0; }
  45% { opacity: 0; }
  48% { opacity: 0.45; }
  52% { opacity: 0.45; }
  60% { opacity: 0; }
}

@media (max-width: 900px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

/* Styling for account settings table elements */
.settings-role-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #0b1426 !important;
  border: 1px solid #1a2a4e !important;
  color: #fff !important;
  padding: 6px 28px 6px 12px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  cursor: pointer;
  outline: none;
  width: 130px !important;
  height: 32px !important;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%23ffffff"><path d="M7 10l5 5 5-5H7z"/></svg>') !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  background-size: 14px !important;
  transition: all 0.2s ease;
}
.settings-role-select:focus {
  border-color: var(--accent-blue) !important;
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.2);
}

.btn-change-pwd {
  background: rgba(210, 144, 34, 0.06) !important;
  border: 1px solid rgba(210, 144, 34, 0.35) !important;
  color: #ffa726 !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}
.btn-change-pwd:hover {
  background: rgba(210, 144, 34, 0.15) !important;
  border-color: rgba(210, 144, 34, 0.6) !important;
  box-shadow: 0 0 10px rgba(210, 144, 34, 0.1);
}

#settings-page-size {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #0b1426 !important;
  border: 1px solid #1a2a4e !important;
  color: #fff !important;
  padding: 6px 30px 6px 12px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  cursor: pointer;
  outline: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%23ffffff"><path d="M7 10l5 5 5-5H7z"/></svg>') !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  background-size: 14px !important;
  transition: all 0.2s ease;
}
#settings-page-size:focus {
  border-color: var(--accent-blue) !important;
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.2);
}

#settings-search-input {
  background-color: #0b1426 !important;
  border: 1px solid #1a2a4e !important;
  color: #fff !important;
  padding: 6px 12px !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  border-radius: 6px !important;
  outline: none;
  width: 200px !important;
  transition: all 0.2s ease;
}
#settings-search-input:focus {
  border-color: var(--accent-blue) !important;
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.2);
}

/* Badges for roles in Settings view */
.badge-success {
  background-color: rgba(0, 230, 118, 0.1) !important;
  color: #00e676 !important;
  border: 1px solid rgba(0, 230, 118, 0.2) !important;
}
.badge-info {
  background-color: rgba(0, 210, 255, 0.1) !important;
  color: #00d2ff !important;
  border: 1px solid rgba(0, 210, 255, 0.2) !important;
}

/* Overtime Switch iOS style */
.overtime-switch input:checked + .slider {
  background-color: var(--accent-blue) !important;
}
.overtime-switch input:checked + .slider:before {
  transform: translateX(22px);
}
.overtime-switch .slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: .4s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Custom scrollbar styling for a clean, premium look */
#technical-attrs-inputs::-webkit-scrollbar,
.alarm-modal-body::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
#technical-attrs-inputs::-webkit-scrollbar-track,
.alarm-modal-body::-webkit-scrollbar-track {
  background: transparent;
}
#technical-attrs-inputs::-webkit-scrollbar-thumb,
.alarm-modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}
#technical-attrs-inputs::-webkit-scrollbar-thumb:hover,
.alarm-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 210, 255, 0.4);
}

/* Premium Settings Layout & Style improvements */
.settings-config-general-card,
.settings-config-technical-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.settings-config-general-card:hover,
.settings-config-technical-card:hover {
  border-color: rgba(0, 210, 255, 0.3) !important;
  box-shadow: 0 8px 30px rgba(0, 210, 255, 0.05);
}

.tech-attr-input {
  transition: all 0.2s ease-in-out !important;
}

.tech-attr-input:focus {
  border-color: var(--accent-blue) !important;
  background: rgba(0, 210, 255, 0.02) !important;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.15);
}

#config-machine-category-select,
#config-machine-search,
#config-machine-select {
  transition: all 0.2s ease-in-out !important;
}

#config-machine-category-select:focus,
#config-machine-search:focus,
#config-machine-select:focus {
  border-color: var(--accent-blue) !important;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.15);
}

#btn-add-machine:hover,
#btn-save-only-machine-config:hover {
  background: #00b8e6 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 210, 255, 0.3) !important;
}

#btn-add-machine:active,
#btn-save-only-machine-config:active {
  transform: translateY(0);
}