/* some default styles to make the view more native like */

html {
  /* Prevent the page to be scrollable */
  overflow: hidden;

  /* Force the default cursor, even on text */
  cursor: default;
}

body {
  position: relative;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

*,
*:before,
*:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  position: relative;

  /* Prevent the content from being selectionable */
  -webkit-user-select: none;
  user-select: none;
}

#notification {
  width: 345px;
  height: 100px;
  background: white;
  border-radius: 5px;
  border: 1px solid #cbcbcb;
}

.window {
  height: 100%;
  width: 100%;
  background: #ffffff;
  color: #333333;
}
body.window.dark {
  background: #2d2d2d;
  color: #e0e0e0;
}

#panel,
#window {
  width: 100%;
  height: 100%;
}

.panel {
  overflow: hidden;
}

body.panel {
  background: #ffffff;
  height: 100vh;
  width: 100vw;
}

body.panel.dark {
  background: #2d2d2d;
  color: #e0e0e0;
}

.panel-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.panel-logo {
  height: 20px;
  margin-bottom: 4px;
}

/* --- Actions (default state) --- */
.panel-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  flex: 1;
}

.panel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 32px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition:
    background 0.15s ease,
    opacity 0.15s ease;
}
.panel-btn:focus-visible {
  outline: 2px solid #067dff;
  outline-offset: 2px;
}
.dark .panel-btn:focus-visible {
  outline-color: #4da3ff;
}
.panel-btn:disabled {
  opacity: 0.4;
  pointer-events: none;
}
.panel-btn--primary {
  background: #067dff;
  color: #ffffff;
}
.panel-btn--primary:hover {
  background: #0570e6;
}
.panel-btn--primary:active {
  background: #0462cc;
}
.panel-btn--secondary {
  background: transparent;
  color: inherit;
  border: 0.5px solid rgba(0, 0, 0, 0.15);
}
.panel-btn--secondary:hover {
  background: rgba(0, 0, 0, 0.04);
}
.panel-btn--secondary:active {
  background: rgba(0, 0, 0, 0.08);
}

.dark .panel-btn--secondary {
  border-color: rgba(255, 255, 255, 0.15);
}
.dark .panel-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}
.dark .panel-btn--secondary:active {
  background: rgba(255, 255, 255, 0.1);
}

/* --- Error state --- */
.panel-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 14px;
  flex: 1;
  text-align: center;
}

.panel-error-title {
  font-size: 13px;
  font-weight: 600;
  color: #c81f14;
}

.panel-error-hint {
  font-size: 12px;
  color: #4d4d4d;
}

body.panel.dark .panel-error-title {
  color: #ef5350;
}

body.panel.dark .panel-error-hint {
  color: #f8f8f8;
}

/* --- Progress state --- */
.panel-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 14px 6px;
  flex: 1;
}

.panel-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.panel-progress-msg {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-progress-track {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
body.panel.dark .panel-progress-track {
  background: rgba(255, 255, 255, 0.1);
}

.panel-progress-fill {
  height: 100%;
  border-radius: 3px;
  background: #067dff;
  transition: width 0.3s ease;
}

.panel-progress-count {
  font-size: 11px;
  opacity: 0.5;
}

.panel-btn--cancel {
  background: transparent;
  color: inherit;
  font-size: 11px;
  font-weight: 500;
  width: auto;
  height: auto;
  padding: 4px 16px;
  opacity: 0.5;
}
.panel-btn--cancel:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.05);
}
body.panel.dark .panel-btn--cancel:hover {
  background: rgba(255, 255, 255, 0.06);
}

.window-content.dark button {
  background-color: #3a3a3c;
  outline: none;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  color: #e0e0e0;
}

/* --- Login --- */
.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 14px;
  min-height: 100%;
}
.login-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 200px;
}
.login-form .panel-btn {
  width: 100%;
  height: 28px;
  font-size: 12px;
}
.login-form .type_color-tertiary {
  color: inherit;
}
.login-error {
  font-size: 12px;
  background: rgba(255, 59, 48, 0.1);
  color: #ff3b30;
  border-radius: 6px;
  padding: 6px 10px;
  text-align: center;
}
.login-sso-link {
  font-size: 12px;
  color: #888888;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 0;
  background: none;
  border: none;
}
.login-sso-link:hover {
  color: #067dff;
}
.dark .login-sso-link {
  color: #e0e0e0;
}
.dark .login-sso-link:hover {
  color: #4da3ff;
}
.login-step-label {
  font-size: 12px;
  text-align: center;
}
.login-loading {
  width: 32px;
  height: 32px;
}

.upload-title {
  font-size: 15px;
  font-weight: 600;
  padding-top: 24px;
}
.upload-desc {
  font-size: 12px;
  font-weight: 400;
  padding-top: 14px;
  padding-left: 24px;
  padding-right: 24px;
  color: #888888;
}

.button-native {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  border-radius: 3.5px;
  border: none;
  height: 20px;
  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.2);
}
.button-native--primary {
  color: white;
  padding: 0 16px;
  background: linear-gradient(180deg, #6cb3fa 0%, #067dff 100%);
}
.button-native--primary:active {
  background: linear-gradient(180deg, #6cb3fa -30%, #067dff 100%);
}
.button-native--secondary {
  padding: 0 12px;
  background: white;
}

.dark .button-native--secondary {
  padding: 0 12px;
  background: #686869;
}

.button-native--secondary:active {
  color: white;
  background: linear-gradient(180deg, #6cb3fa 0%, #067dff 100%);
}

/*** ABSTRACT DIALOG ***/
.abstract-dialog {
  padding: 16px;
  font-size: 13px;
}

.dark.abstract-dialog {
  color: #dcdcdc;
  padding: 16px;
  font-size: 13px;
}

.abstract-dialog--message {
  width: 355px;
}

.abstract-dialog--logo {
  height: 64px;
  width: 64px;
  padding-right: 20px;
}

.abstract-dialog--actions {
  margin-top: 32px;
  display: flex;
  justify-content: flex-end;
}

.abstract-dialog--actions > * {
  margin-left: 12px;
}

.abstract-dialog--actions > *:first-child {
  margin-left: 0px;
}

.abstract-dialog a {
  color: #f63e7c;
  font-weight: 600;
  text-decoration: underline;
}

.abstract-dialog--checkbox-container {
  display: flex;
  align-items: center;
}

#app {
  font-size: 1.3rem;
  margin-top: 21px;
  width: 256px;
  height: 250px;
  background: rgba(253, 253, 253, 0.95);
  border-radius: 4px;
  text-align: center;
}

.arrow {
  position: absolute;
  top: -10px;
  left: 117px;
}

.logo {
  padding-top: 20px;
  display: inline-block;
}

input,
textarea {
  -webkit-user-select: auto;
  user-select: auto;
  font-size: 1.3rem;
  padding-left: 2px;
}
