/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@16.0.10_@babel+core@7.28.4_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[2]!../../node_modules/.pnpm/next@16.0.10_@babel+core@7.28.4_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[3]!./src/app/globals.css ***!
  \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/**
 * @license
 * ws-system
 * Copyright (C) 2025  WebSocket System
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

/* Global styles for WSS Portal */

/* Design tokens are loaded dynamically by WssThemeProvider */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: 'Noto Sans', var(--wss-font-family-sans);
  font-optical-sizing: auto;
  font-weight: var(--wss-font-weight-medium);
  font-style: normal;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--wss-bg-primary);
  color: var(--wss-text-primary);
  line-height: var(--wss-line-height-normal);
  overflow-x: hidden;
}

/* Prevent scrollbar when loading overlay is active */
body:has(.loading-screen),
body:has(.page-loading) {
  overflow: hidden;
}

code {
  font-family: var(--wss-font-family-mono);
}

/* ═══════════════════════════════════════════════════════════════
   LIFECYCLE LOADING STATES
   ═══════════════════════════════════════════════════════════════ */

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: var(--wss-z-index-modal, 1000);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--wss-space-4, 1rem);
  background: var(--wss-bg-secondary, #ffffff);
  overflow: hidden;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--wss-neutrals-gray200, #e5e7eb);
  border-top-color: var(--wss-brand-primary, #0070f3);
  border-radius: var(--wss-border-radius-full, 9999px);
  animation: spin 0.8s linear infinite;
}

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

.loading-text {
  font-size: var(--wss-font-size-sm);
  color: var(--wss-text-muted);
}

.page-loading {
  position: fixed;
  inset: 0;
  z-index: calc(var(--wss-z-index-modal) - 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--wss-space-4);
  background: var(--wss-bg-secondary);
  overflow: hidden;
}
