/* OCPD: Strict Design System - Cyberpunk/Dark Theme */
body {
  background-color: #050505; /* AppConstants.darkBackground */
  color: #e9edef;
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  overflow: hidden; /* Prevent scrollbars during load */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/*
   OCPD: Systematic Removal of Flutter's Default Loading Artifacts
   Targeting any element that attempts to render at the top with a fixed position.
*/
#flt-loading-indicator,
.flt-loading-indicator,
[flt-loading-indicator],
flutter-view,
flt-glass-pane {
  --indicator-color: transparent !important;
  --indicator-background-color: transparent !important;
}

/* Scorched Earth: Hide any fixed div at the top during initialization */
div[style*='position: fixed'][style*='top: 0px'] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Targeting the specific blue color of the default Flutter progress bar */
div[style*='background-color: rgb(33, 150, 243)'],
div[style*='background-color: #2196f3'] {
  display: none !important;
}

/* Loading Container */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease-out;
}

/* Cyberpunk Loader */
.loader {
  width: 50px;
  height: 50px;
  border: 3px solid #101d25; /* Dark Surface */
  border-top: 3px solid #00e676; /* Accent Green */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 15px rgba(0, 230, 118, 0.2);
}

.loading-text {
  margin-top: 20px;
  font-size: 14px;
  letter-spacing: 2px;
  color: #00e676;
  animation: pulse 1.5s infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.5;
  }
}

/* Scrollbar Customization for Web */
::-webkit-scrollbar {
  width: 10px;
  background-color: #050505;
}

::-webkit-scrollbar-thumb {
  background-color: #202c33;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #00a884;
}
