html, body {
  height: 100%;
}

body {
  margin: 0;
  background: #f3f4f6;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: #0f172a;
}

.app-header {
  height: 56px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
}

.app-header-inner {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.app-logo {
  height: 22px;
  width: auto;
  display: block;
}

.user-menu {
  position: relative;
}

.user-avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #0b1220;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 220px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 12px;
  box-shadow: 0 18px 55px rgba(2, 6, 23, 0.18);
  overflow: hidden;
  display: none;
}

.user-dropdown.is-open {
  display: block;
}

.user-dropdown-header {
  padding: 12px 12px 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.user-dropdown-name {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.user-dropdown-sub {
  font-size: 12px;
  margin: 4px 0 0;
  color: rgba(15, 23, 42, 0.62);
}

.user-dropdown a, .user-dropdown button {
  width: 100%;
  border: 0;
  background: none;
  padding: 10px 14px;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.88);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.user-dropdown a:hover, .user-dropdown button:hover {
  background: rgba(15, 23, 42, 0.04);
}

.app-main {
  min-height: calc(100vh - 56px);
}

/* Toasts */
.toast-container {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  width: min(360px, calc(100vw - 28px));
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 12px;
  box-shadow: 0 18px 55px rgba(2, 6, 23, 0.18);
  padding: 12px 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  pointer-events: auto;
  animation: toast-in 160ms ease-out;
}

.toast-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 4px;
  background: rgba(59, 130, 246, 0.9);
  flex: none;
}

.toast-body {
  flex: 1;
  min-width: 0;
}

.toast-text {
  margin: 0;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.88);
  line-height: 1.35;
  word-break: break-word;
}

.toast-close {
  border: 0;
  background: none;
  cursor: pointer;
  color: rgba(15, 23, 42, 0.55);
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 8px;
}

.toast-close:hover {
  background: rgba(15, 23, 42, 0.04);
}

.toast.is-success .toast-dot { background: rgba(34, 197, 94, 0.95); }
.toast.is-error .toast-dot { background: rgba(239, 68, 68, 0.95); }
.toast.is-warning .toast-dot { background: rgba(245, 158, 11, 0.95); }
.toast.is-info .toast-dot { background: rgba(59, 130, 246, 0.95); }

@keyframes toast-in {
  from { transform: translateY(-6px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

