/*
   Emergency London — Staff Intranet Stylesheet
   Design System: Roblox Developer Console Premium dark glassmorphic styling.
   Overhauls government GDS layouts to high-fidelity cybernetic styling.
*/

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

:root {
  /* Roblox Slate/Blue UI Colors */
  --gov-charcoal: #f5f6f8; /* Crisp white primary text */
  --gov-navy: #0e1015; /* Base dark background */
  --gov-blue: #00a2ff; /* Roblox Blue */
  --gov-blue-dark: #0077e6;
  --gov-grey-light: #0a0b0d; /* Background dark */
  --gov-grey-border: rgba(255, 255, 255, 0.08); /* Semi-transparent slate border */
  --gov-grey-text: #8a96a3; /* Muted grey secondary text */
  --gov-white: #111216; /* Dark panel background */

  /* Glow Effects */
  --blue-glow: rgba(0, 162, 255, 0.4);
  --border-glass: rgba(255, 255, 255, 0.06);

  /* Emergency Accents */
  --uk-red: #ff3b30;
  --uk-green: #10b981;
  --uk-yellow: #f59e0b;
  --uk-amber: #f97316;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--gov-grey-light);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

body {
  background-color: var(--gov-grey-light);
  background-image: 
    radial-gradient(at 0% 0%, rgba(0, 162, 255, 0.06) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(255, 59, 48, 0.04) 0px, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.007) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.007) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 24px 24px, 24px 24px;
  color: var(--gov-charcoal);
  font-family: 'Inter', Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Selection Highlight */
::selection {
  background: rgba(0, 162, 255, 0.3);
  color: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.25rem;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

h2 {
  font-size: 1.6rem;
  line-height: 1.3;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--gov-grey-border);
  padding-bottom: 8px;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

p {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: #cbd5e0;
}

.text-muted {
  color: var(--gov-grey-text);
  font-size: 0.85rem;
}

.mono {
  font-family: 'Courier New', Courier, monospace;
}

/* ------------------------------------------------------------
   ROBLOX THEME TOP HEADER WITH AN EMERGENCY ANIMATION SWEEP
   ------------------------------------------------------------ */
.gov-header {
  background-color: #0c0817;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  padding: 8px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  position: sticky;
  top: 0;
}

/* Top sweep light indicator line */
.gov-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, 
    var(--gov-blue) 0%, 
    transparent 35%, 
    var(--uk-red) 50%, 
    transparent 65%, 
    var(--gov-blue) 100%
  );
  background-size: 200% auto;
  animation: sweep 6s linear infinite;
}

@keyframes sweep {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.gov-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gov-brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gov-brand-subtitle {
  font-size: 0.72rem;
  background: linear-gradient(135deg, rgba(0, 162, 255, 0.2) 0%, rgba(0, 119, 230, 0.2) 100%);
  color: #00a2ff;
  border: 1px solid rgba(0, 162, 255, 0.4);
  padding: 3px 8px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 6px;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(0, 162, 255, 0.15);
}

/* ------------------------------------------------------------
   ROBLOX THEME NAVBAR NAVIGATION
   ------------------------------------------------------------ */
.gov-nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 3px;
  flex-wrap: nowrap; /* Enforce strictly single line layout */
  margin: 0;
  padding: 0;
}

.gov-nav-item {
  position: relative;
  flex-shrink: 0; /* Prevent list items from shrinking or wrapping */
}

.gov-nav-btn {
  background: none;
  border: none;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: #a0aec0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 6px;
  border: 1px solid transparent;
}

.gov-nav-btn:hover, .gov-nav-item:hover .gov-nav-btn {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.04);
  text-shadow: 0 0 8px rgba(0, 162, 255, 0.3);
}

/* High Fidelity Dropdown sliding animation */
.gov-dropdown-menu {
  display: block;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 100%;
  left: 0;
  background: linear-gradient(135deg, rgba(20, 24, 33, 0.98) 0%, rgba(10, 11, 14, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 20px rgba(0, 162, 255, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  list-style: none;
  min-width: 230px;
  padding: 8px 0;
  z-index: 1001;
  border-radius: 10px;
  transform: translateY(4px);
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.gov-nav-item:hover .gov-dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Hover bridge prevent menu closing */
.gov-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  width: 100%;
  height: 8px;
  background: transparent;
}

.gov-dropdown-link {
  display: block;
  padding: 10px 16px;
  margin: 2px 8px;
  font-size: 0.82rem;
  color: #cbd5e0;
  text-decoration: none;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.gov-dropdown-link:hover {
  background: linear-gradient(90deg, rgba(0, 162, 255, 0.15) 0%, rgba(0, 162, 255, 0.03) 100%);
  color: #ffffff;
  padding-left: 20px;
  box-shadow: inset 1px 0 0 rgba(0, 162, 255, 0.5);
}

/* ------------------------------------------------------------
   USER PROFILE DROPDOWN (ROBLOX STYLE)
   ------------------------------------------------------------ */
.profile-dropdown-wrapper {
  position: relative;
}

.profile-trigger-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 8px;
  color: #cbd5e0;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}

.profile-trigger-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.profile-trigger-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--gov-blue);
  object-fit: cover;
  flex-shrink: 0;
}

.profile-trigger-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.25;
}

.profile-trigger-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
}

.profile-trigger-role {
  font-size: 0.68rem;
  color: var(--gov-grey-text);
  font-weight: 500;
}

.profile-dropdown-menu {
  display: block;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: linear-gradient(135deg, rgba(20, 24, 33, 0.98) 0%, rgba(10, 11, 14, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 20px rgba(0, 162, 255, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  list-style: none;
  min-width: 240px;
  padding: 8px 0;
  z-index: 1002;
  border-radius: 10px;
  transform: translateY(4px);
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.profile-dropdown-menu.active {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.profile-dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  margin: 2px 8px;
  font-size: 0.82rem;
  color: #cbd5e0;
  text-decoration: none;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-dropdown-link:hover {
  background: linear-gradient(90deg, rgba(0, 162, 255, 0.15) 0%, rgba(0, 162, 255, 0.03) 100%);
  color: #ffffff;
  padding-left: 20px;
  box-shadow: inset 1px 0 0 rgba(0, 162, 255, 0.5);
}

.profile-dropdown-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: 6px 0;
}

.logout-link:hover {
  background: linear-gradient(90deg, rgba(255, 59, 48, 0.15) 0%, rgba(255, 59, 48, 0.03) 100%);
  color: #ff8882;
  box-shadow: inset 1px 0 0 rgba(255, 59, 48, 0.5);
}

/* ------------------------------------------------------------
   MAIN WORKSPACE CONTAINER & SLIDING ANIMATED PANELS
   ------------------------------------------------------------ */
.gov-main-container {
  max-width: 1180px;
  margin: 40px auto;
  padding: 0 28px;
  min-height: calc(100vh - 260px);
}

.workspace-panel {
  animation: panelFadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Alert/Directives glass box */
.gov-alert-banner {
  border-left: 4px solid var(--gov-blue);
  background-color: rgba(22, 27, 38, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 18px;
  margin-bottom: 24px;
  border-radius: 8px;
  box-shadow: inset 0 0 15px rgba(0, 162, 255, 0.03);
  backdrop-filter: blur(4px);
}

.gov-alert-banner.error {
  border-left-color: var(--uk-red);
  box-shadow: inset 0 0 15px rgba(255, 59, 48, 0.03);
}

.gov-alert-banner.warning {
  border-left-color: var(--uk-amber);
  box-shadow: inset 0 0 15px rgba(249, 115, 22, 0.03);
}

.gov-alert-banner.success {
  border-left-color: var(--uk-green);
  box-shadow: inset 0 0 15px rgba(16, 185, 129, 0.03);
}

.gov-alert-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: #ffffff;
}

/* Roblox Glass panels */
.gov-panel {
  background-color: rgba(21, 23, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 26px;
  margin-bottom: 24px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease;
}

.gov-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  border-color: rgba(0, 162, 255, 0.15);
}

.gov-panel h3 {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 10px;
  margin-bottom: 18px;
  color: #ffffff;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

/* ------------------------------------------------------------
   COMPONENTS AND FORM LAYOUTS
   ------------------------------------------------------------ */
.gov-form-group {
  margin-bottom: 22px;
}

.gov-label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #ffffff;
}

.gov-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--gov-grey-text);
  margin-bottom: 8px;
}

/* Inputs & fields */
.gov-input {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: #0b0e14;
  color: #ffffff;
  width: 100%;
  max-width: 500px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
}

.gov-input:focus {
  outline: none;
  border-color: var(--gov-blue);
  box-shadow: 0 0 12px rgba(0, 162, 255, 0.35);
  background-color: #0d111a;
}

.gov-input[readonly] {
  background-color: rgba(255, 255, 255, 0.02);
  color: #a0aec0;
  border-color: rgba(255, 255, 255, 0.05);
  cursor: not-allowed;
}

textarea.gov-input {
  max-width: 100%;
  height: 160px;
  resize: vertical;
}

select.gov-input {
  max-width: 380px;
  cursor: pointer;
}

select.gov-input option {
  background-color: #111216;
  color: #ffffff;
}

/* ------------------------------------------------------------
   ROBLOX CREATOR PORTAL BUTTONS (SLIDING GRADIENTS)
   ------------------------------------------------------------ */
.gov-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 20px;
  border: 1px solid transparent;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gov-blue) 0%, var(--gov-blue-dark) 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 162, 255, 0.25);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.gov-btn:hover {
  background: linear-gradient(135deg, #33b5ff 0%, #0088ff 100%);
  box-shadow: 0 6px 20px rgba(0, 162, 255, 0.45);
  transform: translateY(-1px);
}

.gov-btn:active {
  transform: translateY(1px) scale(0.97);
}

.gov-btn-danger {
  background: linear-gradient(135deg, #ff4d4d 0%, #d4351c 100%);
  box-shadow: 0 4px 15px rgba(212, 53, 28, 0.25);
}

.gov-btn-danger:hover {
  background: linear-gradient(135deg, #ff6666 0%, #e63e26 100%);
  box-shadow: 0 6px 20px rgba(212, 53, 28, 0.45);
}

.gov-btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.gov-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.gov-btn-xs {
  padding: 5px 12px;
  font-size: 0.75rem;
  border-radius: 6px;
}

/* ------------------------------------------------------------
   SLEEK DATA GRID TABLES
   ------------------------------------------------------------ */
.gov-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 24px;
  font-size: 0.9rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.gov-table th {
  text-align: left;
  padding: 12px 16px;
  background-color: rgba(255, 255, 255, 0.02);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
  color: #ffffff;
}

.gov-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e0;
  vertical-align: middle;
}

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

.gov-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.025);
  color: #ffffff;
}

/* ------------------------------------------------------------
   FLEXIBLE RESPONSIVE GRIDS
   ------------------------------------------------------------ */
.gov-lead-para {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 22px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.gov-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.gov-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gov-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

@media(max-width: 768px) {
  .gov-grid-2, .gov-grid-3, .gov-grid-4 {
    grid-template-columns: 1fr;
  }
}

.gov-bullet-list {
  padding-left: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #cbd5e0;
}

.gov-bullet-list li {
  font-size: 0.95rem;
}

/* Whitelist/Permission Badges */
.permission-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.permission-badge.granted {
  background-color: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.permission-badge.denied {
  background-color: rgba(255, 59, 48, 0.12);
  color: #ff3b30;
  border: 1px solid rgba(255, 59, 48, 0.3);
}

/* ------------------------------------------------------------
   TOAST SLIDE-IN POPUPS
   ------------------------------------------------------------ */
.gov-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gov-toast {
  background-color: rgba(17, 18, 22, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 5px solid var(--gov-blue);
  padding: 14px 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  min-width: 320px;
  animation: toastSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.gov-toast.success { border-left-color: var(--uk-green); }
.gov-toast.error { border-left-color: var(--uk-red); }
.gov-toast.info { border-left-color: var(--gov-blue); }

@keyframes toastSlideIn {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.gov-toast-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: #ffffff;
}

.gov-toast-desc {
  font-size: 0.8rem;
  color: var(--gov-grey-text);
  margin-top: 4px;
}

/* ------------------------------------------------------------
   GLASSMORPHIC SLATE FOOTER
   ------------------------------------------------------------ */
.gov-footer {
  background-color: #07080b;
  color: var(--gov-grey-text);
  padding: 46px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
}

.gov-footer-content {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.gov-footer-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: #ffffff;
}

.gov-footer-copy {
  color: var(--gov-grey-text);
}

.gov-footer-links {
  display: flex;
  gap: 18px;
}

.gov-footer-link {
  color: #cbd5e0;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.15s;
}

.gov-footer-link:hover {
  color: #ffffff;
}

/* ------------------------------------------------------------
   OVERLAY MODALS AND ALERTS
   ------------------------------------------------------------ */
.custom-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.custom-modal {
  background-color: rgba(17, 18, 22, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 28px;
  border-radius: 12px;
  max-width: 520px;
  width: 90%;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  animation: modalScaleIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.4rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
  margin-top: 18px;
}

/* Roblox tilt logo */
.nav-logo-icon {
  width: 24px;
  height: 24px;
  background: #ffffff;
  transform: rotate(-15deg);
  position: relative;
  border-radius: 5px;
  box-shadow: 0 0 12px rgba(0, 162, 255, 0.4);
  flex-shrink: 0;
}

.nav-logo-icon::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  width: 10px;
  height: 10px;
  background: #0e1015;
  border-radius: 1px;
}

/* ------------------------------------------------------------
   ADVANCED TELEMETRY & DESIGN POLISH FOR ALL PAGES
   ------------------------------------------------------------ */

/* Gradient Headings for Workspace Panels */
.workspace-panel h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  text-shadow: none;
}

/* Callout styling for lead paragraphs */
.gov-lead-para {
  font-size: 1.05rem;
  color: #cbd5e0;
  margin-bottom: 24px;
  padding-left: 14px;
  border-left: 2px solid rgba(0, 162, 255, 0.4);
}

/* Heading styling in panels with cyan accent line */
.gov-panel h3 {
  position: relative;
  padding-left: 14px !important;
}

.gov-panel h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--gov-blue);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--gov-blue);
}

/* Table header text transform */
.gov-table th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
}

/* High Tech Stat Counters inside 4-column widgets */
.gov-grid-4 .gov-panel {
  background: linear-gradient(135deg, rgba(25, 27, 31, 0.85) 0%, rgba(15, 16, 20, 0.85) 100%);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.gov-grid-4 .gov-panel::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gov-blue);
  opacity: 0.6;
}

.gov-grid-4 .gov-panel h3 {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 8px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gov-grey-text);
  padding-left: 0 !important;
}

.gov-grid-4 .gov-panel h3::before {
  display: none;
}

/* Apply neon text shadow to stats numbers dynamically */
.gov-grid-4 .gov-panel div[id^="stats-"], 
.gov-grid-4 .gov-panel div[id*="-count"], 
.gov-grid-4 .gov-panel div[style*="font-size: 3rem"] {
  text-shadow: 0 0 12px rgba(0, 162, 255, 0.4);
  font-family: 'Outfit', sans-serif;
  color: #00a2ff !important;
  font-weight: 800;
}

/* Glowing dot bullet items list */
.gov-bullet-list {
  list-style: none;
  padding-left: 0;
}

.gov-bullet-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
}

.gov-bullet-list li::before {
  content: '●';
  position: absolute;
  left: 0;
  color: var(--gov-blue);
  font-size: 0.85rem;
  top: -1px;
  text-shadow: 0 0 6px rgba(0, 162, 255, 0.5);
}

/* Monospace text tag */
.mono {
  font-family: 'Courier New', Courier, monospace;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #00a2ff !important;
  font-weight: 600;
}

/* Detail view key-value items lists mapping */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.detail-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  border-radius: 8px;
  transition: border-color 0.2s;
}

.detail-item:hover {
  border-color: rgba(0, 162, 255, 0.2);
}

.detail-label {
  font-size: 0.72rem;
  color: var(--gov-grey-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: block;
  font-weight: 600;
}

.detail-value {
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 700;
}

/* Custom Case timeline feed threads */
.timeline-container {
  position: relative;
  padding-left: 20px;
  border-left: 2px solid rgba(255, 255, 255, 0.06);
  margin-top: 15px;
  margin-left: 8px;
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -27px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gov-blue);
  box-shadow: 0 0 8px var(--gov-blue);
}

.timeline-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 12px 16px;
}

.timeline-meta {
  font-size: 0.75rem;
  color: var(--gov-grey-text);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  font-weight: 500;
}

/* ============================================================
   ROBLOX DEVELOPER CONSOLE HIGHER-FIDELITY OVERRIDES
   ============================================================ */

/* Overhaul Panels to be Premium Glass Panels with top color indicator accents */
.gov-panel {
  background: linear-gradient(135deg, rgba(20, 22, 28, 0.85) 0%, rgba(13, 14, 18, 0.95) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-top: 3px solid #00a2ff !important; /* Roblox Blue Top Accent Line */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.05) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-radius: 10px !important;
}

/* Page-specific Panel Color Theme Overrides */
#panel-warnings .gov-panel,
#panel-kicks-bans .gov-panel,
#panel-asset-issues .gov-panel {
  border-top-color: var(--uk-red) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.65), 0 0 20px rgba(255, 59, 48, 0.04) !important;
}

#panel-player-reports .gov-panel,
#panel-creator-applications .gov-panel,
#panel-submissions .gov-panel {
  border-top-color: var(--uk-green) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.65), 0 0 20px rgba(16, 185, 129, 0.04) !important;
}

#panel-ban-appeals .gov-panel,
#panel-purchase-claims .gov-panel {
  border-top-color: var(--uk-amber) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.65), 0 0 20px rgba(249, 115, 22, 0.04) !important;
}

/* Inputs design - futuristic slate boxes with blue glow borders on focus */
.gov-input {
  background-color: #0b0c10 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  padding: 12px 16px !important;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5) !important;
}

.gov-input:focus {
  border-color: #00a2ff !important;
  box-shadow: 0 0 15px rgba(0, 162, 255, 0.3), inset 0 0 8px rgba(0, 162, 255, 0.1) !important;
  background-color: #0e1017 !important;
}

/* Cybernetic alert banner styling */
.gov-alert-banner {
  background: rgba(0, 162, 255, 0.03) !important;
  border: 1px solid rgba(0, 162, 255, 0.12) !important;
  border-left: 4px solid #00a2ff !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3) !important;
  border-radius: 8px !important;
  backdrop-filter: blur(10px) !important;
}

/* Modals glassmorphic styling */
.custom-modal {
  background: linear-gradient(135deg, #13151c 0%, #0a0b0f 100%) !important;
  border: 1px solid rgba(0, 162, 255, 0.15) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 162, 255, 0.12) !important;
  border-top: 4px solid #00a2ff !important;
  border-radius: 12px !important;
}

/* Telemetry stat indicators glow */
#stat-active-players {
  text-shadow: 0 0 15px rgba(16, 185, 129, 0.5) !important;
}

#stat-active-units {
  text-shadow: 0 0 15px rgba(0, 162, 255, 0.5) !important;
}

/* Zebra / grid high-tech style tables */
.gov-table {
  background: rgba(11, 12, 16, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 10px !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
}

.gov-table th {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.005) 100%) !important;
  border-bottom: 2px solid rgba(0, 162, 255, 0.18) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  padding: 14px 20px !important;
  font-size: 0.82rem !important;
}

.gov-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
  padding: 14px 20px !important;
  transition: all 0.2s ease !important;
}

.gov-table tr:last-child td {
  border-bottom: none !important;
}

.gov-table tr:hover td {
  background-color: rgba(0, 162, 255, 0.035) !important;
  color: #ffffff !important;
  box-shadow: inset 3px 0 0 #00a2ff !important;
}

/* Dynamic list element styles */
.gov-bullet-list li::before {
  color: #00a2ff !important;
  text-shadow: 0 0 8px rgba(0, 162, 255, 0.6) !important;
}

/* Roles Permission selector buttons and custom switches */
.role-selector-btn:hover {
  background: rgba(0, 162, 255, 0.08) !important;
  border-color: rgba(0, 162, 255, 0.3) !important;
  transform: translateX(2px);
}

/* Custom slider switch toggle */
#web-maintenance-toggle:checked + .switch-slider {
  background-color: #ff9f1c !important; /* Orange/Gold maintenance state */
}

#web-coming-soon-toggle:checked + .switch-slider {
  background-color: #00a2ff !important; /* Roblox blue Coming Soon state */
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.switch-container input:checked + .switch-slider:before {
  transform: translateX(24px);
}

/* Custom Form Builder & Submissions Styling */
.fb-form-card {
  background: rgba(13, 17, 26, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 20px;
  position: relative;
  transition: all 0.25s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  backdrop-filter: blur(5px);
}
.fb-form-card:hover {
  border-color: rgba(0, 162, 255, 0.4);
  box-shadow: 0 0 15px rgba(0, 162, 255, 0.15);
  transform: translateY(-2px);
  background: rgba(13, 17, 26, 0.65);
}
.fb-form-card-title {
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 6px 0;
  padding-right: 25px; /* Spacing for options button */
}
.fb-form-card-desc {
  color: var(--gov-grey-text);
  font-size: 0.82rem;
  margin: 0 0 16px 0;
  line-height: 1.4;
  flex-grow: 1;
}
.fb-form-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 10px;
  margin-top: 5px;
}
.fb-form-card-meta span {
  color: #718096;
}
.fb-form-card-badge {
  background: rgba(0, 162, 255, 0.1);
  color: #00a2ff;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(0, 162, 255, 0.2);
}
.fb-form-card-badge.restricted {
  background: rgba(255, 159, 28, 0.1);
  color: #ff9f1c;
  border-color: rgba(255, 159, 28, 0.2);
}
.fb-question-row {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 15px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
}
.fb-question-row:hover {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.12);
}
.fb-question-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 8px;
  margin-bottom: 4px;
}
.fb-question-row-title {
  font-size: 0.95rem;
  color: #e2e8f0;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fb-question-actions {
  display: flex;
  gap: 6px;
}
.fb-question-btn {
  background: none;
  border: none;
  color: #a0aec0;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fb-question-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.fb-question-btn.delete:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* Card Three-Dot Actions Menu */
.card-actions-container {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
}
.card-actions-trigger {
  background: none;
  border: none;
  color: #a0aec0;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-actions-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.card-actions-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #121824;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  padding: 6px 0;
  min-width: 110px;
  display: none;
  flex-direction: column;
}
.card-actions-menu.active {
  display: flex;
}
.card-actions-item {
  background: none;
  border: none;
  color: #cbd5e0;
  padding: 8px 12px;
  font-size: 0.8rem;
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-actions-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}
.card-actions-item.danger {
  color: #fc8181;
}
.card-actions-item.danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* Custom Form Action Menu Card (modified from Uiverse.io by Na3ar-17) */
.fb-menu-card {
  width: 170px;
  background-color: rgba(36, 40, 50, 1);
  background-image: linear-gradient(
    139deg,
    rgba(36, 40, 50, 1) 0%,
    rgba(36, 40, 50, 1) 0%,
    rgba(37, 28, 40, 1) 100%
  );
  border-radius: 10px;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: absolute;
  top: 36px;
  right: 12px;
  z-index: 100;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.fb-menu-card .separator {
  border-top: 1.5px solid #42434a;
}

.fb-menu-card .list {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0px 8px;
  margin: 0;
}

.fb-menu-card .list .element {
  display: flex;
  align-items: center;
  color: #7e8590;
  gap: 8px;
  transition: all 0.3s ease-out;
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
}

.fb-menu-card .list .element svg {
  width: 16px;
  height: 16px;
  transition: all 0.3s ease-out;
}

.fb-menu-card .list .element .label {
  font-weight: 600;
}

.fb-menu-card .list .element:hover {
  background-color: #5353ff;
  color: #ffffff;
  transform: translate(1px, -1px);
}
.fb-menu-card .list .delete:hover {
  background-color: #8e2a2a;
}

.fb-menu-card .list .element:active {
  transform: scale(0.99);
}

.fb-menu-card .list:not(:last-child) .element:hover svg {
  stroke: #ffffff;
}

.fb-menu-card .list:last-child svg {
  stroke: #bd89ff;
}
.fb-menu-card .list:last-child .element {
  color: #bd89ff;
}

.fb-menu-card .list:last-child .element:hover {
  background-color: rgba(56, 45, 71, 0.836);
}

/* 3-dot Action Menu Layout styling on configuration cards */
.fb-config-card {
  position: relative;
  background: rgba(20, 24, 33, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 16px 20px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
}
.fb-config-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 162, 255, 0.35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.fb-config-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.fb-config-card-title {
  font-family: 'Outfit', sans-serif;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 4px 0;
}
.fb-config-card-desc {
  color: var(--gov-grey-text);
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 0;
  flex: 1;
}
.fb-config-card-footer {
  margin-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fb-config-card-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  letter-spacing: 0.5px;
}
.fb-config-card-badge.public {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.fb-config-card-badge.locked {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.fb-action-dot-btn {
  background: none;
  border: none;
  color: var(--gov-grey-text);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.fb-action-dot-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

/* Question Builder Element styling */
.fb-field-builder-row {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr auto;
  gap: 12px;
  align-items: end;
}
.fb-field-builder-row .gov-form-group {
  margin-bottom: 0 !important;
}
.fb-field-remove-btn {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.fb-field-remove-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ffffff;
}
