/* ==========================================================================
   MICROSOFT DESIGN SYSTEM & TYPOGRAPHY
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@300;400;500;600;700&display=swap');

:root {
  --ms-blue: #0067b8;
  --ms-blue-hover: #005da6;
  --ms-blue-active: #005293;
  --ms-blue-focus: #004578;
  --ms-light-blue: #00a4ef;
  --ms-cyan: #00d2ff;
  --ms-bg-gray: #f3f4f6;
  --ms-card-gray: #f0f4f9;
  --ms-text-dark: #1b1b1b;
  --ms-text-gray: #5c5c5c;
  --ms-text-subtle: #737373;
  --ms-border: #8a8886;
  --ms-border-light: #e1dfdd;
  --ms-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --ms-shadow-elevated: 0 20px 48px rgba(0, 0, 0, 0.28);
  
  --font-segoe: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Segoe UI Web (West European)', Roboto, 'Helvetica Neue', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: var(--font-segoe);
  background-color: #0b1528;
  color: var(--ms-text-dark);
  overflow-x: hidden;
}

/* View Containers */
.view-container {
  display: none;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
}

.view-container.active {
  display: flex;
}

/* ==========================================================================
   VIEW 1: MICROSOFT ENTRA ID SIGN-IN (100% Matching Latest User Request)
   ========================================================================== */

#view-entra {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  min-height: 600px;
  display: none;
  background-color: #ffffff;
  overflow: hidden;
}

#view-entra.active {
  display: flex;
}

/* Entra Left Pane (Wave / Ribbon Section) */
.entra-left-pane {
  position: relative;
  flex: 0 0 52%;
  width: 52%;
  height: 100%;
  min-width: 0;
  box-sizing: border-box;
  background-color: #0c2d68;
  background-image: url('assets/back-wall.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 4vh, 48px) clamp(36px, 3.8vw, 56px);
  z-index: 1;
}

/* Fallback / Enhanced CSS Ribbon Glows */
.entra-left-pane::before {
  display: none;
}

.entra-left-header {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.2vw, 16px);
  padding: 10px 20px 10px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(6, 26, 60, 0.78), rgba(6, 26, 60, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 30px rgba(0, 16, 42, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

/* Login brand lockup: icon + product wordmark */
.login-brand-lockup {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}

.login-brand-title {
  font-size: clamp(19px, 1.7vw, 25px);
  font-weight: 600;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-shadow: 0 2px 12px rgba(0, 16, 40, 0.6), 0 1px 3px rgba(0, 0, 0, 0.45);
}

.login-brand-subtitle {
  font-size: clamp(12px, 0.9vw, 13px);
  font-weight: 500;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0, 16, 40, 0.5);
}

@media (max-width: 480px) {
  .entra-left-header {
    gap: 10px;
  }

  .server-admin-header-logo {
    height: 44px;
    max-width: 52px;
  }

  .login-brand-subtitle {
    display: none;
  }
}

.ms-logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5px;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.ms-logo-grid .square {
  width: 100%;
  height: 100%;
}

.ms-logo-grid .red { background-color: #f25022; }
.ms-logo-grid .green { background-color: #7fba00; }
.ms-logo-grid .blue { background-color: #00a4ef; }
.ms-logo-grid .yellow { background-color: #ffb900; }

.entra-brand-title {
  font-size: 19px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.2px;
  text-shadow: 0 2px 10px rgba(0, 16, 40, 0.7);
}

.entra-hero-content {
  position: relative;
  z-index: 2;
  max-width: 480px;
  margin-top: auto;
  margin-bottom: 0;
  padding-bottom: 0;
}

.entra-hero-content::before {
  content: '';
  position: absolute;
  inset: -38px -90px -34px -38px;
  background: radial-gradient(ellipse at 20% 55%, rgba(3, 17, 42, 0.78) 0%, rgba(3, 17, 42, 0.42) 46%, rgba(3, 17, 42, 0) 72%);
  border-radius: 50%;
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}

.entra-headline {
  font-size: clamp(32px, 3.2vw, 40px);
  font-weight: 600;
  line-height: 1.22;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  text-shadow: 0 2px 6px rgba(0, 8, 24, 0.9), 0 8px 30px rgba(0, 8, 24, 0.75);
}

.entra-description {
  font-size: clamp(14.5px, 1.2vw, 16px);
  font-weight: 500;
  line-height: 1.5;
  color: #ffffff;
  max-width: 440px;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 3px rgba(0, 8, 24, 0.95), 0 4px 18px rgba(0, 8, 24, 0.85);
}

/* Bottom platform logos (Microsoft + Linux) */
.entra-left-footer {
  position: relative;
  z-index: 2;
  margin-top: 34px;
}

.platform-logos {
  display: flex;
  align-items: center;
  gap: 20px;
}

.platform-logo {
  display: block;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 8, 24, 0.45));
}

.platform-logo-ms {
  height: 25px;
}

.platform-logo-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.35);
}

.platform-linux {
  display: flex;
  align-items: center;
  gap: 7px;
}

.platform-logo-tux {
  height: 36px;
}

.platform-linux-label {
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  color: #ffffff;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 3px rgba(0, 8, 24, 0.95), 0 4px 18px rgba(0, 8, 24, 0.75);
}

/* Entra Right Pane (Sign-in form) */
.entra-right-pane {
  position: relative;
  flex: 0 0 48%;
  width: 48%;
  height: 100%;
  min-width: 0;
  box-sizing: border-box;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px clamp(20px, 3.2vw, 48px);
  z-index: 2;
  overflow-y: auto;
}

.entra-form-card {
  width: 100%;
  max-width: 440px;
  min-width: 0;
  margin: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* Authentication Stage Stepper Block: Hidden by default, only .active renders */
.entra-step-block {
  display: none !important;
  width: 100%;
}

.entra-step-block.active {
  display: block !important;
  animation: entraStepFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes entraStepFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ms-brand-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.signin-avatar-center {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 16px 0;
  width: 100%;
}

.signin-groups-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(0, 103, 184, 0.22));
}

.server-admin-form-logo {
  height: clamp(82px, 10vh, 115px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.server-admin-header-logo {
  height: clamp(48px, 6vh, 64px);
  width: auto;
  max-width: 72px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 16px rgba(0, 16, 40, 0.55));
  transition: transform 0.2s ease;
}

.ms-brand-name {
  font-size: 17px;
  font-weight: 600;
  color: #737373;
}

.entra-form-title {
  font-size: 26px;
  font-weight: 600;
  color: var(--ms-text-dark);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.entra-form-subtitle {
  font-size: 15px;
  font-weight: 400;
  color: #1b1b1b;
  margin-bottom: 24px;
}

/* User Account Pill (When on password step) */
.user-identity-pill {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: var(--ms-text-dark);
  margin-bottom: 18px;
  padding: 4px 0;
}

.user-identity-pill.visible {
  display: flex;
}

.back-account-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1b1b1b;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.back-account-btn:hover {
  background: #f3f4f6;
}

/* Input Fields */
.entra-input-group {
  position: relative;
  margin-bottom: 16px;
}

.entra-input {
  width: 100%;
  height: 38px;
  padding: 6px 12px;
  font-family: var(--font-segoe);
  font-size: 15px;
  color: var(--ms-text-dark);
  background-color: #ffffff;
  border: 1px solid #0067b8;
  border-radius: 4px;
  outline: none;
  box-shadow: 0 0 0 1px #0067b8;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.entra-input:focus {
  border-color: #0067b8;
  box-shadow: 0 0 0 1.5px #0067b8;
}

.entra-input::placeholder {
  color: #767676;
  font-weight: 400;
}

.entra-input.error {
  border-color: #a80000;
  box-shadow: 0 0 0 1px #a80000;
}

.error-message {
  display: none;
  color: #a80000;
  font-size: 13px;
  margin-top: 6px;
}

.error-message.visible {
  display: block;
}

/* Password eye toggle */
.password-toggle-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #605e5c;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 2px;
}

.password-toggle-btn:hover {
  color: #1b1b1b;
}

/* Links */
.entra-link {
  font-size: 13.5px;
  color: var(--ms-blue);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 18px;
  cursor: pointer;
}

.entra-link:hover {
  text-decoration: underline;
  color: var(--ms-blue-focus);
}

/* Checkbox Row */
.entra-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #1b1b1b;
  user-select: none;
  cursor: pointer;
}

.custom-checkbox {
  width: 18px;
  height: 18px;
  border: 1px solid #605e5c;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: all 0.15s ease;
}

.custom-checkbox.checked {
  background: var(--ms-blue);
  border-color: var(--ms-blue);
}

.custom-checkbox svg {
  display: none;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.5;
}

.custom-checkbox.checked svg {
  display: block;
}

/* Action Buttons */
.entra-actions-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
  margin-bottom: 22px;
}

.entra-btn-primary {
  min-width: 112px;
  height: 38px;
  padding: 8px 32px;
  background-color: var(--ms-blue);
  color: #ffffff;
  font-family: var(--font-segoe);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.05s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.entra-btn-primary:hover {
  background-color: var(--ms-blue-hover);
}

.entra-btn-primary:active {
  background-color: var(--ms-blue-active);
  transform: translateY(1px);
}

.entra-btn-secondary {
  height: 36px;
  padding: 6px 24px;
  background-color: #cccccc;
  color: #333333;
  font-family: var(--font-segoe);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.entra-btn-secondary:hover {
  background-color: #bfbfbf;
}

/* Entra Bottom Info Card / Right Bottom Branding */
.entra-info-card {
  background-color: #f0f4f9;
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid rgba(0, 103, 184, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.asd-bottom-card {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05) !important;
  padding: 12px 20px !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 16px !important;
}

.asd-bottom-logo {
  height: 60px;
  max-height: 64px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.entra-info-card .shield-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--ms-blue);
}

.entra-info-text {
  display: flex;
  flex-direction: column;
}

.entra-info-text strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--ms-text-dark);
  margin-bottom: 3px;
}

.entra-info-text span {
  font-size: 13px;
  color: var(--ms-text-gray);
  line-height: 1.35;
}

/* ==========================================================================
   VIEW 2: MICROSOFT ADMIN CENTER (Enterprise Login Interface)
   ========================================================================== */

#view-admin {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  display: none;
  background-color: #040916;
  background-image: url('assets/server-datacenter-1080p.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  overflow: hidden;
}

#view-admin.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Center Glowing Cyber Shield Hologram Pedestal */
.central-hologram-visual {
  position: absolute;
  top: 9%;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(220px, 22vw, 340px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.95;
  filter: drop-shadow(0 0 35px rgba(0, 210, 255, 0.55));
}

.hologram-shield-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Smooth dark navy overlay: solid behind expanded left content, transitioning to reveal building */
.admin-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, 
    #070f20 0%, 
    #070f20 42%, 
    rgba(7, 15, 32, 0.95) 58%, 
    rgba(7, 15, 32, 0.65) 74%, 
    rgba(7, 15, 32, 0.25) 88%,
    rgba(7, 15, 32, 0.08) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* 62/38 Optimized Split Layout Wrapper (Shifted Left) */
.admin-layout-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: 100%;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(28px, 4vh, 48px) clamp(36px, 4vw, 72px) clamp(28px, 4vh, 48px) clamp(24px, 2.5vw, 48px);
  gap: clamp(32px, 3.5vw, 64px);
  box-sizing: border-box;
}

/* Left Content Panel (Shifted to Left Edge) */
.admin-left-col {
  flex: 0 0 62%;
  width: 62%;
  max-width: 1060px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
  margin-left: 0;
  padding-left: 0;
}

/* Top Branding (Aligned to exact left margin) */
.admin-brand-top {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
}

.server-admin-brand-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 164, 239, 0.55));
  flex-shrink: 0;
}

.admin-brand-top .ms-logo-grid {
  width: 34px;
  height: 34px;
  gap: 3.5px;
  margin-top: 2px;
}

.admin-titles {
  display: flex;
  flex-direction: column;
}

.admin-main-title {
  font-size: 25px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.admin-subtitle {
  font-size: 15px;
  color: #94a3b8;
  font-weight: 400;
  margin-top: 2px;
}

.cyan-accent-bar {
  width: 52px;
  height: 3.5px;
  background: #00d2ff;
  border-radius: 2px;
  margin-top: 8px;
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.85);
}

/* Middle Section: Hero Headline & Expanded Tiles */
.admin-left-mid {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin: auto 0;
  padding: 18px 0;
}

/* Prominent Main Heading (Expanded font size & impact) */
.admin-hero-heading {
  font-size: clamp(36px, 2.8vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.028em;
  margin-bottom: 14px;
  max-width: 900px;
}

.cyan-gradient-text {
  color: #38bdf8;
  background: linear-gradient(135deg, #38bdf8 0%, #00d2ff 55%, #67e8f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.admin-hero-sub {
  font-size: clamp(15px, 1.15vw, 17px);
  color: #cbd5e1;
  line-height: 1.6;
  max-width: 820px;
  margin-bottom: 34px;
}

/* 8 App Cards Grid (Spacious 4-column x 2-row layout spanning full left width) */
.admin-apps-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.4vw, 20px);
}

.app-card {
  position: relative;
  height: auto;
  min-height: 124px;
  background: rgba(13, 23, 46, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  user-select: none;
  overflow: hidden;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3.5px;
  height: 100%;
  border-radius: 14px 0 0 14px;
}

.app-card.card-accent-purple::before {
  background: #a855f7;
  box-shadow: 0 0 12px #a855f7;
}
.app-card.card-accent-cyan::before {
  background: #00d2ff;
  box-shadow: 0 0 12px #00d2ff;
}
.app-card.card-accent-orange::before {
  background: #f97316;
  box-shadow: 0 0 12px #f97316;
}
.app-card.card-accent-pink::before {
  background: #ec4899;
  box-shadow: 0 0 12px #ec4899;
}
.app-card.card-accent-teal::before {
  background: #06b6d4;
  box-shadow: 0 0 12px #06b6d4;
}
.app-card.card-accent-blue::before {
  background: #3b82f6;
  box-shadow: 0 0 12px #3b82f6;
}
.app-card.card-accent-magenta::before {
  background: #d946ef;
  box-shadow: 0 0 12px #d946ef;
}
.app-card.card-accent-azure::before {
  background: #38bdf8;
  box-shadow: 0 0 12px #38bdf8;
}

.app-card:hover {
  background: rgba(22, 40, 78, 0.92);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 164, 239, 0.35);
}

.app-icon-wrap {
  width: 48px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.app-tile-icon {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 210, 255, 0.4));
  transition: transform 0.22s ease;
}

.app-card:hover .app-tile-icon {
  transform: scale(1.1);
}

.app-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  line-height: 1.25;
}

.app-sub-name {
  font-size: 12.5px;
  font-weight: 500;
  color: #e2e8f0;
  white-space: nowrap;
  line-height: 1.25;
  margin-top: 2px;
}

/* 4 Feature Badges at Bottom with Vertical Dividers */
.admin-features-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.feature-badge {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 12px;
}

.feature-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon-wrap .feat-svg {
  width: 22px;
  height: 22px;
  stroke: #38bdf8;
  color: #38bdf8;
}

.feature-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.22);
}

.feature-label {
  font-size: 12.5px;
  font-weight: 500;
  color: #e2e8f0;
  line-height: 1.35;
}

/* Right Login Panel (35-40% Split - Unshrunk, vertically centered) */
.admin-right-col {
  flex: 0 0 38%;
  width: 38%;
  max-width: 490px;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.admin-floating-card {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 28px;
  padding: clamp(34px, 4.2vh, 44px) clamp(28px, 2.8vw, 38px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 4px 16px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  color: var(--ms-text-dark);
}

.card-header-group {
  text-align: center;
  margin-bottom: 24px;
}

.card-brand-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 8px;
}

.server-admin-card-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 10px rgba(0, 103, 184, 0.22));
}

.card-brand-row .ms-logo-grid {
  width: 24px;
  height: 24px;
  gap: 2.8px;
}

.card-brand-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--ms-text-dark);
  letter-spacing: -0.2px;
}

.card-subtext {
  font-size: 14px;
  color: #605e5c;
  line-height: 1.4;
  margin-top: 4px;
}

/* Form Fields */
.form-field-block {
  margin-bottom: 18px;
}

.field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ms-text-dark);
  margin-bottom: 7px;
}

.field-input-box {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #c7c7c7;
  border-radius: 8px;
  background: #ffffff;
  height: 48px;
  transition: all 0.18s ease;
}

.field-input-box:focus-within {
  border-color: var(--ms-blue);
  box-shadow: 0 0 0 2px rgba(0, 103, 184, 0.25);
}

.field-icon {
  width: 19px;
  height: 19px;
  margin-left: 14px;
  color: #767676;
  flex-shrink: 0;
}

.field-input {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  padding: 0 14px;
  font-family: var(--font-segoe);
  font-size: 15px;
  color: var(--ms-text-dark);
  outline: none;
}

.field-input::placeholder {
  color: #8a8886;
}

.password-eye-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 14px;
  height: 100%;
  color: #605e5c;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.password-eye-btn:hover {
  color: #1b1b1b;
}

/* Checkbox & Forgot link */
.options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 14px;
}

.keep-signed-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ms-text-dark);
  cursor: pointer;
  user-select: none;
}

.forgot-link {
  color: var(--ms-blue);
  text-decoration: none;
  font-weight: 500;
  font-size: 13.5px;
}

.forgot-link:hover {
  text-decoration: underline;
}

/* Sign In Button (Full width) */
.btn-primary-sign-in {
  width: 100%;
  height: 48px;
  background: var(--ms-blue);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-segoe);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.18s ease;
  margin-bottom: 20px;
}

.btn-primary-sign-in:hover {
  background: var(--ms-blue-hover);
  box-shadow: 0 4px 14px rgba(0, 103, 184, 0.35);
}

.btn-primary-sign-in:active {
  background: var(--ms-blue-active);
  transform: translateY(1px);
}

.btn-primary-sign-in svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.btn-primary-sign-in:hover svg {
  transform: translateX(4px);
}

/* OR Divider */
.or-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
}

.or-divider::before,
.or-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e1dfdd;
}

.or-divider span {
  padding: 0 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: #8a8886;
  letter-spacing: 0.5px;
}

/* Microsoft Entra ID SSO Button */
.btn-entra-sso {
  width: 100%;
  height: 48px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: var(--font-segoe);
  font-size: 15px;
  font-weight: 600;
  color: var(--ms-text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.18s ease;
  margin-bottom: 24px;
}

.btn-entra-sso:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-entra-sso .ms-logo-grid {
  width: 20px;
  height: 20px;
}

/* MFA Security Pill */
.mfa-security-pill {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--ms-blue);
  font-weight: 500;
}

.mfa-security-pill svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--ms-blue);
}

/* ==========================================================================
   VIEW 3: LIVE ADMIN CENTER DASHBOARD (Post-Login Portal)
   ========================================================================== */

#view-dashboard {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  display: none;
  background-color: #f3f4f6;
  flex-direction: column;
}

#view-dashboard.active {
  display: flex;
}

.dash-navbar {
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 14px 0 22px;
  margin: 0;
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  background:
    radial-gradient(95% 190% at 6% 135%, rgba(0, 152, 255, 0.4) 0%, rgba(0, 152, 255, 0) 58%),
    radial-gradient(70% 150% at 95% 140%, rgba(0, 150, 255, 0.5) 0%, rgba(0, 150, 255, 0) 62%),
    linear-gradient(102deg, #126cb2 0%, #0b5ca6 28%, #064a92 58%, #023476 100%);
  border-bottom: 1px solid rgba(125, 205, 255, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(108, 198, 255, 0.6),
    0 2px 7px rgba(2, 22, 48, 0.26);
}

.dash-nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.dash-waffle-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.15s ease;
  background: transparent;
  border: none;
  padding: 0;
  flex-shrink: 0;
}

.dash-waffle-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.dash-ms-brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  user-select: none;
}

.dash-brand-module-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 5px rgba(0, 20, 50, 0.35));
  transition: transform 0.2s ease;
}

.dash-ms-brand-group:hover .dash-brand-module-logo {
  transform: scale(1.06);
}

.dash-ms-title-main {
  font-weight: 600;
  font-size: 24px;
  color: #ffffff;
  letter-spacing: -0.4px;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 22, 55, 0.35);
  font-family: var(--font-segoe);
}

.dash-nav-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.38);
  margin: 0 8px;
  flex-shrink: 0;
}

.dash-search-container {
  flex: 0 1 448px;
  max-width: 448px;
  min-width: 150px;
  margin-left: 58px;
  margin-right: auto;
}

.dash-search-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(219, 235, 248, 0.93));
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 4px rgba(0, 25, 55, 0.18);
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.dash-search-box:focus-within {
  background: #ffffff;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.5),
    0 4px 14px rgba(0, 20, 50, 0.25);
}

.dash-search-icon {
  color: #2c6ba0;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.dash-nav-search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #123a5e;
  font-size: 15.5px;
  font-family: var(--font-segoe);
}

.dash-nav-search-input::placeholder {
  color: #3f6f9e;
  opacity: 1;
}

.dash-nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.dash-nav-action-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease;
  padding: 0;
  flex-shrink: 0;
}

.dash-nav-action-btn:hover {
  background: rgba(255, 255, 255, 0.13);
}

.dash-nav-action-btn svg {
  display: block;
}

.dash-btn-icon {
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.dash-nav-badge-count {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  background: #e01b24;
  color: #ffffff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.dash-nav-tenant-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  color: #ffffff;
  padding: 0 20px;
  height: 42px;
  cursor: pointer;
  font-family: var(--font-segoe);
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.dash-nav-tenant-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.dash-tenant-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.1px;
  text-shadow: 0 1px 2px rgba(0, 20, 50, 0.3);
  white-space: nowrap;
}

.dash-asd-nav-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 4px 12px;
  border-radius: 6px;
  min-width: 164px;
  box-shadow: 0 1px 5px rgba(0, 20, 50, 0.3);
  height: 48px;
  flex-shrink: 0;
  cursor: default;
}

.dash-nav-asd-logo {
  height: 40px;
  width: auto;
  max-width: 165px;
  object-fit: contain;
  display: block;
}

.dash-user-menu {
  position: relative;
  flex-shrink: 0;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 6px 4px 6px 8px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  font-family: var(--font-segoe);
  text-align: left;
  user-select: none;
  transition: background 0.15s ease;
}

.user-profile-badge:hover {
  background: rgba(255, 255, 255, 0.1);
}

.user-avatar-wrap {
  position: relative;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.user-profile-avatar-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 4px rgba(0, 20, 50, 0.3);
}

.user-profile-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
  min-width: 0;
}

.user-profile-name {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 20, 50, 0.3);
}

.user-profile-desig {
  font-size: 12px;
  color: rgba(226, 240, 252, 0.88);
  white-space: nowrap;
}

.user-menu-chevron {
  margin-left: 6px;
  color: rgba(255, 255, 255, 0.95);
  flex-shrink: 0;
}

.dash-user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid #e1e7ef;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(3, 25, 54, 0.25);
  padding: 6px;
  display: none;
  z-index: 1300;
}

.dash-user-dropdown.open {
  display: block;
}

.dash-user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  background: none;
  border: none;
  border-radius: 5px;
  color: #1f2937;
  font-size: 13px;
  font-family: var(--font-segoe);
  cursor: pointer;
  text-align: left;
}

.dash-user-dropdown-item:hover {
  background: #eff5fb;
  color: #005a9e;
}

/* App launcher flyout */
.app-launcher {
  position: fixed;
  top: 80px;
  left: 22px;
  width: 700px;
  max-width: calc(100vw - 44px);
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding: 18px 24px 22px;
  background: #ffffff;
  border: 1px solid #e1e5ea;
  border-radius: 10px;
  box-shadow: 0 14px 38px rgba(0, 20, 50, 0.22), 0 2px 8px rgba(0, 20, 50, 0.1);
  z-index: 1350;
  display: none;
  font-family: var(--font-segoe);
  color: #1f2937;
}

.app-launcher.open {
  display: block;
  animation: appLauncherIn 0.16s ease-out;
}

.app-launcher.open.search-mode {
  display: flex;
  flex-direction: column;
  top: 155px;
  bottom: 0;
  left: 343px;
  height: auto;
  max-height: none;
  padding: 24px 40px 28px;
  background: #f3f4f6;
  border-color: #e5e7eb;
  border-radius: 10px 10px 0 0;
}

.app-launcher.search-mode .app-launcher-search {
  height: 46px;
  border-radius: 6px;
}

.app-launcher.search-mode .app-launcher-section-head {
  margin-top: 26px;
}

.app-launcher.search-mode .app-launcher-section-head:nth-of-type(4) {
  margin-top: auto;
}

.app-launcher.search-mode .app-launcher-files {
  padding-bottom: 8px;
}

@keyframes appLauncherIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.app-launcher-search {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 18px;
  background: #ffffff;
  border: 1px solid #e1e5ea;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 20, 50, 0.1);
}

.app-launcher-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: #1f2937;
  font-family: var(--font-segoe);
  font-size: 15px;
}

.app-launcher-search input::placeholder {
  color: #6b7280;
}

.app-launcher-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
}

.app-launcher-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  color: #1f2937;
  font-family: var(--font-segoe);
  font-size: 12.5px;
  cursor: pointer;
}

.app-launcher-more:hover {
  background: #f3f4f6;
}

.app-launcher-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px 4px;
}

.app-launcher-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  background: none;
  border: none;
  border-radius: 6px;
  color: #1f2937;
  font-family: var(--font-segoe);
  font-size: 12.5px;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
}

.app-launcher-tile:hover {
  background: #f3f4f6;
}

.app-launcher-icon {
  width: 36px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-launcher-icon img,
.app-launcher-icon svg {
  max-width: 36px;
  max-height: 34px;
  width: auto;
  height: auto;
  display: block;
}

.app-launcher-files {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 18px;
}

.app-launcher-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
  background: none;
  border: none;
  border-radius: 6px;
  font-family: var(--font-segoe);
  text-align: left;
  cursor: pointer;
  min-width: 0;
}

.app-launcher-file:hover {
  background: #f3f4f6;
}

.app-launcher-file-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.app-launcher-file-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.app-launcher-file-name {
  font-size: 12.5px;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-launcher-file-time {
  font-size: 11px;
  color: #6b7280;
}

@media (max-width: 1100px) {
  .app-launcher-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .app-launcher {
    top: 78px;
    left: 16px;
    max-width: calc(100vw - 32px);
    padding: 16px 16px 18px;
  }

  .app-launcher.open.search-mode {
    top: 78px;
    left: 16px;
    padding: 16px 16px 18px;
    border-radius: 10px;
  }

  .app-launcher-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .app-launcher-files {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .app-launcher-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1680px) {
  .dash-asd-nav-badge,
  .dash-asd-nav-badge + .dash-nav-divider {
    display: none;
  }
}

@media (max-width: 1500px) {
  .dash-search-container {
    margin-left: 24px;
  }

  .dash-nav-search-input {
    font-size: 14px;
  }

  .dash-ms-title-main {
    font-size: 21px;
  }

  .dash-nav-tenant-btn {
    padding: 0 14px;
  }

  .user-menu-chevron {
    margin-left: 6px;
  }
}

@media (max-width: 1366px) {
  .dash-search-container {
    margin-left: 10px;
  }

  .dash-search-box {
    height: 42px;
    padding: 0 16px;
    gap: 10px;
  }

  .dash-nav-search-input {
    font-size: 13.5px;
  }

  .dash-ms-title-main {
    font-size: 19px;
  }

  .dash-nav-action-btn[title="Messages"],
  .dash-nav-action-btn[title="Directory users"] {
    display: none;
  }
}



@media (max-width: 1080px) {
  .dash-nav-divider {
    display: none;
  }

  .dash-search-container {
    min-width: 120px;
  }

  .user-profile-meta {
    display: none;
  }

  .user-menu-chevron {
    margin-left: 0;
  }
}

.dash-main-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.dash-sidebar {
  width: 250px;
  background: #ffffff;
  margin: 10px 0 10px 16px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 14px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  height: calc(100vh - 72px);
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  margin: 3px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sidebar-item:hover, .sidebar-item.active {
  background: #eef5fc;
  color: var(--ms-blue);
  font-weight: 600;
  border-left: none;
}

.dash-content-area {
  flex: 1;
  min-width: 0;
  padding: 24px 32px 32px 28px;
  overflow-y: auto;
  overflow-x: hidden;
  height: calc(100vh - 110px);
}

.dash-welcome-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.dash-brand-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}


.dash-welcome-left {
  display: flex;
  align-items: center;
  gap: 22px;
}

.dash-welcome-logo-left {
  height: 96px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
}

.dash-welcome-right-badge {
  display: flex;
  align-items: center;
  background: #ffffff;
  padding: 14px 28px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.dash-welcome-logo-right {
  height: 90px;
  width: auto;
  max-width: 380px;
  object-fit: contain;
  display: block;
}

.dash-welcome-title {
  font-size: 26px;
  font-weight: 600;
  color: #111827;
}

.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.dash-stat-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

.stat-header {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.stat-sub {
  font-size: 12px;
  color: #10b981;
}

/* Dashboard Quick Launch Grid */
.dash-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.dash-service-tile {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dash-service-tile:hover {
  border-color: var(--ms-blue);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* ==========================================================================
   MODAL / POPUP OVERLAYS
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: #ffffff;
  border-radius: 16px;
  max-width: 460px;
  width: 100%;
  padding: 32px;
  box-shadow: var(--ms-shadow-elevated);
  position: relative;
  animation: modalPop 0.22s ease-out;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 22px;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
}

.modal-title {
  font-size: 22px;
  font-weight: 600;
  color: #1b1b1b;
  margin-bottom: 8px;
}

.modal-body {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.5;
  margin-bottom: 24px;
}

/* ==========================================================================
   RESPONSIVENESS (1920x1080 Optimized, Laptops, Tablets, Mobile)
   ========================================================================== */

@media (min-width: 1920px) {
  .admin-layout-wrapper {
    max-width: 100%;
    margin: 0;
    padding: 48px 64px 48px 48px;
    gap: 72px;
  }

  .admin-left-col {
    max-width: 1100px;
    margin-left: 0;
    padding-left: 0;
  }

  .admin-hero-heading {
    font-size: 52px;
  }

  .admin-hero-sub {
    font-size: 17.5px;
    max-width: 860px;
  }

  .admin-apps-grid {
    gap: 20px;
  }

  .app-card {
    height: 136px;
  }

  .app-icon-wrap {
    width: 54px;
    height: 54px;
  }

  .app-name {
    font-size: 14px;
  }

  .admin-right-col {
    max-width: 500px;
  }

  .admin-floating-card {
    max-width: 490px;
    padding: 44px 40px;
  }
}

@media (max-width: 1440px) {
  .admin-layout-wrapper {
    padding: 32px 48px;
    gap: 48px;
  }

  .admin-left-col {
    max-width: 860px;
  }

  .admin-hero-heading {
    font-size: 38px;
  }

  .app-card {
    height: 118px;
  }

  .app-icon-wrap {
    width: 44px;
    height: 44px;
  }

  .admin-right-col {
    max-width: 460px;
  }

  .admin-floating-card {
    padding: 36px 30px;
  }
}

@media (max-width: 1024px) {
  #view-admin {
    height: auto;
    min-height: 100vh;
    max-height: none;
    overflow-y: auto;
  }

  /* Tablet Breakpoint (768px - 1024px): flexible panel proportions */
  #view-entra {
    flex-direction: row;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
  }
  
  .entra-left-pane {
    flex: 0 0 46%;
    width: 46%;
    min-height: auto;
    padding: 28px 24px 32px;
  }

  .entra-hero-content {
    padding-bottom: 0;
  }

  .entra-left-footer {
    margin-top: 20px;
  }

  .platform-logo-ms {
    height: 20px;
  }

  .platform-logo-tux {
    height: 28px;
  }

  .platform-linux-label {
    font-size: 16px;
  }

  .entra-headline {
    font-size: clamp(22px, 2.6vw, 28px);
    margin-bottom: 12px;
  }

  .entra-description {
    font-size: 13.5px;
    line-height: 1.45;
    max-width: 100%;
  }
  
  .entra-right-pane {
    flex: 0 0 54%;
    width: 54%;
    padding: 24px clamp(14px, 2vw, 24px) 28px;
    overflow-y: auto;
  }

  .entra-form-card {
    max-width: 420px;
    margin: auto;
  }

  .admin-layout-wrapper {
    flex-direction: column;
    padding: 40px 24px;
    gap: 44px;
    height: auto;
    min-height: 100vh;
    justify-content: flex-start;
  }

  .admin-left-col {
    max-width: 640px;
    width: 100%;
    height: auto;
    gap: 32px;
  }

  .admin-right-col {
    width: 100%;
    max-width: 480px;
    justify-content: center;
  }
}

/* Mobile Breakpoint (<768px): clean single-column layout per specification */
@media (max-width: 767px) {
  #view-entra {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    background-color: #ffffff;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .entra-left-pane {
    display: none !important; /* Clean single-column layout with left panel hidden per specification */
  }

  .entra-right-pane {
    flex: 1 1 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100vh;
    padding: 28px 20px 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: visible;
  }

  .entra-form-card {
    max-width: 100%;
    width: 100%;
    margin: auto;
    padding: 0;
  }

  .signin-avatar-center {
    margin-bottom: 14px;
  }

  .signin-groups-icon {
    width: 64px;
    height: 64px;
  }

  .entra-form-title {
    font-size: 24px;
  }

  .entra-form-subtitle {
    font-size: 14.5px;
    margin-bottom: 18px;
  }

  .entra-actions-row {
    margin-bottom: 20px;
  }
}

@media (max-width: 640px) {
  .admin-apps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .admin-features-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .feature-badge {
    width: 100%;
  }

  .dash-stats-grid,
  .dash-services-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}


/* ==========================================================================
   MFA & MANDATORY PASSWORD CHANGE FLOW STYLES
   ========================================================================== */
.mfa-prompt-card {
  background: #f0f7ff;
  border: 1px solid #c7e0f4;
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.mfa-prompt-icon {
  width: 24px;
  height: 24px;
  color: #0078d4;
  flex-shrink: 0;
  margin-top: 2px;
}

.mfa-prompt-text {
  font-size: 13px;
  color: #242424;
  line-height: 1.45;
}

.mfa-prompt-text strong {
  color: #005a9e;
  font-weight: 600;
}

.mfa-otp-banner {
  background: #eff6fc;
  border-left: 3px solid #0078d4;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #004578;
  border-radius: 0 4px 4px 0;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.otp-copy-btn {
  background: #ffffff;
  border: 1px solid #c7e0f4;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  color: #0078d4;
  font-weight: 600;
}

.otp-copy-btn:hover {
  background: #0078d4;
  color: #ffffff;
}

.mfa-code-input {
  letter-spacing: 6px;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

.pw-req-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px 0;
  font-size: 12px;
  color: #616161;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pw-req-list li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pw-req-list li.valid {
  color: #107c41;
}

.pw-req-list li.valid svg {
  stroke: #107c41;
}

.sql-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e6f4ea;
  color: #137333;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 600;
  margin-top: 6px;
}

.sql-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #137333;
  box-shadow: 0 0 6px rgba(19, 115, 51, 0.6);
}

.workloads-sql-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-top: 16px;
}

.workloads-sql-table th {
  background: #f9fafb;
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  text-transform: uppercase;
  border-bottom: 1px solid #e5e7eb;
}

.workloads-sql-table td {
  padding: 12px 16px;
  font-size: 13.5px;
  color: #1f2937;
  border-bottom: 1px solid #f3f4f6;
}

.workloads-sql-table tr:hover {
  background: #f8fafc;
}


/* ==========================================================================
   MICROSOFT AUTHENTICATOR QR CODE SETUP STYLES
   ========================================================================== */
.mfa-authenticator-card {
  background: #ffffff;
  border: 1px solid #e1dfdd;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1.6px 3.6px rgba(0, 0, 0, 0.08);
}

.mfa-setup-title {
  font-size: 16px;
  font-weight: 600;
  color: #1b1b1b;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.mfa-setup-subtext {
  font-size: 13px;
  color: #484644;
  line-height: 1.45;
  margin-bottom: 14px;
}

.mfa-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid #edebe9;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 14px;
}

.mfa-qr-img {
  width: 200px;
  height: 200px;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  image-rendering: pixelated;
}

.mfa-cant-scan-btn {
  background: none;
  border: none;
  color: #0067b8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  text-decoration: underline;
  padding: 4px 8px;
}

.mfa-cant-scan-btn:hover {
  color: #004578;
}

.mfa-manual-details {
  width: 100%;
  margin-top: 10px;
  background: #ffffff;
  border: 1px solid #d2d0ce;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 12px;
}

.mfa-manual-field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.mfa-manual-field:last-child {
  margin-bottom: 0;
}

.mfa-manual-label {
  color: #605e5c;
  font-size: 12px;
  min-width: 80px;
}

.mfa-manual-val {
  font-weight: 600;
  color: #323130;
}

.mfa-secret-code {
  font-family: Consolas, monospace;
  font-weight: 700;
  color: #0078d4;
  letter-spacing: 1.5px;
  font-size: 12.5px;
  word-break: break-all;
}

.mfa-input-label {
  font-size: 13px;
  font-weight: 600;
  color: #323130;
  margin-bottom: 6px;
}


/* Smart MFA Verification Screen Styles */
.mfa-smart-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f0f7ff;
  border: 1px solid #c7e0f4;
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.mfa-smart-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 120, 212, 0.15);
  border: 1px solid #d0e7ff;
  flex-shrink: 0;
}

.mfa-verify-prompt-text {
  font-size: 13.5px;
  color: #323130;
  line-height: 1.45;
  margin-bottom: 12px;
}

.mfa-sublink-btn {
  background: none;
  border: none;
  color: #0067b8;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 2px 0;
  text-decoration: underline;
}

.mfa-sublink-btn:hover {
  color: #004578;
}

/* ==========================================================================
   MULTI-CLIENT SERVER & GROUPS MODULE (AZURE PORTAL THEMED)
   ========================================================================== */

.server-module-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 16px;
}

.azure-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #605e5c;
  margin-bottom: 4px;
}

.azure-breadcrumb a, .azure-breadcrumb span.link {
  color: #0078d4;
  cursor: pointer;
  text-decoration: none;
}

.azure-breadcrumb a:hover, .azure-breadcrumb span.link:hover {
  text-decoration: underline;
}

.server-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.azure-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0078d4;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 120, 212, 0.25);
  transition: all 0.15s ease;
}

.azure-btn-primary:hover {
  background: #106ebe;
  box-shadow: 0 4px 10px rgba(0, 120, 212, 0.35);
  transform: translateY(-1px);
}

.azure-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #323130;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.azure-btn-secondary:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.azure-btn-manage {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0078d4;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.azure-btn-manage:hover {
  background: #005a9e;
}

.azure-btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #a80000;
  border: 1px solid #f8bbd0;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.azure-btn-danger:hover {
  background: #fde7e9;
  border-color: #e57373;
}

/* KPI Cards (6 cards in grid) */
.azure-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 1400px) {
  .azure-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.azure-kpi-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 18px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.azure-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.kpi-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bg-blue-subtle { background: #e0f2fe; }
.bg-indigo-subtle { background: #ede9fe; }
.bg-emerald-subtle { background: #dcfce7; }
.bg-amber-subtle { background: #fef3c7; }
.bg-rose-subtle { background: #fee2e2; }
.bg-slate-subtle { background: #f1f5f9; }

.kpi-label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.kpi-value {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
  margin-top: 2px;
}

.kpi-sub {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}

.text-emerald { color: #107c41 !important; }
.text-amber { color: #d83b01 !important; }
.text-rose { color: #a80000 !important; }
.text-slate { color: #605e5c !important; }

/* Secondary Contextual Tabs Bar */
.azure-tab-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.azure-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #4b5563;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.azure-tab:hover {
  background: #f3f4f6;
  color: #111827;
}

.azure-tab.active {
  background: #0078d4;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 120, 212, 0.25);
}

.azure-tab-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
}

.azure-tab.active .azure-tab-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Toolbar & Filters */
.azure-filter-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 7px 14px;
  width: 360px;
  max-width: 100%;
}

.filter-search-box input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 13px;
  color: #111827;
  font-family: inherit;
}

.filter-search-box input::placeholder {
  color: #9ca3af;
}

.filter-select-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.azure-select {
  padding: 7px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
  font-size: 13px;
  color: #374151;
  outline: none;
  cursor: pointer;
}

.azure-select:focus {
  border-color: #0078d4;
}

/* Azure Table Container */
.azure-table-container {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  overflow-x: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  margin-bottom: 24px;
}

.azure-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.azure-data-table thead th {
  background: #f9fafb;
  color: #374151;
  font-weight: 600;
  padding: 12px 12px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.azure-data-table tbody td {
  padding: 13px 12px;
  border-bottom: 1px solid #f3f4f6;
  color: #1f2937;
  vertical-align: middle;
}

.azure-data-table tbody tr:hover {
  background: #f8fafc;
}

.azure-data-table tbody tr:last-child td {
  border-bottom: none;
}

/* Status Badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.badge-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.badge-status.running {
  background: #dff6dd;
  color: #107c41;
  border: 1px solid #b3e5b3;
}
.badge-status.running::before { background: #107c41; }

.badge-status.warning {
  background: #fff4ce;
  color: #d83b01;
  border: 1px solid #ffe082;
}
.badge-status.warning::before { background: #d83b01; }

.badge-status.critical {
  background: #fde7e9;
  color: #a80000;
  border: 1px solid #f8bbd0;
}
.badge-status.critical::before { background: #a80000; }

.badge-status.offline {
  background: #edebe9;
  color: #605e5c;
  border: 1px solid #e1dfdd;
}
.badge-status.offline::before { background: #605e5c; }

.badge-status.active {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.badge-status.active::before { background: #15803d; }

.badge-status.inactive {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}
.badge-status.inactive::before { background: #9ca3af; }

/* Cloud Provider Badges */
.cloud-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 600;
}

.cloud-pill.azure {
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.cloud-pill.aws {
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.cloud-pill.gcp {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.cloud-pill.onprem {
  background: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

/* Client Workspace Header & Cards */
.client-workspace-header {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.client-workspace-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.client-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: #f9fafb;
  border-radius: 10px;
  padding: 16px;
  border: 1px solid #e5e7eb;
}

@media (max-width: 1024px) {
  .client-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.client-info-item {
  display: flex;
  flex-direction: column;
}

.client-info-label {
  font-size: 11.5px;
  color: #6b7280;
  text-transform: uppercase;
  font-weight: 500;
}

.client-info-val {
  font-size: 13.5px;
  color: #111827;
  font-weight: 600;
  margin-top: 2px;
}

/* Client Workspace Metrics Summary */
.client-metric-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 20px;
}

@media (max-width: 1200px) {
  .client-metric-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

.client-metric-box {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 16px;
  text-align: left;
}

.client-metric-box .label {
  font-size: 11.5px;
  color: #6b7280;
  font-weight: 500;
}

.client-metric-box .val {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin-top: 2px;
}

/* Server Groups Cards Grid */
.server-groups-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1200px) {
  .server-groups-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .server-groups-grid {
    grid-template-columns: 1fr;
  }
}

.server-group-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.server-group-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border-color: #0078d4;
}

.group-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.group-client-badge {
  font-size: 11.5px;
  font-weight: 600;
  color: #0078d4;
  background: #e0f2fe;
  padding: 2px 8px;
  border-radius: 4px;
}

.group-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin-top: 4px;
}

.group-card-desc {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 16px;
  line-height: 1.4;
}

.group-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f3f4f6;
  padding-top: 12px;
}

.group-server-count {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Modals */
.azure-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.azure-modal-backdrop.open {
  display: flex;
}

.azure-modal {
  background: #ffffff;
  border-radius: 14px;
  width: 620px;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.azure-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9fafb;
}

.azure-modal-title {
  font-size: 17px;
  font-weight: 600;
  color: #111827;
}

.azure-modal-close {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.azure-modal-close:hover {
  background: #e5e7eb;
  color: #111827;
}

.azure-modal-body {
  padding: 24px;
  overflow-y: auto;
}

.azure-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.modal-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.modal-form-grid .full-span {
  grid-column: span 2;
}

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

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

.form-input, .form-select, .form-textarea {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13.5px;
  color: #111827;
  outline: none;
  font-family: inherit;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: #0078d4;
  box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.15);
}

.form-input:disabled {
  background: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
}

.form-textarea {
  min-height: 70px;
  resize: vertical;
}

/* Action button icons in table */
.tbl-act-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 4px;
  color: #6b7280;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tbl-act-btn:hover {
  background: #f3f4f6;
  color: #111827;
}

.tbl-act-btn.delete:hover {
  background: #fde7e9;
  color: #a80000;
}

/* ==========================================================================
   MODULE 3: SECURITY & IDENTITY MANAGEMENT (AZURE PORTAL ENTERPRISE THEME)
   ========================================================================== */

.sec-module-layout {
  display: flex;
  gap: 20px;
  margin-top: 18px;
  align-items: flex-start;
}

/* Dedicated Contextual Secondary Sidebar */
.sec-subnav {
  width: 240px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.sec-subnav-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #9ca3af;
  padding: 8px 12px 4px 12px;
}

.sec-subnav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  margin-bottom: 2px;
}

.sec-subnav-item:hover {
  background: #f3f4f6;
  color: #111827;
}

.sec-subnav-item.active {
  background: #e8f3fc;
  color: #0078d4;
  font-weight: 600;
}

.sec-subnav-item.active svg {
  stroke: #0078d4;
}

.sec-subnav-badge {
  margin-left: auto;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
}

.sec-subnav-item.active .sec-subnav-badge {
  background: #0078d4;
  color: #ffffff;
}

/* Secondary Main Content Area */
.sec-main-content {
  flex: 1;
  min-width: 0;
}

.sec-pane {
  display: none;
  animation: fadeIn 0.2s ease-out;
}

.sec-pane.active {
  display: block;
}

/* Entra admin center page chrome */
.sec-title-more {
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: #605e5c;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sec-title-more:hover {
  background: #f3f2f1;
  color: #201f1e;
}

.sec-tab-strip {
  display: flex;
  align-items: stretch;
  gap: 2px;
  background: #ffffff;
  border: 1px solid #edebe9;
  border-bottom: 1px solid #e1dfdd;
  border-radius: 8px 8px 0 0;
  padding: 0 10px;
  margin-bottom: 18px;
  overflow-x: auto;
}

.sec-tab {
  border: none;
  background: transparent;
  padding: 10px 12px 9px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  color: #323130;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.sec-tab:hover {
  background: #f3f2f1;
}

.sec-tab.active {
  color: #0078d4;
  font-weight: 600;
  border-bottom-color: #0078d4;
}

.entra-whats-new {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #edebe9;
  border-left: 4px solid #0078d4;
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 20px;
}

.entra-whats-new-icon {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: #eff6fc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.entra-security-alerts {
  background: #ffffff;
  border: 1px solid #edebe9;
  border-radius: 6px;
  margin-bottom: 20px;
  overflow: hidden;
}

.entra-security-alerts-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #edebe9;
}

.entra-alert-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.entra-alert-table th {
  text-align: left;
  font-weight: 600;
  color: #323130;
  padding: 9px 16px;
  background: #faf9f8;
  border-bottom: 1px solid #edebe9;
}

.entra-alert-table td {
  padding: 9px 16px;
  border-bottom: 1px solid #f3f2f1;
  color: #323130;
}

.entra-alert-table tr:last-child td {
  border-bottom: none;
}

.entra-alert-table a {
  color: #0078d4;
  text-decoration: none;
}

.entra-alert-table a:hover {
  text-decoration: underline;
}

@media (min-width: 1101px) {
  .sec-subnav {
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
  }
}

@media (max-width: 900px) {
  .entra-whats-new {
    flex-wrap: wrap;
  }
  .entra-alert-table {
    display: block;
    overflow-x: auto;
  }
}


/* Security KPI Cards (5 Cards) */
.sec-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.sec-kpi-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sec-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
}

.sec-kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.sec-kpi-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6b7280;
}

.sec-kpi-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sec-kpi-val {
  font-size: 26px;
  font-weight: 700;
  color: #111827;
  line-height: 1.1;
  margin-bottom: 4px;
}

.sec-kpi-sub {
  font-size: 11.5px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #6b7280;
}

/* Two Column Analytics Grid */
.sec-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}

.sec-card-box {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sec-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}

.sec-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* User Access Donut Chart */
.donut-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
}

.donut-chart-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}

.donut-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.donut-center-val {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  line-height: 1;
}

.donut-center-lbl {
  font-size: 10.5px;
  color: #6b7280;
  text-transform: uppercase;
  margin-top: 2px;
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.donut-legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.1s ease;
}

.donut-legend-row:hover {
  background: #f9fafb;
}

.donut-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

/* Sign-in Activity Visual */
.signin-stats-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.signin-stat-pill {
  flex: 1;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
}

.signin-stat-pill .lbl {
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  font-weight: 600;
}

.signin-stat-pill .val {
  font-size: 18px;
  font-weight: 700;
  margin-top: 2px;
}

/* Security Posture Banner */
.posture-score-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #091e42 0%, #004c87 100%);
  color: #ffffff;
  padding: 18px 22px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.posture-score-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  border: 4px solid #10b981;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.posture-score-circle .score {
  font-size: 22px;
  font-weight: 800;
  color: #10b981;
  line-height: 1;
}

.posture-score-circle .pct {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.8);
}

.posture-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.posture-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 13px;
}

.posture-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.posture-status-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}

.posture-status-tag.pass {
  background: #dff6dd;
  color: #107c41;
}

.posture-status-tag.warn {
  background: #fff4ce;
  color: #8f6200;
}

/* RBAC Roles Matrix */
.rbac-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.rbac-role-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 3px solid #0078d4;
}

.rbac-role-card.privileged {
  border-top-color: #d83b01;
}

.rbac-role-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.rbac-role-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #111827;
}

.rbac-role-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.35;
  margin-bottom: 12px;
}

.rbac-role-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #f3f4f6;
  font-size: 11.5px;
}

/* User & Audit Status Badges */
.badge-sec-user {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 12px;
}

.badge-sec-user.active {
  background: #dff6dd;
  color: #107c41;
}

.badge-sec-user.pending {
  background: #fff4ce;
  color: #8f6200;
}

.badge-sec-user.blocked {
  background: #fde7e9;
  color: #a80000;
}

.badge-sec-user.disabled {
  background: #f3f4f6;
  color: #6b7280;
}

.badge-sec-user.privileged {
  background: #fdf3e8;
  color: #d83b01;
  border: 1px solid #f5cfaf;
}

.badge-audit-res {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.badge-audit-res.success {
  background: #dff6dd;
  color: #107c41;
}

.badge-audit-res.failed {
  background: #fde7e9;
  color: #a80000;
}

.badge-audit-res.suspicious {
  background: #fff4ce;
  color: #8f6200;
}

.badge-audit-res.blocked {
  background: #f3e5f5;
  color: #6a1b9a;
}

.badge-audit-res.warning {
  background: #feefc3;
  color: #b06000;
}

/* ==========================================================================
   MODULE 4: SERVICE HEALTH MONITORING (AZURE PORTAL ENTERPRISE THEME)
   ========================================================================== */

.health-module-layout {
  display: flex;
  gap: 20px;
  margin-top: 18px;
  align-items: flex-start;
}

/* Contextual Secondary Sidebar (8 Sub-sections) */
.health-subnav {
  width: 240px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.health-subnav-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #9ca3af;
  padding: 8px 12px 4px 12px;
}

.health-subnav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  margin-bottom: 2px;
}

.health-subnav-item:hover {
  background: #f3f4f6;
  color: #111827;
}

.health-subnav-item.active {
  background: #eff6ff;
  color: #0078d4;
  font-weight: 600;
}

.health-subnav-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  background: #e5e7eb;
  color: #374151;
}

.health-subnav-item.active .health-subnav-badge {
  background: #dbeafe;
  color: #0078d4;
}

.health-subnav-badge.danger {
  background: #fde7e9;
  color: #a80000;
}

.health-subnav-badge.warning {
  background: #fff4ce;
  color: #8f6200;
}

.health-main-workspace {
  flex: 1;
  min-width: 0;
}

.health-pane {
  display: none;
}

.health-pane.active {
  display: block;
}

/* 5 KPI Cards Grid */
.health-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

@media (max-width: 1400px) {
  .health-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.health-kpi-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
}

.health-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.health-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.health-kpi-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #6b7280;
}

.health-kpi-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.health-kpi-val {
  font-size: 26px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.5px;
}

.health-kpi-sub {
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Auto Refresh Pill */
.health-autorefresh-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  color: #166534;
  cursor: pointer;
  transition: all 0.15s ease;
}

.health-autorefresh-pill:hover {
  background: #dcfce7;
}

.health-autorefresh-pill.paused {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.health-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: health-pulse 2s infinite;
}

.health-autorefresh-pill.paused .health-pulse-dot {
  background: #ef4444;
  animation: none;
}

@keyframes health-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Analytics Row (Donut & Availability Trend) */
.health-analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 20px;
  margin-bottom: 24px;
}

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

.health-analytics-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.health-analytics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}

.health-analytics-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Category Donut & Breakdown */
.health-donut-wrapper {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 0;
}

.health-donut-svg {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}

.health-category-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.health-category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: #f9fafb;
  border-radius: 6px;
  font-size: 12.5px;
}

.health-category-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
  margin-right: 6px;
}

/* Availability & Latency Trend Bars */
.health-uptime-strip {
  display: flex;
  gap: 3px;
  margin: 16px 0;
  height: 38px;
  align-items: flex-end;
  background: #f9fafb;
  padding: 6px;
  border-radius: 8px;
}

.health-uptime-bar {
  flex: 1;
  background: #107c41;
  border-radius: 3px;
  min-height: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

.health-uptime-bar:hover {
  filter: brightness(1.15);
  transform: scaleY(1.08);
}

.health-uptime-bar.degraded {
  background: #ffaa44;
}

.health-uptime-bar.outage {
  background: #d83b01;
}

/* Health Status Badges */
.badge-health {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 12px;
}

.badge-health.healthy {
  background: #dff6dd;
  color: #107c41;
}

.badge-health.degraded {
  background: #fff4ce;
  color: #8f6200;
}

.badge-health.critical, .badge-health.offline {
  background: #fde7e9;
  color: #a80000;
}

.badge-health.maintenance {
  background: #e0f2fe;
  color: #0284c7;
}

/* Incident Severity Badges */
.badge-severity {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-severity.critical {
  background: #fde7e9;
  color: #a80000;
  border: 1px solid #f8b4b4;
}

.badge-severity.high {
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.badge-severity.medium {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-severity.low {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

/* Incident Status Badges */
.badge-inc-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 12px;
}

.badge-inc-status.investigating {
  background: #f3e8ff;
  color: #7e22ce;
}

.badge-inc-status.identified {
  background: #fef3c7;
  color: #b45309;
}

.badge-inc-status.monitoring {
  background: #e0f2fe;
  color: #0369a1;
}

.badge-inc-status.resolved {
  background: #dcfce7;
  color: #15803d;
}

/* ==========================================================================
   MODULE 4B: DEDICATED MONITORING & ALERTS MODULE (AZURE MONITOR THEME)
   ========================================================================== */
.mon-module-layout {
  display: flex;
  gap: 20px;
  margin-top: 18px;
  align-items: flex-start;
}

.mon-subnav {
  width: 240px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.mon-subnav-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #9ca3af;
  padding: 8px 12px 4px 12px;
}

.mon-subnav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  margin-bottom: 3px;
}

.mon-subnav-item:hover {
  background: #f3f4f6;
  color: #111827;
}

.mon-subnav-item.active {
  background: #eff6ff;
  color: #0078d4;
  font-weight: 600;
}

.mon-subnav-item svg,
.mon-subnav-item img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.mon-subnav-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
  background: #f3f4f6;
  color: #4b5563;
}

.mon-subnav-badge.danger {
  background: #fde7e9;
  color: #a80000;
}

.mon-subnav-badge.warning {
  background: #fff4ce;
  color: #8f6200;
}

.mon-main-workspace {
  flex: 1;
  min-width: 0;
}

.mon-pane {
  display: none;
}

.mon-pane.active {
  display: block;
}

.mon-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

@media (max-width: 1400px) {
  .mon-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.mon-kpi-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
}

.mon-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.mon-metric-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
}

.mon-action-group-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

/* ==========================================================================
   MODULE 4C: DEDICATED BACKUP & RECOVERY MODULE (AZURE RECOVERY VAULT THEME)
   ========================================================================== */
.backup-module-layout {
  display: flex;
  gap: 20px;
  margin-top: 18px;
  align-items: flex-start;
}

.backup-subnav {
  width: 240px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.backup-subnav-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #9ca3af;
  padding: 8px 12px 4px 12px;
}

.backup-subnav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  margin-bottom: 3px;
}

.backup-subnav-item:hover {
  background: #f3f4f6;
  color: #111827;
}

.backup-subnav-item.active {
  background: #eff6ff;
  color: #0078d4;
  font-weight: 600;
}

.backup-subnav-item svg,
.backup-subnav-item img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.backup-subnav-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
  background: #f3f4f6;
  color: #4b5563;
}

.backup-subnav-badge.success {
  background: #dcfce7;
  color: #15803d;
}

.backup-main-workspace {
  flex: 1;
  min-width: 0;
}

.backup-pane {
  display: none;
}

.backup-pane.active {
  display: block;
}

.backup-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

@media (max-width: 1400px) {
  .backup-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.backup-vault-stat-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
}

/* ==========================================================================
   MODULES 4D, 4E, 4F: DEDICATED PATCHING, APPLICATIONS & REPORTS MODULES
   ========================================================================== */
.patch-module-layout, .apps-module-layout, .reports-module-layout {
  display: flex;
  gap: 20px;
  margin-top: 18px;
  align-items: flex-start;
}

.patch-subnav, .apps-subnav, .reports-subnav {
  width: 240px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.patch-subnav-header, .apps-subnav-header, .reports-subnav-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #9ca3af;
  padding: 8px 12px 4px 12px;
}

.patch-subnav-item, .apps-subnav-item, .reports-subnav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  margin-bottom: 3px;
}

.patch-subnav-item:hover, .apps-subnav-item:hover, .reports-subnav-item:hover {
  background: #f3f4f6;
  color: #111827;
}

.patch-subnav-item.active, .apps-subnav-item.active, .reports-subnav-item.active {
  background: #eff6ff;
  color: #0078d4;
  font-weight: 600;
}

.patch-subnav-item svg, .apps-subnav-item svg, .reports-subnav-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.patch-main-workspace, .apps-main-workspace, .reports-main-workspace {
  flex: 1;
  min-width: 0;
  width: 100%;
}

/* Responsive Table Wrapper - Strictly isolates table horizontal scroll */
.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.azure-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.azure-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.azure-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.azure-table tbody tr:hover {
  background: #f8fafc;
}

.audit-table-row {
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.audit-table-row:hover td {
  background-color: #f1f5f9 !important;
}

.azure-btn-danger {
  background: #dc2626;
  color: #ffffff;
  border: 1px solid #b91c1c;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(220, 38, 38, 0.2);
}

.azure-btn-danger:hover {
  background: #b91c1c;
  border-color: #991b1b;
  box-shadow: 0 3px 6px rgba(220, 38, 38, 0.35);
  transform: translateY(-1px);
}

.azure-btn-danger:active {
  background: #991b1b;
  transform: translateY(0);
}

.azure-table tbody tr:last-child td {
  border-bottom: none;
}

.patch-pane, .apps-pane, .reports-pane {
  display: none;
}

.patch-pane.active, .apps-pane.active, .reports-pane.active {
  display: block;
}

.patch-kpi-grid, .apps-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.reports-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

@media (max-width: 1400px) {
  .patch-kpi-grid, .apps-kpi-grid, .reports-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .patch-module-layout, .apps-module-layout, .reports-module-layout {
    flex-direction: column;
  }
  .patch-subnav, .apps-subnav, .reports-subnav {
    width: 100%;
  }
  .patch-kpi-grid, .apps-kpi-grid, .reports-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   MODULE 5: CENTRALIZED SETTINGS MODULE (ENTERPRISE AZURE 3-COLUMN ARCHITECTURE)
   ========================================================================== */

.settings-module-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 310px;
  gap: 20px;
  margin-top: 18px;
  align-items: flex-start;
}

@media (max-width: 1400px) {
  .settings-module-layout {
    grid-template-columns: 220px minmax(0, 1fr) 280px;
    gap: 16px;
  }
}

@media (max-width: 1150px) {
  .settings-module-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .settings-right-panels {
    grid-column: span 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
  }
}

@media (max-width: 850px) {
  .settings-module-layout {
    grid-template-columns: 1fr;
  }
  .settings-right-panels {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
}

/* Dedicated Settings Navigation Sidebar */
.settings-subnav {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.settings-subnav-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #9ca3af;
  padding: 8px 12px 4px 12px;
}

.settings-subnav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  margin-bottom: 2px;
}

.settings-subnav-item:hover {
  background: #f3f4f6;
  color: #111827;
}

.settings-subnav-item.active {
  background: #eff6ff;
  color: #0078d4;
  font-weight: 600;
}

/* Center Workspace Panes */
.settings-workspace {
  min-width: 0;
}

.settings-pane {
  display: none;
}

.settings-pane.active {
  display: block;
}

.settings-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  margin-bottom: 20px;
}

.settings-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f3f4f6;
}

.settings-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-card-subtitle {
  font-size: 12.5px;
  color: #6b7280;
  margin-top: 3px;
}

.settings-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 20px;
}

.settings-form-grid .full-span {
  grid-column: span 2;
}

.settings-help-text {
  font-size: 11.5px;
  color: #6b7280;
  margin-top: 4px;
  line-height: 1.4;
}

/* Action Bar */
.settings-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 20px;
  margin-top: 24px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.settings-unsaved-badge {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #8f6200;
  background: #fff4ce;
  padding: 4px 10px;
  border-radius: 20px;
}

.settings-unsaved-badge.visible {
  display: inline-flex;
}

/* Right-Side Compact Panels */
.settings-right-panels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-panel-box {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.settings-panel-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f3f4f6;
}

/* Quick Action Items */
.settings-quick-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 8px;
  text-align: left;
}

.settings-quick-action-btn:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #0078d4;
  transform: translateX(2px);
}

.settings-quick-action-btn:last-child {
  margin-bottom: 0;
}

/* Color Swatches for Branding */
.color-swatch-list {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px #d1d5db;
  transition: transform 0.15s ease;
}

.color-swatch:hover {
  transform: scale(1.15);
}

.color-swatch.selected {
  box-shadow: 0 0 0 3px #0078d4;
}

/* Live Appearance Preview Box */
.appearance-live-preview {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  margin-top: 14px;
}

.appearance-preview-header {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.appearance-preview-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Integrations Grid */
.integrations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.integration-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  transition: all 0.15s ease;
}

.integration-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.integration-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.integration-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f0f4f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #0078d4;
  flex-shrink: 0;
}

/* Audit Log Table in Settings */
.settings-audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.settings-audit-table th {
  background: #f9fafb;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: #4b5563;
  border-bottom: 1px solid #e5e7eb;
}

.settings-audit-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f3f4f6;
  color: #1f2937;
}

.settings-audit-table tr:hover {
  background: #f8fafc;
}

/* ==========================================================================
   MODULE 6: ENTERPRISE HOME DASHBOARD (AZURE PORTAL INSPIRED)
   ========================================================================== */

/* Top Navigation Notification & Help Buttons */
.dash-nav-icon-btn {
  background: none;
  border: none;
  color: #ffffff;
  padding: 6px;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.dash-nav-icon-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}


/* Welcome Panel */
.home-welcome-panel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.home-greeting-title {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.4px;
}

.home-greeting-sub {
  font-size: 13.5px;
  color: #4b5563;
  margin-top: 4px;
}

.home-meta-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-size: 12.5px;
  color: #6b7280;
  flex-wrap: wrap;
}

.home-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f9fafb;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #f3f4f6;
  font-weight: 500;
}

/* 6 Infrastructure KPI Cards Grid */
.home-kpi-grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

@media (max-width: 1400px) {
  .home-kpi-grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .home-kpi-grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.home-kpi-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.home-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.home-kpi-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.home-kpi-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #6b7280;
}

.home-kpi-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-kpi-val {
  font-size: 26px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.5px;
}

.home-kpi-sub {
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* 3-Column Analytics Grid (Health Donut, Availability, Resource Usage) */
.home-analytics-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}

@media (max-width: 1300px) {
  .home-analytics-grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

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

.home-card-box {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.home-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}

.home-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Resource Utilization Meters */
.resource-meter-item {
  margin-bottom: 14px;
}

.resource-meter-item:last-child {
  margin-bottom: 0;
}

.resource-meter-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}

.resource-meter-label {
  font-weight: 600;
  color: #1f2937;
}

.resource-meter-val {
  font-weight: 700;
  color: #0078d4;
}

.resource-meter-bar {
  width: 100%;
  height: 8px;
  background: #f3f4f6;
  border-radius: 4px;
  overflow: hidden;
}

.resource-meter-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Quick Actions Strip (6 Cards) */
.home-quick-actions-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 1200px) {
  .home-quick-actions-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 650px) {
  .home-quick-actions-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

.home-action-tile {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.home-action-tile:hover {
  border-color: #0078d4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 120, 212, 0.08);
  background: #eff6ff;
}

.home-action-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f0f4f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0078d4;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.home-action-tile:hover .home-action-icon-wrap {
  background: #0078d4;
  color: #ffffff;
}

.home-action-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #111827;
}

.home-action-desc {
  font-size: 11px;
  color: #6b7280;
}

/* System Status Grid */
.home-system-status-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

@media (max-width: 1400px) {
  .home-system-status-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 800px) {
  .home-system-status-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.home-status-chip {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.home-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.home-status-dot.online {
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.home-status-dot.degraded {
  background: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

/* Dual Tables Layout */
.home-tables-grid-dual {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}

@media (max-width: 1150px) {
  .home-tables-grid-dual {
    grid-template-columns: 1fr;
  }
}






/* ==========================================================================
   WINDOWS ADMIN CENTER & SERVER MANAGEMENT WORKSPACE STYLES
   ========================================================================== */

#view-section-server-mgmt {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 110px);
  background: #f8fafc;
  padding: 0 0 24px 0;
}

/* Breadcrumb Bar (Hidden to match exact reference screenshot) */
.mgmt-breadcrumb-bar {
  display: none !important;
}

/* Header Banner */
.mgmt-header-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  gap: 20px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.mgmt-server-title-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mgmt-os-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mgmt-server-name {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.3px;
}

.mgmt-server-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.mgmt-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 12px;
}

.mgmt-status-pill.running {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.mgmt-status-pill.offline {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.mgmt-status-pill.warning {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.mgmt-server-meta {
  font-size: 12.5px;
  color: #64748b;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mgmt-dot {
  color: #cbd5e1;
}

/* Horizontal Management Navigation Tabs Row */
.mgmt-nav-tabs-bar {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 28px;
  gap: 28px;
  overflow-x: auto;
  flex-shrink: 0;
}

.mgmt-tab-item {
  position: relative;
  background: none;
  border: none;
  padding: 12px 2px 14px 2px;
  font-size: 13.5px;
  font-weight: 500;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.mgmt-tab-item:hover {
  color: #0078d4;
}

.mgmt-tab-item.active {
  color: #0078d4;
  font-weight: 600;
}

.mgmt-tab-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: #0078d4;
  border-radius: 2px 2px 0 0;
}

/* WAC Gateway Information Card */
.mgmt-wac-gateway-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 20px;
  margin: 18px 28px 14px 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  gap: 16px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.mgmt-wac-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mgmt-wac-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mgmt-wac-card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.1px;
}

.mgmt-wac-card-target {
  font-size: 12.5px;
  color: #64748b;
  margin-top: 2px;
}

.mgmt-wac-card-target a {
  color: #0078d4;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.15s ease;
}

.mgmt-wac-card-target a:hover {
  color: #106ebe;
}

.mgmt-wac-card-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mgmt-btn-popout {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #0078d4;
  color: #ffffff;
  border: 1px solid #0078d4;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.mgmt-btn-popout:hover {
  background: #106ebe;
  border-color: #106ebe;
}

.mgmt-btn-standalone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mgmt-btn-standalone:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

/* Embedded WAC Console Box */
.mgmt-embedded-console-box {
  background: #1f1f1f;
  border: 1px solid #333333;
  border-radius: 8px;
  margin: 0 28px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  min-height: 720px;
  height: calc(100vh - 275px);
  display: flex;
  flex-direction: column;
}

/* Toolbar Buttons */
.mgmt-header-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mgmt-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.mgmt-action-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.mgmt-action-btn.restart:hover {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #b45309;
}

.mgmt-action-btn.shutdown:hover {
  background: #fef2f2;
  border-color: #ef4444;
  color: #b91c1c;
}

.mgmt-action-btn.wac-portal-btn {
  background: #0078d4;
  color: #ffffff;
  border-color: #0078d4;
}

.mgmt-action-btn.wac-portal-btn:hover {
  background: #106ebe;
  border-color: #106ebe;
}

/* Workspace Layout (Full width single column for embedded WAC console) */
.mgmt-workspace-layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

/* Tools Sidebar (Removed per specification) */
.mgmt-tools-sidebar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  overflow: hidden !important;
}

/* Main Viewport */
.mgmt-content-viewport {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 0;
  margin: 0;
  background: #ffffff;
}

.mgmt-loading-container {
  position: absolute;
  inset: 0;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.mgmt-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e2e8f0;
  border-top-color: #0078d4;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Sections & Headers */
.mgmt-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.mgmt-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.2px;
}

/* Essentials Grid */
.mgmt-essentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.mgmt-essential-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.mgmt-essential-card .lbl {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.mgmt-essential-card .val {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  word-break: break-word;
}

.mgmt-essential-card .val.highlight {
  color: #0078d4;
}

.mgmt-essential-card .val.status-ok {
  color: #059669;
}

/* Sub-nav Tabs */
.mgmt-subnav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 18px;
  padding-bottom: 4px;
}

.mgmt-subnav-tabs {
  display: flex;
  gap: 6px;
}

.mgmt-subtab {
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

.mgmt-subtab:hover {
  color: #0f172a;
}

.mgmt-subtab.active {
  color: #0078d4;
  border-bottom-color: #0078d4;
}

.live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  padding: 3px 10px;
  border-radius: 12px;
}

/* Monitoring 4-Card Grid */
.mgmt-monitoring-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.mgmt-metric-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.metric-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.metric-title-group {
  display: flex;
  flex-direction: column;
}

.metric-name {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}

.metric-live-pct {
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.1;
  margin-top: 2px;
}

.metric-chip {
  font-size: 11px;
  background: #f1f5f9;
  color: #475569;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.metric-sparkline-box {
  width: 100%;
  height: 60px;
  margin-bottom: 12px;
  background: #fafafa;
  border-radius: 6px;
  overflow: hidden;
}

.metric-svg-chart {
  width: 100%;
  height: 100%;
  display: block;
}

.chart-area {
  fill: rgba(0, 120, 212, 0.12);
}

.chart-line {
  fill: none;
  stroke: #0078d4;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-area.mem { fill: rgba(16, 185, 129, 0.12); }
.chart-line.mem { stroke: #10b981; }

.chart-area.disk { fill: rgba(245, 158, 11, 0.12); }
.chart-line.disk { stroke: #f59e0b; }

.chart-area.net { fill: rgba(139, 92, 246, 0.12); }
.chart-line.net { stroke: #8b5cf6; }

.metric-details-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  font-size: 12px;
}

.det-row {
  display: flex;
  justify-content: space-between;
  color: #64748b;
}

.det-row strong {
  color: #1e293b;
  font-weight: 600;
}

/* Tables */
.mgmt-table-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.mgmt-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  text-align: left;
}

.mgmt-data-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.mgmt-data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.mgmt-data-table tr:hover td {
  background: #f8fafc;
}

/* Firewall Profiles */
.mgmt-firewall-profiles {
  display: flex;
  gap: 8px;
}

.fw-pill {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.fw-pill.active {
  background: #ecfdf5;
  color: #065f46;
  border-color: #6ee7b7;
}

.mgmt-filter-pill {
  font-size: 12px;
  padding: 5px 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.12s ease;
}

.mgmt-filter-pill:hover {
  background: #f1f5f9;
}

.mgmt-filter-pill.active {
  background: #0078d4;
  color: #ffffff;
  border-color: #0078d4;
}

/* Interactive PowerShell Terminal */
.mgmt-terminal-window {
  background: #0c1017;
  border-radius: 10px;
  border: 1px solid #1f2937;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  height: 520px;
  overflow: hidden;
  font-family: Consolas, 'Cascadia Code', 'Fira Code', Menlo, Monaco, monospace;
}

.mgmt-terminal-topbar {
  background: #161b22;
  border-bottom: 1px solid #21262d;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.term-dot.red { background: #ef4444; }
.term-dot.yellow { background: #f59e0b; }
.term-dot.green { background: #10b981; }

.term-title {
  font-size: 12px;
  color: #8b949e;
  margin-left: 6px;
}

.mgmt-terminal-body {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  color: #c9d1d9;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.term-line {
  margin-bottom: 2px;
}

.term-line.cmd {
  color: #58a6ff;
  font-weight: 600;
  margin-top: 8px;
}

.term-line.err {
  color: #f85149;
}

.mgmt-terminal-input-row {
  display: flex;
  align-items: center;
  background: #161b22;
  border-top: 1px solid #21262d;
  padding: 8px 12px;
  gap: 8px;
}

.term-prompt {
  font-size: 13px;
  color: #e6edf3;
  font-weight: 700;
  white-space: nowrap;
}

.term-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #58a6ff;
  font-family: inherit;
  font-size: 13px;
}

.term-run-btn {
  background: #0078d4;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* RDP Card */
.mgmt-rdp-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.rdp-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rdp-meta-strip {
  display: flex;
  gap: 16px;
  font-size: 12.5px;
  color: #64748b;
  margin-top: 14px;
  flex-wrap: wrap;
}

.rdp-meta-strip code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  color: #0f172a;
}

/* Embedded WAC Iframe */
.mgmt-iframe-container {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 700px;
  background: #ffffff;
  border: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  margin: 0;
  padding: 0;
}

.wac-iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* Generic Tool Card */
.mgmt-generic-tool-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  color: #334155;
  font-size: 13.5px;
  line-height: 1.6;
}

/* Buttons */
.mgmt-btn-primary {
  background: #0078d4;
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mgmt-btn-primary:hover {
  background: #106ebe;
}

.mgmt-btn-secondary {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.mgmt-btn-secondary:hover {
  background: #e2e8f0;
}

.mgmt-btn-danger {
  background: #dc2626;
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.mgmt-btn-danger:hover {
  background: #b91c1c;
}

/* Table Manage Action Button */
.tbl-act-btn-manage {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: #0078d4;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tbl-act-btn-manage:hover {
  background: #106ebe;
  transform: translateY(-1px);
}


/* ==========================================================================
   MICROSOFT ENTRA SUITE ENTERPRISE UI STYLES (AAC_240131_MicrosoftEntra.pdf)
   ========================================================================== */

/* Category Headers in Secondary Navigation */
.sec-nav-category-title {
  padding: 10px 14px 4px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #64748b;
  border-top: 1px solid #f1f5f9;
  margin-top: 6px;
}

.sec-nav-category-title:first-child {
  border-top: none;
  margin-top: 0;
}

/* Security Copilot Toolbar Button & AI Drawer */
.btn-entra-copilot {
  background: linear-gradient(135deg, #0078d4 0%, #6366f1 50%, #8b5cf6 100%) !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.btn-entra-copilot:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4) !important;
}

/* 4 Top Sparkline KPI Grid (Slide 12, 46) */
.entra-sparkline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

@media (max-width: 1200px) {
  .entra-sparkline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.entra-spark-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.entra-spark-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.entra-spark-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.3;
}

.entra-spark-val-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
}

.entra-spark-val {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
}

.entra-spark-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.entra-spark-pill.up-good {
  background: #ecfdf5;
  color: #059669;
}

.entra-spark-pill.down-good {
  background: #ecfdf5;
  color: #059669;
}

.entra-spark-pill.up-bad {
  background: #fef2f2;
  color: #dc2626;
}

.entra-spark-chart-wrap {
  margin-top: 10px;
  height: 38px;
}

.entra-spark-sub {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 6px;
}

/* Sankey Attack Vector Flow Diagram (Slide 12, 46) */
.sankey-flow-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  margin-bottom: 20px;
}

.sankey-grid {
  display: grid;
  grid-template-columns: 260px 1fr 220px;
  gap: 20px;
  align-items: center;
  margin-top: 14px;
}

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

.sankey-attack-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 4px solid #0078d4;
}

.sankey-attack-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
}

.sankey-attack-count {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.sankey-engine-center {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px dashed #0284c7;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sankey-outcome-card {
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.outcome-remediated {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.outcome-blocked {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

/* Geo-threat Map Box (Slide 12, 46) */
.entra-geomap-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.geomap-container {
  position: relative;
  background: #0f172a;
  border-radius: 8px;
  overflow: hidden;
  height: 260px;
}

.geomap-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 10;
}

.geomap-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
}

.geomap-ripple {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #ef4444;
  opacity: 0.8;
  animation: geomapPulse 2s infinite;
}

@keyframes geomapPulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* CIEM Multi-cloud Permission Creep Index (PCI) (Slides 25-28) */
.pci-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 992px) {
  .pci-cards-grid {
    grid-template-columns: 1fr;
  }
}

.pci-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.pci-cloud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.pci-cloud-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pci-meter-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0;
}

.pci-gauge-dial {
  width: 80px;
  height: 80px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pci-number-big {
  font-size: 24px;
  font-weight: 900;
}

.pci-gap-banner {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #ffffff;
  border-radius: 10px;
  padding: 18px 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Verified ID Digital Wallet Card Preview (Slides 22-24) */
.vc-wallet-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
}

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

.vc-phone-mockup {
  background: #111827;
  border-radius: 36px;
  padding: 18px 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  border: 4px solid #374151;
  width: 300px;
  margin: 0 auto;
}

.vc-phone-screen {
  background: #f8fafc;
  border-radius: 26px;
  padding: 14px;
  min-height: 440px;
}

.vc-badge-card {
  background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
  color: #ffffff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(0, 120, 212, 0.35);
  margin-bottom: 14px;
}

.vc-badge-logo {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

.vc-badge-name {
  font-size: 18px;
  font-weight: 800;
  margin-top: 14px;
}

.vc-badge-meta {
  font-size: 11.5px;
  opacity: 0.9;
  margin-top: 4px;
}

.vc-badge-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  font-size: 10px;
  opacity: 0.8;
}

/* Lifecycle Workflows Pipeline (Slide 16) */
.lifecycle-tasks-list {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 14px;
}

.lifecycle-task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}

.lifecycle-task-row:hover {
  background: #f8fafc;
}

.lifecycle-task-row:last-child {
  border-bottom: none;
}

.lifecycle-task-order {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0284c7;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* Security Copilot AI Drawer */
.sec-copilot-blade {
  position: fixed;
  top: 56px;
  right: -420px;
  width: 400px;
  height: calc(100vh - 56px);
  background: #ffffff;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  border-left: 1px solid #cbd5e1;
  z-index: 1000;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.sec-copilot-blade.open {
  right: 0;
}

.copilot-blade-header {
  padding: 16px;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.copilot-blade-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
}

.copilot-msg-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.copilot-blade-footer {
  padding: 14px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

/* ==========================================================================
   AUTHENTIC MICROSOFT AZURE PORTAL ICONS SYSTEM
   ========================================================================== */
.azure-portal-nav-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.15s ease;
}

.sidebar-item:hover .azure-portal-nav-icon,
.sidebar-item.active .azure-portal-nav-icon {
  transform: scale(1.1);
}

.azure-portal-subnav-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.azure-portal-kpi-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.azure-portal-action-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.azure-portal-tab-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  vertical-align: middle;
}

.azure-portal-header-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

