@import url("https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,100..900&display=swap");

@font-face {
  font-family: "Degular Display";
  src: url("../Font/Degular Display Semibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Degular Display";
  src: url("../Font/Degular Display Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Inter", system-ui, -apple-system, sans-serif;
  --app-bg: #f7f7f5;
  --surface-strong: #ffffff;
  --surface-muted: #f1f0ee;
  --surface-subtle: #f7f7f5;
  --border-soft: #e8e5e1;
  --border-strong: #d4d0cb;
  --border-divider: #eeecea;
  --accent: #ff991c;
  --accent-strong: #e68a00;
  --accent-muted: rgba(255, 153, 28, 0.10);
  --accent-hover: rgba(255, 153, 28, 0.06);
  --trend-positive: #1f9d5c;
  --trend-positive-soft: rgba(31, 157, 92, 0.1);
  --trend-neutral: #d97706;
  --trend-neutral-soft: rgba(245, 154, 45, 0.15);
  --trend-negative: #d04050;
  --trend-negative-soft: rgba(208, 64, 80, 0.1);
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text-primary: #1a1a1a;
  --text-secondary: #525252;
  --text-tertiary: #8a8a8a;
  --text-disabled: #b5b5b5;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.03);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.06), 0 4px 10px rgba(0,0,0,0.04);
  --radius-full: 999px;
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* Legacy variable aliases for backward compatibility */
  --text-strong: var(--text-primary);
  --text-medium: var(--text-secondary);
  --text-muted: var(--text-tertiary);
  --text-soft: var(--text-disabled);
  --app-gradient: var(--app-bg);
  --surface-glass: var(--surface-strong);
  --blur-soft: 12px;
  --blur-strong: 12px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14.5px;
  background: var(--app-bg);
  color: var(--text-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  background: none;
  cursor: pointer;
  transition: filter var(--transition), transform var(--transition), box-shadow var(--transition), background var(--transition);
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-medium);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden,
.admin-hidden {
  display: none !important;
}

body.client-mode .admin-layout {
  display: none;
}

body.admin-mode .client-container,
body.admin-mode .foot {
  display: none;
}
