@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Lora:ital,wght@1,600&display=swap');

:root {
  --font-ui: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Lora', serif;
  --color-bg: #fff8f5;
  --color-card: #ffffff;
  --color-sidebar: #ffffff;
  --color-brand: #f97316;
  --color-brand-strong: #ef4444;
  --color-brand-gradient: linear-gradient(135deg, #f97316, #ef4444);
  --color-border: #f0ede8;
  --color-text-primary: #1c1917;
  --color-text-secondary: #78716c;
  --color-text-muted: #a8a29e;
  --color-surface-soft: #faf8f6;
  --color-surface-tint: #fff1eb;
  --color-success-bg: #dcfce7;
  --color-success-text: #166534;
  --color-warning-bg: #fef3c7;
  --color-warning-text: #92400e;
  --color-danger-bg: #fee2e2;
  --color-danger-text: #991b1b;
  --color-info-bg: #eff6ff;
  --color-info-text: #1d4ed8;
  --color-unread-dot: #f97316;
  --radius-section: 20px;
  --radius-card: 18px;
  --radius-btn: 50px;
  --radius-btn-square: 12px;
  --radius-input: 12px;
  --radius-pill: 50px;
  --shadow-hover: 0 16px 40px rgba(249, 115, 22, 0.12);
  --shadow-modal: 0 32px 80px rgba(0, 0, 0, 0.18);
  --shadow-nudge: 0 8px 32px rgba(249, 115, 22, 0.2);
  --shadow-soft: 0 10px 26px rgba(28, 25, 23, 0.06);
  --transition: all 0.2s ease;
  --border: 1.5px solid var(--color-border);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  background: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#root {
  min-height: 100vh;
}
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: inherit;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

input,
textarea,
select {
  color: var(--color-text-primary);
}

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

.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.card {
  background: var(--color-card);
  border: var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.input-field {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: var(--border);
  border-radius: var(--radius-input);
  background: #fff;
  color: var(--color-text-primary);
  outline: none;
  transition: var(--transition);
}

.input-field:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 24px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 800;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-lg {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 700;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--color-brand-gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.4);
}

.btn-secondary {
  background: #fff;
  color: var(--color-text-secondary);
  border: var(--border);
  font-weight: 600;
}

.btn-secondary:hover:not(:disabled) {
  background: var(--color-surface-soft);
}

.btn-text {
  padding: 6px;
  min-height: auto;
  border-radius: 8px;
  color: var(--color-text-secondary);
  font-weight: 600;
}

.btn-text:hover:not(:disabled) {
  background: var(--color-surface-tint);
  color: var(--color-brand);
  transform: none;
}

.btn-success {
  background: var(--color-success-bg);
  color: var(--color-success-text);
  box-shadow: none;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.w-full {
  width: 100%;
}

.gap-3 {
  gap: 12px;
}

.text-secondary,
.text-muted {
  color: var(--color-text-secondary);
}

.text-danger {
  color: var(--color-danger-text);
}

.animate-fade-in {
  animation: fadeIn 0.45s ease forwards;
}

.skeleton {
  background: linear-gradient(90deg, #f5f5f5 25%, #ebebeb 50%, #f5f5f5 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

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

@media (max-width: 768px) {
  .container {
    width: min(100% - 32px, 1200px);
  }
}
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
}

.main-content {
  flex: 1;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 20px 0;
  background: rgba(255, 248, 245, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(240, 237, 232, 0.8);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-brand);
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-brand-gradient);
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.22);
  font-size: 16px;
}

.logo-wordmark {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  font-weight: 600;
  color: var(--color-brand);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-actions,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link {
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-brand);
}

.nav-user-pill,
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  border: 1.5px solid rgba(240, 237, 232, 1);
  background: #fff;
  color: var(--color-text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.nav-user-avatar,
.avatar,
.sidebar-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-brand-gradient);
  color: #fff;
  font-weight: 800;
}

.nav-user-avatar {
  width: 32px;
  height: 32px;
  font-size: 12px;
}

.mobile-menu-toggle,
.mobile-close-btn {
  display: none;
  color: var(--color-text-secondary);
}

.nav-actions-mobile {
  display: none;
}

.dashboard-layout {
  min-height: 100vh;
  display: flex;
  background: var(--color-bg);
}

.sidebar {
  width: 220px;
  min-width: 220px;
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  background: var(--color-sidebar);
  border-right: 1px solid var(--color-border);
  z-index: 40;
}

.sidebar-header {
  padding: 24px 20px 18px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 14px 18px;
  flex: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}

.sidebar-link svg {
  width: 15px;
  height: 15px;
}

.sidebar-link:hover {
  background: var(--color-surface-soft);
  color: var(--color-text-primary);
}

.sidebar-link.active {
  background: var(--color-surface-tint);
  color: var(--color-brand);
  font-weight: 700;
}

.sidebar-footer {
  padding: 24px 20px 20px;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--color-surface-soft);
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: var(--color-surface-tint);
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  font-size: 12px;
  flex-shrink: 0;
}

.sidebar-user-copy {
  min-width: 0;
}

.sidebar-user-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.sidebar-user-copy span {
  display: block;
  font-size: 11px;
  color: var(--color-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dashboard-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--color-bg);
  border-bottom: 1.5px solid #fecaca15;
}

.topbar-actions .btn-text {
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
}

.topbar-actions .btn-text:hover {
  background: var(--color-surface-tint);
  color: var(--color-brand);
}

.avatar {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

.user-chip {
  padding-right: 10px;
}

.user-chip-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.user-chip-name {
  font-size: 14px;
  font-weight: 700;
}

.user-chip-arrow {
  color: var(--color-text-muted);
}

.dashboard-content {
  flex: 1;
  padding: 20px 32px 32px;
}

.dashboard-content-inner {
  width: min(100%, 1220px);
}

.sidebar-overlay {
  display: none;
}

footer {
  background: #1c1917 !important;
}

footer .logo-wordmark {
  color: #fff;
}

footer a {
  color: rgba(255, 255, 255, 0.65) !important;
}

@media (max-width: 1024px) {
  .sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-100%);
    transition: var(--transition);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(28, 25, 23, 0.28);
    backdrop-filter: blur(3px);
    z-index: 35;
  }

  .mobile-menu-toggle,
  .mobile-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .dashboard-topbar {
    padding: 18px 20px;
  }

  .dashboard-content {
    padding: 0 20px 28px;
  }
}

@media (max-width: 860px) {
  .navbar .container {
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 8px;
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .nav-actions {
    display: none;
  }

  .nav-actions-mobile {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .dashboard-topbar {
    align-items: stretch;
    flex-direction: column;
    padding: 16px;
  }

  .topbar-actions {
    justify-content: space-between;
  }

  .dashboard-content {
    padding: 0 16px 24px;
  }
}