/* ==========================================================================
   NOTION-STYLE DESIGN SYSTEM - ABROR AHMEDOV PLATFORM
   Clean 2D Vector Icons, Custom Dropdowns, Notion Modals & Toast Alerts
   ========================================================================== */

:root {
  /* Notion Light Palette */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F7F6F3;
  --bg-sidebar: #F7F6F3;
  --bg-sidebar-hover: #EFEFED;
  --bg-sidebar-active: #E8E7E4;
  --bg-hover: rgba(55, 53, 47, 0.04);
  --bg-hover-strong: rgba(55, 53, 47, 0.08);
  --bg-card: #FFFFFF;
  --bg-callout: #F1F1EF;
  --bg-modal: #FFFFFF;
  --bg-dropdown: #FFFFFF;
  
  /* Text */
  --text-primary: #37352F;
  --text-secondary: #787774;
  --text-muted: #9B9A97;
  --text-placeholder: #B4B3AE;
  
  /* Borders */
  --border-light: rgba(55, 53, 47, 0.09);
  --border-medium: rgba(55, 53, 47, 0.16);
  --border-strong: rgba(55, 53, 47, 0.28);
  --border-focus: #2383E2;
  
  /* Accent & Tag Pills */
  --accent-blue: #2383E2;
  --accent-blue-hover: #1B6CB8;
  --chip-gray-bg: rgba(55, 53, 47, 0.08);
  --chip-gray-text: #454B4E;
  --chip-green-bg: rgba(46, 133, 81, 0.14);
  --chip-green-text: #2E8551;
  --chip-blue-bg: rgba(35, 131, 226, 0.14);
  --chip-blue-text: #2383E2;
  --chip-yellow-bg: rgba(233, 168, 0, 0.18);
  --chip-yellow-text: #CB912F;
  --chip-purple-bg: rgba(144, 101, 176, 0.14);
  --chip-purple-text: #9065B0;
  --chip-red-bg: rgba(235, 87, 87, 0.14);
  --chip-red-text: #D4403A;

  /* Shadows */
  --shadow-card: rgba(15, 15, 15, 0.05) 0px 0px 0px 1px, rgba(15, 15, 15, 0.05) 0px 2px 4px;
  --shadow-hover: rgba(15, 15, 15, 0.08) 0px 0px 0px 1px, rgba(15, 15, 15, 0.08) 0px 4px 10px;
  --shadow-dropdown: rgba(15, 15, 15, 0.05) 0px 0px 0px 1px, rgba(15, 15, 15, 0.1) 0px 4px 14px;
  --shadow-modal: rgba(15, 15, 15, 0.05) 0px 0px 0px 1px, rgba(15, 15, 15, 0.1) 0px 6px 18px, rgba(15, 15, 15, 0.15) 0px 20px 45px;
  
  --font-notion: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-xs: 3px;
  --radius-sm: 5px;
  --radius-md: 7px;
  --radius-lg: 11px;
}

[data-theme="dark"] {
  /* Notion Dark Palette */
  --bg-primary: #191919;
  --bg-secondary: #202020;
  --bg-sidebar: #202020;
  --bg-sidebar-hover: #2B2B2B;
  --bg-sidebar-active: #323232;
  --bg-hover: rgba(255, 255, 255, 0.04);
  --bg-hover-strong: rgba(255, 255, 255, 0.08);
  --bg-card: #202020;
  --bg-callout: #252525;
  --bg-modal: #252525;
  --bg-dropdown: #252525;
  
  --text-primary: #EDEDED;
  --text-secondary: #9B9B9B;
  --text-muted: #6E6E6E;
  --text-placeholder: #5A5A5A;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.24);
  --border-focus: #529CCA;
  
  --accent-blue: #529CCA;
  --accent-blue-hover: #3C82AE;
  --chip-gray-bg: rgba(255, 255, 255, 0.1);
  --chip-gray-text: #B4B4B4;
  --chip-green-bg: rgba(77, 171, 154, 0.22);
  --chip-green-text: #4DAB9A;
  --chip-blue-bg: rgba(82, 156, 202, 0.22);
  --chip-blue-text: #529CCA;
  --chip-yellow-bg: rgba(202, 152, 73, 0.24);
  --chip-yellow-text: #CA9849;
  --chip-purple-bg: rgba(154, 109, 215, 0.22);
  --chip-purple-text: #9A6DD7;
  --chip-red-bg: rgba(255, 115, 105, 0.22);
  --chip-red-text: #FF7369;

  --shadow-card: rgba(0, 0, 0, 0.25) 0px 0px 0px 1px, rgba(0, 0, 0, 0.3) 0px 2px 4px;
  --shadow-hover: rgba(0, 0, 0, 0.35) 0px 0px 0px 1px, rgba(0, 0, 0, 0.4) 0px 4px 10px;
  --shadow-dropdown: rgba(0, 0, 0, 0.4) 0px 0px 0px 1px, rgba(0, 0, 0, 0.5) 0px 6px 18px;
  --shadow-modal: rgba(0, 0, 0, 0.4) 0px 0px 0px 1px, rgba(0, 0, 0, 0.6) 0px 8px 24px, rgba(0, 0, 0, 0.8) 0px 22px 55px;
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */

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

body.notion-app {
  font-family: var(--font-notion);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Notion Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ==========================================================================
   SVG ICONS (2D MINIMALIST NOTION ICONS)
   ========================================================================== */

.icon-2d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-2d svg {
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   LAYOUT: SIDEBAR + MAIN CANVAS
   ========================================================================== */

.notion-layout {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  background-color: var(--bg-primary);
}

/* SIDEBAR */
.notion-sidebar {
  width: 250px;
  min-width: 250px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), margin-left 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.notion-sidebar.collapsed {
  margin-left: -250px;
}

/* Workspace Header */
.notion-workspace-header {
  padding: 12px 10px 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.workspace-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  flex: 1;
  min-width: 0;
}
.workspace-brand:hover {
  background-color: var(--bg-sidebar-hover);
}

.workspace-avatar {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: var(--chip-blue-bg);
  color: var(--chip-blue-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.workspace-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.workspace-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workspace-plan {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 450;
}

/* Sidebar Search */
.notion-sidebar-search {
  margin: 6px 12px 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 12.5px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
  transition: border-color 0.15s, background-color 0.15s;
}
.notion-sidebar-search:hover {
  background-color: var(--bg-sidebar-hover);
  border-color: var(--border-medium);
}
.notion-sidebar-search kbd {
  margin-left: auto;
  font-size: 10px;
  background: var(--bg-hover-strong);
  padding: 2px 5px;
  border-radius: 3px;
  color: var(--text-muted);
  font-family: inherit;
}

/* Sidebar Navigation Items */
.notion-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 4px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-section-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  padding: 10px 8px 4px 8px;
}

.notion-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.12s, color 0.12s;
  cursor: pointer;
}
.notion-nav-item:hover {
  background-color: var(--bg-sidebar-hover);
  color: var(--text-primary);
}
.notion-nav-item.active {
  background-color: var(--bg-sidebar-active);
  color: var(--text-primary);
  font-weight: 600;
}

.notion-page-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}
.notion-nav-item.active .notion-page-icon {
  color: var(--text-primary);
}

.notion-page-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notion-nav-badge {
  font-size: 11px;
  background-color: var(--bg-hover-strong);
  padding: 1px 6px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-weight: 600;
}

.link-arrow {
  font-size: 12px;
  color: var(--text-muted);
}

/* Sidebar Footer */
.notion-sidebar-footer {
  padding: 10px 12px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.user-avatar-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--chip-purple-bg);
  color: var(--chip-purple-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
}
.user-meta {
  display: flex;
  flex-direction: column;
}
.user-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
}
.bot-online-tag {
  font-size: 10.5px;
  color: var(--chip-green-text);
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Notion Icon Button */
.notion-icon-btn {
  background: none;
  border: none;
  padding: 5px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.notion-icon-btn:hover {
  background: var(--bg-sidebar-hover);
  color: var(--text-primary);
}

/* ==========================================================================
   MAIN CANVAS & TOP BAR
   ========================================================================== */

.notion-main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  background-color: var(--bg-primary);
}

/* Top Bar */
.notion-topbar {
  height: 48px;
  min-height: 48px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  z-index: 90;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-expand-btn {
  display: none;
}
.notion-sidebar.collapsed + .notion-main-content .sidebar-expand-btn {
  display: flex;
}

.notion-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-secondary);
}
.breadcrumb-sep {
  color: var(--text-muted);
}
.breadcrumb-item.current-page {
  color: var(--text-primary);
  font-weight: 550;
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notion-live-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 4px 8px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
}
.live-dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #2E8551;
  box-shadow: 0 0 6px rgba(46, 133, 81, 0.6);
}

/* Notion Buttons */
.notion-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
}
.notion-btn-secondary {
  background-color: var(--bg-primary);
  border-color: var(--border-medium);
  color: var(--text-primary);
}
.notion-btn-secondary:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-strong);
}
.notion-btn-primary {
  background-color: var(--accent-blue);
  color: #FFFFFF;
}
.notion-btn-primary:hover {
  background-color: var(--accent-blue-hover);
}

/* ==========================================================================
   PAGE CANVAS & HEADERS
   ========================================================================== */

.notion-page-canvas {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 36px 80px 36px;
}

.notion-page-header {
  margin-bottom: 22px;
}

.notion-hero-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.notion-hero-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

/* Notion Callout Box */
.notion-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background-color: var(--bg-callout);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 12px;
}
.notion-callout-icon {
  color: var(--text-secondary);
  margin-top: 2px;
}
.notion-callout-content {
  flex: 1;
}

/* ==========================================================================
   METRIC PROPERTY CARDS (STATS)
   ========================================================================== */

.notion-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}

.notion-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s, box-shadow 0.15s;
}
.notion-stat-card:hover {
  box-shadow: var(--shadow-hover);
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.stat-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}
.stat-icon {
  color: var(--text-muted);
}
.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

/* ==========================================================================
   DATABASE VIEWS & CONTROLS (NOTION TABS & FILTERS)
   ========================================================================== */

.notion-database-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

.notion-view-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.notion-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.notion-tab-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.notion-tab-btn.active {
  color: var(--text-primary);
  font-weight: 600;
  background: var(--bg-sidebar-active);
}

.notion-table-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notion-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
}
.notion-search-box input {
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  width: 180px;
}

/* ==========================================================================
   CUSTOM NOTION SELECT / DROPDOWN
   ========================================================================== */

.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 8px 32px 8px 12px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13.5px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23787774' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
}

.custom-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(35, 131, 226, 0.18);
}

/* ==========================================================================
   NOTION DATA TABLE
   ========================================================================== */

.notion-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow-x: auto;
  margin-bottom: 24px;
}

.notion-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.notion-table th {
  padding: 8px 12px;
  font-weight: 500;
  font-size: 12px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  background: var(--bg-secondary);
  white-space: nowrap;
}
.notion-table th .th-content {
  display: flex;
  align-items: center;
  gap: 6px;
}
.notion-table th:last-child {
  border-right: none;
}

.notion-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  color: var(--text-primary);
  white-space: nowrap;
  transition: background 0.1s;
}
.notion-table td:last-child {
  border-right: none;
}

.notion-table tr:last-child td {
  border-bottom: none;
}
.notion-table tbody tr:hover td {
  background-color: var(--bg-hover);
}

/* Notion Tag Pill Badges */
.notion-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
}
.pill-green, .pill-yakunlagan {
  background-color: var(--chip-green-bg);
  color: var(--chip-green-text);
}
.pill-blue, .pill-jarayonda {
  background-color: var(--chip-blue-bg);
  color: var(--chip-blue-text);
}
.pill-yellow, .pill-yangi {
  background-color: var(--chip-yellow-bg);
  color: var(--chip-yellow-text);
}
.pill-purple {
  background-color: var(--chip-purple-bg);
  color: var(--chip-purple-text);
}
.pill-red, .pill-blok {
  background-color: var(--chip-red-bg);
  color: var(--chip-red-text);
}
.pill-gray {
  background-color: var(--chip-gray-bg);
  color: var(--chip-gray-text);
}

/* ==========================================================================
   NOTION MODALS & POPUPS
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 15, 15, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.18s ease;
}

.modal-content-form, .modal-content {
  background: var(--bg-modal);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 26px;
  position: relative;
  transform: scale(1);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 16px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* Notion Form Styles */
.form-group {
  margin-bottom: 15px;
}
.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--text-secondary);
  margin-bottom: 5px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(35, 131, 226, 0.18);
}

.action-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--accent-blue);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 550;
  cursor: pointer;
  transition: background 0.15s;
}
.action-btn-primary:hover {
  background: var(--accent-blue-hover);
}

/* ==========================================================================
   NOTION TOAST ALERTS & CUSTOM DIALOGS
   ========================================================================== */

#notion-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.notion-toast {
  pointer-events: auto;
  background: var(--bg-modal);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-dropdown);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-primary);
  min-width: 260px;
  max-width: 380px;
  animation: toastIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.notion-toast.toast-success {
  border-left: 3px solid var(--chip-green-text);
}
.notion-toast.toast-error {
  border-left: 3px solid var(--chip-red-text);
}
.notion-toast.toast-info {
  border-left: 3px solid var(--chip-blue-text);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Tab Content Visibility */
.tab-content-hidden {
  display: none !important;
}

.refresh-icon.spinning {
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .notion-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    box-shadow: var(--shadow-modal);
    transform: translateX(-100%);
    margin-left: 0;
  }
  .notion-sidebar.open {
    transform: translateX(0);
  }
  .sidebar-expand-btn {
    display: flex !important;
  }
  .notion-page-canvas {
    padding: 20px 16px 60px 16px;
  }
}
