﻿@font-face {
    font-family: SegoeUiSemibold;
    src: url(css/fonts/segoeui_semibold.woff);
}

body {
  background-color: #f3f2f1;
  margin: 0;
  padding: 20px;
  font-family: 'Segoe UI', sans-serif;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #1e1e1e;
    color: #ffffff;
  }
}

@media (-ms-high-contrast: active), (forced-colors: active) {
  /* Base (Rest) */
  .action_button {
    background-color: Canvas !important;/* match page background so it looks like outline-only */
    color: CanvasText !important;
    border: 1px solid ButtonText !important;
    box-shadow: none !important;
    -ms-high-contrast-adjust: auto !important;
    forced-color-adjust: auto !important;
  }

  /* Hover */
  .action_button:hover {
    border-color: Highlight !important;
    color: HighlightText !important;
    background-color: Highlight !important;
    forced-color-adjust: none !important;
    display: inline !important; 
  }

  /* Pressed */
  .action_button:active {
    background-color: Highlight !important;
    color: ButtonFace !important;
    border-color: none !important;
  }

  /* Focus (keyboard) */
   .action_button:focus-visible {
    background-color: #FFFFFF !important;
    color: #202020 !important;
    border: 1px solid #FFFFFF !important;
    border-color: #FFFFFF !important;
    outline: 2px solid #FFFFFF !important;
    outline-offset: 2px !important;
    box-shadow: none !important;
    forced-color-adjust: none !important;
    display: inline !important; 
  } 

}

/* Windows 11 style dark theme support */
body.windows-app.dark-theme {
  background-color: #202020;
  color: #ffffff;
}

body.mac-app.dark-theme {
  background-color: #1e1e1e;
  color: #ffffff;
}

.error-page-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  min-height: 500px;
}

/* Header with steps */
.header-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #e1e4e8;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0078d4;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.step-circle.active {
  background: #106ebe;
  box-shadow: 0 0 0 3px rgba(16, 110, 190, 0.2);
}

.step-connector {
  width: 60px;
  height: 2px;
  background: #0078d4;
  margin: 0 8px;
}

/* Error state section */
.error-state {
  padding: 60px 40px 40px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.error-content {
  max-width: 500px;
}

.error-title {
  font-size: 24px;
  font-weight: 600;
  color: #323130;
  margin-bottom: 16px;
  line-height: 1.3;
}

.error-message {
  font-size: 16px;
  color: #605e5c;
  line-height: 1.4;
}

.action-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.btn-primary {
  background: #0078d4;
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  min-width: 140px;
}

.btn-primary:hover {
  background: #106ebe;
} 

/* Legacy styles for compatibility */
.connection-required__content {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: -40px;
}

.connection-required__header {
    font-family: 'Segoe UI Variable', 'Segoe UI', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 24px;
    line-height: 28px;
    letter-spacing: 0%;
    text-align: center;
    margin-top: 0px;
    margin-bottom: 16px;
    color: #000000;
}

.connection-required__message {
    font-family: 'Segoe UI Variable', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 15px;
    line-height: 20px;
    letter-spacing: 0%;
    text-align: center;
    white-space: pre-line;
    color: #616161;
}

/* Dark mode support for all elements */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1e1e1e;
        color: #ffffff;
    }
    
    .connection-required__header {
        color: #ffffff;
    }
    
    .connection-required__message {
        color: #d1d1d1;
    }
    
    .paramName, .paramValue {
        color: #ffffff;
    }
    
    .action_button {
        background-color: #0078d4;
        color: #ffffff;
        border: 1px solid #0078d4;
    }
    
    .action_button:hover {
        background-color: #106ebe;
        border-color: #106ebe;
    }

    .switch_account_button {
        background-color: #0078d4;
        color: #ffffff;
        border: 1px solid #0078d4;
    }

    .switch_account_button:hover {
        background-color: #106ebe;
        border-color: #106ebe;
    }
}

.tip {
  font-size: 90%;
  padding-left: 20px;
}

.paramName {
  font-size: 100%;
  color: black;
} 

.paramValue {
  color: black;
}

.action_button {
  background-color: #464FEB;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  width: 187px;
  height: 40px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Segoe UI', sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  margin: 4px 0px;
  transition: background-color 0.2s ease;
}

.action_button:hover {
  background-color: #3c43d1;
}

.action_button:active {
  background-color: #333ac0;
}

.switch_account_button {
    display: none;
    background-color: #464FEB;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    width: 187px;
    height: 40px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Segoe UI', sans-serif;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    margin-left: auto;
    margin-right: auto;
    transition: background-color 0.2s ease;
}

.switch_account_button:hover {
    background-color: #3c43d1;
}

.switch_account_button:active {
    background-color: #333ac0;
}

.mac-app {
  font-family: sans-serif;
}

.windows-app {
  font-family: 'Segoe UI';
}

.mac-app #native-title-bar {
  position: fixed;
  top: 0px;
  left: 0px;
  height: 40px;
  width: 100%;
  app-region: drag;
}
