/* NATIVE CORE TYPOGRAPHY & VISUAL MATRIX */
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #0d1117;
  color: #c9d1d9;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* FIXED UPPER NAV ROW CONTROL */
.top-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #161b22;
  padding: 0 20px;
  height: 55px;
  border-bottom: 1px solid #30363d;
  box-sizing: border-box;
  z-index: 100;
}

/* 512x512 RESIZABLE ICON SPACE LAYER */
.brand-logo-frame {
  display: flex;
  align-items: center;
  height: 40px;
  width: 40px;
}
.brand-logo-frame svg {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

/* FLOATING HAMBURGER NAVIGATION TRIGGER */
.menu-hamburger-btn {
  background: none;
  border: none;
  color: #c9d1d9;
  font-size: 28px;
  cursor: pointer;
  padding: 5px;
  user-select: none;
}

/* RESPONSIVE WORKSPACE ARENA */
.dashboard-arena-wrapper {
  flex-grow: 1;
  position: relative;
  padding: 20px;
  box-sizing: border-box;
}

/* GOOGLE-STYLE INPUT BAR CONTAINER WITH SMOOTH SLIDE TRANSFORMATIONS */
.central-search-curtain {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 600px;
  padding: 0 20px;
  box-sizing: border-box;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 50;
}

/* THE MINIMIZED STATE: Morphs into a compact circle anchored under the top-left logo */
.central-search-curtain.minimized {
  top: 25px;
  left: 20px;
  transform: translate(0, 0);
  max-width: 44px;
  padding: 0;
}

.search-box-card {
  background-color: #161b22;
  border: 1px solid #30363d;
  border-radius: 24px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  height: 44px;
  box-sizing: border-box;
  transition: all 0.3s ease;
  position: relative;
}

.search-box-card input {
  background: none;
  border: none;
  color: #c9d1d9;
  font-size: 16px;
  width: 100%;
  outline: none;
  opacity: 1;
  transition: opacity 0.2s ease;
}
.search-box-card input::placeholder {
  color: #484f58;
}

/* THE CIRCLING QUESTION INDICATOR CARD RULES */
.question-mark-icon {
  position: absolute;
  font-size: 20px;
  font-weight: bold;
  color: #ffd700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  user-select: none;
}

/* MINIMIZED SUB-STYLES: Shrinks layout, hides input text fields, and unmasks the "?" icon */
.central-search-curtain.minimized .search-box-card {
  cursor: pointer;
  background-color: #21262d;
  border-color: #ffd700;
  border-radius: 50%;
  padding: 0;
  width: 44px;
}
.central-search-curtain.minimized input {
  opacity: 0;
  pointer-events: none;
  width: 0;
}
.central-search-curtain.minimized .question-mark-icon {
  opacity: 1;
}

/* MODAL OVERLAY: User Login Panel */
.login-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 200;
}
.login-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.login-card-container {
  background-color: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 30px;
  width: 100%;
  max-width: 350px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.6);
  text-align: center;
}
.login-card-container h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #ffd700;
}
.login-input-field {
  width: 100%;
  background-color: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 15px;
  box-sizing: border-box;
  color: #c9d1d9;
  outline: none;
}
.login-submit-btn {
  width: 100%;
  background-color: #21262d;
  border: 1px solid #30363d;
  color: #c9d1d9;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s;
}
.login-submit-btn:hover {
  background-color: #30363d;
}
.close-modal-link {
  display: inline-block;
  margin-top: 15px;
  font-size: 12px;
  color: #8b949e;
  cursor: pointer;
  text-decoration: underline;
}

/* GRIDSTACK CANVAS AREA */
.grid-stack-canvas-area {
  width: 100%;
  height: 100%;
  margin-top: 60px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.grid-stack-canvas-area.visible {
  opacity: 1;
}
