@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

:root {
  --primary-dark: #0C0A33;
  --primary-blue: #005491;
  --primary-light: #007BFF;
  --secondary-light: hsl(0 0% 98%);
  --accent-blue: #1982C4;
  --accent-green: #0FAE81;
  --accent-light-green: #00FFB6;
  --gray: #D3D3D3;
  --background: #F0F5F9;
  --text-dark: #1a1a1a;
  --text-light: #666;
  --text-muted: #999;
  --border-light: #E0E0E0;
  --border-dark: #BDBDBD;
  --white: #FFFFFF;
  --black: #000000;
  --toast-success: #27ae60;
  --toast-error: #e74c3c;
  --toast-warning: #f39c12;
  --toast-info: #3498db;
  --toast-default: #6c757d;
  --success: #27AE60;
  --warning: #F39C12;
  --error: #E74C3C;
  --info: #3498DB;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.2);
  --shadow-subtle: 0 4px 12px rgba(0, 0, 0, 0.05);
  --transition-fast: 0.15s ease-in-out;
  --transition-base: 0.2s ease-in-out;
  --transition-slow: 0.3s ease-in-out;
  --transition-slower: 0.5s ease-in-out;
  --transition-smooth: 0.3s var(--ease-elastic);
  --ease-elastic: cubic-bezier(0.4, 0, 0.2, 1);
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 2.5rem;
  --spacing-3xl: 3rem;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;
  --font-xs: 0.75rem;
  --font-sm: 0.875rem;
  --font-base: 1rem;
  --font-lg: 1.125rem;
  --font-xl: 1.25rem;
  --font-2xl: 1.5rem;
  --font-3xl: 1.875rem;
  --font-4xl: 2.25rem;
  --font-5xl: 3rem;
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
}

#components-reconnect-modal {
  display: none !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: "Outfit",'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
  color: #006bb7;
}

img {
  border-radius: var(--radius-full);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: #3b82f6;
  color: #fff;
}

  .btn-primary:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
  }

.btn-secondary {
  background: #fff;
  color: #3b82f6;
  border: 1px solid #3b82f6;
}

  .btn-secondary:hover {
    background: #fff;
    color: #3b82f6;
    border: 1px solid #3b82f6;
  }

input[type=file] {
  background: red;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
  appearance: none;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
  padding-top: 1.1rem;
}

h1:focus {
  outline: none;
}

.valid.modified:not([type=checkbox]) {
  outline: 1px solid #26b050;
}

.invalid {
  outline: 1px solid #e50000;
}

.validation-message {
  color: #e50000;
}

.blazor-error-boundary {
  background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG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NjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
  padding: 1rem 1rem 1rem 3.7rem;
  color: white;
}

  .blazor-error-boundary::after {
    content: "An error has occurred."
  }

.darker-border-checkbox.form-check-input {
  border-color: #929292;
}

.form-content {
  animation: fadeIn var(--transition-base);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-title {
  font-size: var(--font-3xl);
  font-weight: var(--font-bold);
  color: var(--primary-dark);
  margin: 0 0 var(--spacing-sm);
}

.form-subtitle {
  font-size: var(--font-base);
  color: var(--text-light);
  margin: 0 0 var(--spacing-2xl);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.form-label {
  font-size: var(--font-sm);
  font-weight: var(--font-semibold);
  color: var(--text-dark);
}

.form-input {
  padding: var(--spacing-md) var(--spacing-lg);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  font-size: var(--font-base);
  color: var(--text-dark);
  transition: all var(--transition-base);
  background: var(--white);
}

  .form-input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(25, 130, 196, 0.1);
  }

  .form-input::placeholder {
    color: var(--text-muted);
  }

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-sm);
  color: var(--text-dark);
  cursor: pointer;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary-light);
}

.form-link {
  font-size: var(--font-sm);
  color: var(--primary-light);
  text-decoration: none;
  font-weight: var(--font-medium);
  transition: color var(--transition-fast);
}

  .form-link:hover {
    color: var(--primary-blue);
    text-decoration: underline;
  }

.submit-button {
  padding: var(--spacing-md) var(--spacing-xl);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-blue) 100%);
  color: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--font-lg);
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}

  .submit-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }

  .submit-button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
  }

@media (max-width: 640px) {
  .form-title {
    font-size: var(--font-2xl);
  }
}

.toast-container {
  z-index: 1050;
  position: fixed;
  top: 1rem;
  right: 1rem;
  perspective: 1000px;
  overflow-x: hidden;
  padding: 10px;
}

.toast {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  margin-bottom: 1rem;
  width: 350px;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  padding-bottom: 4px;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

  .toast.show {
    display: block;
    opacity: 1;
  }

@keyframes toastDepthIn {
  0% {
    opacity: 0;
    transform: translateZ(-500px) scale(0.5);
  }

  100% {
    opacity: 1;
    transform: translateZ(0) scale(1);
  }
}

@keyframes toastSlideOutRight {
  0% {
    opacity: 1;
    transform: translateX(0);
  }

  100% {
    opacity: 0;
    transform: translateX(120%);
  }
}

.toast-animate-in {
  animation: toastDepthIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.toast-animate-out {
  animation: toastSlideOutRight 0.5s cubic-bezier(0.4, 0, 1, 1) forwards !important;
}

.toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  gap: 0.5rem;
}

.toast-body {
  padding: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: pre-line;
  color: #212529;
}

.toast-time {
  font-size: 0.7rem;
  opacity: 0.7;
  font-weight: 400;
  text-transform: none;
}

.toast-close {
  background: transparent;
  border: none;
  color: inherit;
  opacity: 0.4;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-fast);
  margin-left: 8px;
}

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

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.05);
}

.toast-progress-bar {
  height: 100%;
  width: 100%;
  transition: width 50ms linear;
}

  .toast-success .toast-header {
    background: rgba(39, 174, 96, 0.1);
    color: var(--toast-success);
    border-bottom-color: rgba(39, 174, 96, 0.2);
  }

  .toast-success .toast-progress-bar {
    background: var(--toast-success);
  }

  .toast-error .toast-header {
    background: rgba(231, 76, 60, 0.1);
    color: var(--toast-error);
    border-bottom-color: rgba(231, 76, 60, 0.2);
  }

  .toast-error .toast-progress-bar {
    background: var(--toast-error);
  }

  .toast-warning .toast-header {
    background: rgba(243, 156, 18, 0.1);
    color: var(--toast-warning);
    border-bottom-color: rgba(243, 156, 18, 0.2);
  }

  .toast-warning .toast-progress-bar {
    background: var(--toast-warning);
  }

  .toast-info .toast-header {
    background: rgba(52, 152, 219, 0.1);
    color: var(--toast-info);
    border-bottom-color: rgba(52, 152, 219, 0.2);
  }

  .toast-info .toast-progress-bar {
    background: var(--toast-info);
  }

  .toast-default .toast-header {
    background: rgba(108, 117, 125, 0.1);
    color: var(--toast-default);
    border-bottom-color: rgba(108, 117, 125, 0.2);
  }

  .toast-default .toast-progress-bar {
    background: var(--toast-default);
  }

.me-auto {
  margin-right: auto !important;
}

::-webkit-scrollbar {
  width: 6px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: var(--radius-full);
}

  ::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
  }

.mobile-tab-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  display: flex;
  width: 100%;
  border-top: 1px solid var(--border-light);
  background: var(--white);
  padding: var(--spacing-xs) var(--spacing-sm) calc(var(--spacing-xs) + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-subtle);
}

  .mobile-tab-nav .tab-button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 56px;
    padding: var(--spacing-sm);
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
    text-decoration: none !important;
    color: var(--text-muted);
    font: inherit;
    line-height: 1;
    margin: 0;
    font-size: var(--font-xs);
    font-weight: var(--font-medium);
    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    transition: color var(--transition-fast), background-color var(--transition-fast);
  }

    .mobile-tab-nav .tab-button i {
      font-size: 1.3rem;
      line-height: 1;
    }

    .mobile-tab-nav .tab-button:active {
      background: rgba(0,0,0,0.04);
      border-radius: var(--radius-lg);
    }

    .mobile-tab-nav .tab-button.active {
      color: var(--primary-blue);
      font-weight: var(--font-semibold);
    }

      .mobile-tab-nav .tab-button.active::after {
        content: "";
        position: absolute;
        bottom: 4px;
        left: 50%;
        transform: translateX(-50%);
        width: 18px;
        height: 3px;
        border-radius: var(--radius-full);
        background: var(--primary-blue);
      }

.mobile-tab-extra {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (min-width: 641px) {
  .mobile-tab-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .content-area {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }
}

.mk-404-page {
  min-height: 100vh;
  width: 100%;
  padding: clamp(var(--spacing-lg), 4vw, var(--spacing-3xl));
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 15% 12%, rgba(0, 123, 255, 0.18), transparent 34%), radial-gradient(circle at 85% 88%, rgba(25, 130, 196, 0.18), transparent 32%), var(--background);
  color: var(--text-dark);
}

.mk-404-card {
  width: min(1120px, 100%);
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1fr);
  align-items: center;
  gap: clamp(var(--spacing-xl), 5vw, var(--spacing-3xl));
  padding: clamp(var(--spacing-xl), 5vw, 4rem);
  border: 1px solid var(--border-light);
  border-radius: 32px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mk-404-visual {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mk-404-image {
  width: min(100%, 500px);
  max-height: 560px;
  object-fit: contain;
  border-radius: 28px;
}

.mk-404-content {
  max-width: 560px;
}

  .mk-404-content strong {
    display: block;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-light);
    font-size: clamp(4.5rem, 8vw, 7.5rem);
    line-height: 0.9;
    font-weight: var(--font-extrabold);
    letter-spacing: -0.08em;
  }

  .mk-404-content h1 {
    margin: 0;
    color: var(--primary-dark);
    font-size: clamp(var(--font-3xl), 3.2vw, 3.8rem);
    line-height: 1.02;
    font-weight: var(--font-extrabold);
    letter-spacing: -0.045em;
  }

    .mk-404-content h1::after {
      content: "";
      display: block;
      width: 58px;
      height: 5px;
      margin: var(--spacing-lg) 0;
      border-radius: var(--radius-full);
      background: linear-gradient(90deg, var(--primary-light), var(--accent-blue));
    }

  .mk-404-content p {
    margin: 0;
    max-width: 500px;
    color: var(--text-light);
    font-size: var(--font-lg);
    line-height: 1.7;
  }

.mk-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.mk-404-btn {
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-xl);
  font-size: var(--font-base);
  font-weight: var(--font-bold);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base), border-color var(--transition-base);
}

  .mk-404-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
  }

  .mk-404-btn.primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-blue));
    box-shadow: 0 14px 28px rgba(0, 123, 255, 0.25);
  }

    .mk-404-btn.primary:hover {
      color: var(--white);
    }


@media (max-width: 920px) {
  .mk-404-card {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
  }

  .mk-404-visual {
    min-height: 360px;
  }

  .mk-404-content {
    max-width: 100%;
  }

    .mk-404-content h1::after {
      margin-left: auto;
      margin-right: auto;
    }

  .mk-404-actions {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .mk-404-page {
    padding: var(--spacing-md);
  }

  .mk-404-card {
    padding: var(--spacing-lg);
    border-radius: 24px;
  }

  .mk-404-visual {
    min-height: 300px;
  }

  .mk-404-image {
    max-height: 320px;
  }

  .mk-404-actions {
    flex-direction: column;
  }

  .mk-404-btn {
    width: 100%;
  }
}