body {
  background-color: #1a1a2e;
}

html {
  height: 100%;
}


.noVNC_spinner,
.noVNC_spinner::before,
.noVNC_spinner::after {
  border-radius: 0;
}

input[type=input],
input[type=password],
input[type=number],
input:not([type]),
textarea {
  border-radius: 0;
  color: #414141;
}

input[type=button],
input[type=submit],
select {
  border-radius: 0;
}

#noVNC_fallback_error>div {
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(200, 55, 55, 0.4);
}

#noVNC_control_bar {
  background: linear-gradient(180deg, #00569a 0%, #004a80 100%);
  border-radius: 0;
}

#noVNC_control_bar.noVNC_open {
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.35);
}

.noVNC_right #noVNC_control_bar {
  border-radius: 0;
}

#noVNC_control_bar_handle {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#noVNC_control_bar_hint {
  border-radius: 0;
}

.noVNC_button {
  border-radius: 0;
}

.noVNC_panel {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  border-radius: 12px;
}

.noVNC_panel .noVNC_heading {
  background: linear-gradient(135deg, #006ebe 0%, #0088eb 100%);
  border-radius: 8px;
}

.noVNC_expander~* {
  border-radius: 0;
}

#noVNC_control_bar .noVNC_logo {
  border-bottom: 1px solid white;
}

#noVNC_connect_dlg .noVNC_logo {
  border-radius: 0;
}

#noVNC_connect_button {
  background: linear-gradient(135deg, #006ebe 0%, #0088eb 100%);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 110, 190, 0.35);
}

#noVNC_connect_button div {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  border-radius: 14px;
}

:root:not(.noVNC_touch) #noVNC_connect_button div:hover {
  background: rgba(255, 255, 255, 0.1);
}

#noVNC_connection_details {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

#noVNC_container {
  background: none;
  border-bottom-right-radius: 0;
  /* height: calc(100% - 20px); */
  height: 100%;
}

@font-face {
  font-family: 'Arial-Narrow-BI';
  font-style: bold-italic;
  font-weight: 400;
  src: local('?'), url('ARIALNBI.TTF') format('truetype');
}

.noVNC_logo {
  display: none;
}

.hide {
  display: none;
}

.logodaen {
  display: block;
  color: #1a365d;
  font-family: 'Arial-Narrow-BI', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  text-shadow: none; /* 0 1px 0 rgba(255, 255, 255, 1); */
  font-size: 44px !important;
  font-weight: 900 !important;
  letter-spacing: -0.5px;
}

.logodaen span {
  color: #006ebe;
}

::selection {
  background: #c1d9ea;
}

#np_text {
  font-family: -apple-system, BlinkMacSystemFont, Arial, Verdana, sans-serif;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  font-size: 12px;
  color: #1a1a2e;
  display: inline-block;
  white-space: nowrap;
  font-weight: 500;
  transition: opacity 0.3s;
}

#np_text a {
  color: #1a1a2e;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: color 0.2s;
}

#np_text span {
  font-size: 12px;
}

#np_text a:hover {
  text-decoration: none;
  color: #004a80;
}

#np_users a,
#np_users a:visited {
  color: #1a365d;
}


.np-color,
.np-color-sticked {
  color: #006ebe;
}

.np-color:before,
.np-color:after {
  content: ' ';
}

.np-color-sticked {
  color: #006ebe;
  font-weight: bold;
}

/* Unified bottom status bar - light system tone */
#np_status_bar {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  z-index: 100;

  background: #f2f2f2;
  height: 32px;
  border-top: 1px solid #d1d1d1;
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.05);

  box-sizing: border-box;
  color: #1a365d;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 13px;
}

#np_status_bar.np_hidden {
  display: none !important;
}

#np_status_left,
#np_status_right {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 100%;
  padding: 0 12px;
  gap: 8px;
  /* More breathing room */
  flex: 1;
}

#np_status_left {
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

#np_status_right {
  justify-content: flex-end;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

#np_status_center {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  height: 100%;
  flex: 2;
  /* Give more space to center */
}

/* manual clipboard container */
#np_manual_clipboard {
  display: flex;
  align-items: center;
}

#noVNC_clipboard_sizebutton {
  border: 1px solid #006ebe;
  background: #006ebe;
  ;
  color: #ffffff;
  height: 28px;
  width: 28px;
  padding: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.2s;
  border-radius: 6px;
  margin-right: 2px;
  box-shadow: 0 1px 3px rgba(25, 135, 84, 0.2);
}

#noVNC_clipboard_sizebutton:hover {
  background: #006ebe;
  border-color: #006ebe;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(25, 135, 84, 0.3);
}

#noVNC_clipboard_text {
  border: 1px solid #d1d1d1;
  background: #ffffff;
  color: #333333;
  width: 100px;
  height: 26px;
  margin: 0;
  padding: 0 8px;
  font-size: 11px;
  resize: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  overflow: hidden;
  border-radius: 4px;
  line-height: 24px;
}

#noVNC_clipboard_text:focus {
  border-color: #006ebe;
  box-shadow: 0 0 0 2px rgba(0, 110, 190, 0.1);
}

#noVNC_clipboard_text.expanded {
  position: absolute;
  bottom: 40px;
  left: 12px;
  width: 400px;
  height: 140px;
  overflow: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

#noVNC_clipboard_text::placeholder {
  color: #a0aec0;
  font-style: italic;
}
#noVNC_connect_dlg {
  background: rgba(255, 255, 255, 0.6);
}

.noVNC_cursorText {
  position: absolute;
  font-size: 0.8em;
  color: #4aa74a;
  z-index: 1;
}


/* Shared button styles for status bar */
.np_clipboard_tips_button,
.np_audio_button,
.np_multiusers_button,
.np_record_button {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #d1d1d1;
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
  opacity: 0.9;
}

.np_clipboard_tips_button:hover,
.np_audio_button:hover,
.np_multiusers_button:hover,
.np_record_button:hover {
  background: rgba(0, 0, 0, 0.8);
  opacity: 1;
  transform: translateY(-1px);
}

/* Selected states with DaDesktop Colors */

.np_clipboard_tips_button.noVNC_selected {
  border-color: #006ebe;
  background: #006ebe;
  color: #fff;
  opacity: 1;
  box-shadow: 0 2px 5px rgba(25, 135, 84, 0.3);
}

.np_audio_button.noVNC_selected,
.np_multiusers_button.noVNC_selected {
  border-color: #006ebe;
  background: #006ebe;
  color: #fff;
  opacity: 1;
  box-shadow: 0 2px 5px rgba(0, 110, 190, 0.3);
}

.np_record_button.noVNC_selected {
  border-color: #EF4444;
  background: #EF4444;
  color: #fff;
  opacity: 1;
  box-shadow: 0 2px 5px rgba(239, 68, 68, 0.3);
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.np_stat_text {
  background: #ffffff;
  color: #1a365d;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 1);
  text-align: center;
  width: auto;
  min-width: 44px;
  height: 22px;
  border: 1px solid #d1d1d1;
  margin: 0;
  padding: 0 6px !important;
  font-size: 11px;
  font-family: monospace;
  font-weight: 500;
  border-radius: 4px;
  line-height: 20px;
}

.np_stat_text.noVNC_selected {
  border-color: #006ebe;
  background: #ebf5ff;
  color: #006ebe;
  font-weight: bold;
}


.np_hidden {
  display: none;
}

.np_invisible {
  position: fixed !important;
  height: 1px !important;
  width: 1px !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: -999 !important;
  display: inline !important;
}

#noVNC_firefox_clipboard_extension {
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  background: linear-gradient(135deg, #006ebe 0%, #0088eb 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  padding: 12px 24px;
  box-sizing: border-box;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ext-button {
  display: inline-flex;
  align-items: center;
  margin: 0 4px;
  padding: 6px 18px;
  box-sizing: border-box;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
}

.ext-button-red {
  background: #EF4444;
  color: #fff;
  border: none;
}

.ext-button-red:hover {
  background: #DC2626;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.ext-button-default {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.ext-button-default:hover {
  background: rgba(255, 255, 255, 0.3);
}

.ext-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #fff;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.ext-close:hover {
  background: rgba(255, 255, 255, 0.3);
}


.clipboard-loader {
  border: 16px solid #f3f3f3;
  border-top: 16px solid #3498db;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 2s linear infinite;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  display: none;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}


#fs-dialog {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  padding: 32px;
  max-width: 360px;
  background: #fff;
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
}

#fs-dialog::backdrop {
  background: rgba(10, 10, 30, 0.5);
  backdrop-filter: blur(4px);
}

#fs-dialog p:first-child {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-top: 0;
}

#fs-dialog form {
  text-align: center;
  margin-top: 8px;
}

.fs-ok-btn {
  border: none;
  color: #fff;
  height: 38px;
  padding: 0 32px;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, #006ebe 0%, #0088eb 100%);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 110, 190, 0.25);
}

.fs-ok-btn:hover {
  box-shadow: 0 6px 20px rgba(0, 110, 190, 0.4);
  transform: translateY(-1px);
}

.fs-ok-btn:active {
  transform: translateY(0);
}

.fs-ok-btn.disabled,
.fs-ok-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
  transform: none;
}


#np_clipboard_tips {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(55vw, 600px);
  max-height: 70vh;
  overflow-y: auto;
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  transform: translate(-50%, -50%);
  padding: 32px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  z-index: 200;
  color: #374151;
  line-height: 1.6;
}

#np_clipboard_tips_close_button {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg, #006ebe 0%, #0088eb 100%);
  cursor: pointer;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 28px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 110, 190, 0.25);
}

#np_clipboard_tips_close_button:hover {
  box-shadow: 0 6px 20px rgba(0, 110, 190, 0.4);
  transform: translateX(-50%) translateY(-1px);
}

#np_clipboard_tips h3 {
  margin-top: 0;
  color: #111827;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}

#np_clipboard_tips_summary {
  color: #4b5563;
}

#np_clipboard_tips_list {
  color: #4b5563;
}

#np_clipboard_tips_list li {
  padding: 4px 0;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.blink {
  animation: blink 1s step-end infinite;
}


/* File uploader */
.np_file_uploader {
  display: flex !important;
  align-items: center;
  height: 100%;
}

.uploader_container {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
}

#drop_zone {
  border: 2px dashed #006ebe;
  /* Clearly visible dashed border */
  background: rgba(0, 0, 0, 0.05);
  color: #006ebe;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 20px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  height: 28px;
  /* Increased height */
  line-height: 22px;
  box-sizing: border-box;
  transition: all 0.2s;
  min-width: 160px;
  /* Increased width */
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

#drop_zone:hover {
  background: #f0f7ff;
  border-color: #004d85;
  color: #004d85;
}

#uploader_progress_bar {
  width: 60px;
  height: 6px;
}

#uploader_progress_text {
  font-size: 9px;
  color: #ccc;
}

#drop_zone.dragover {
  background-color: rgba(74, 167, 74, 0.8);
}

#uploader_progress_bar {
  width: 200px;
  height: 20px;
  display: none;
}


#uploader_tooltip {
  position: relative;
  display: inline-block;
}

#uploader_tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}

#uploader_tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}
