@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Poppins:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');
@import url('variables.css');
@import url('animations.css');
@import url('footer.css');
@import url('layout/topbar.css');
@import url('layout/workspace.css');
@import url('layout/settingsPanel.css');
@import url('layout/panel.css');
@import url('components/inputs.css');
@import url('components/preview.css');

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

html {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  opacity: 0;
  transition: opacity 0.4s ease;
}
body.ready { opacity: 1; }

body.loading {
  overflow: hidden;
}

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(8, 8, 8);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease;
}

.loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #444;
  border-top: 6px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

.loader-text {
  color: #ccc;
  font-size: 1.2rem;
  font-family: 'Poppins', sans-serif;
  animation: fadeInText 1.5s ease-in-out infinite alternate;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
  transition: all 0.15s ease;
}

input, select, textarea {
  font-family: var(--font-body);
}

.pcr-app {
  font-family: var(--font-body) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
}