/**
 * docsify-content-toolbar.css
 * 
 * Modern, elegant toolbar styles for Docsify documentation
 * Features: Language switcher, Page options dropdown, Theme toggle
 * 
 * @author AvalAI Documentation Team
 * @version 1.0.0
 */

/* ===== CSS Variables ===== */
:root {
  /* Toolbar colors - Light theme */
  --toolbar-bg: #ffffff;
  --toolbar-border: rgba(0, 0, 0, 0.08);
  --toolbar-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  
  /* Button colors - Light theme */
  --toolbar-btn-bg: transparent;
  --toolbar-btn-hover-bg: rgba(0, 0, 0, 0.04);
  --toolbar-btn-active-bg: rgba(0, 0, 0, 0.08);
  --toolbar-btn-text: #374151;
  --toolbar-btn-text-muted: #6b7280;
  --toolbar-btn-border: rgba(0, 0, 0, 0.1);
  
  /* Dropdown colors - Light theme */
  --dropdown-bg: #ffffff;
  --dropdown-border: rgba(0, 0, 0, 0.1);
  --dropdown-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
  --dropdown-item-hover: rgba(59, 130, 246, 0.06);
  --dropdown-item-active: rgba(59, 130, 246, 0.1);
  --dropdown-divider: rgba(0, 0, 0, 0.06);
  
  /* Notification colors - Solid backgrounds for better visibility */
  --notification-success-bg: #ecfdf5;
  --notification-success-border: #a7f3d0;
  --notification-success-text: #065f46;
  --notification-success-icon: #10b981;
  --notification-error-bg: #fef2f2;
  --notification-error-border: #fecaca;
  --notification-error-text: #991b1b;
  --notification-error-icon: #ef4444;
  --notification-info-bg: #eff6ff;
  --notification-info-border: #bfdbfe;
  --notification-info-text: #1e40af;
  --notification-info-icon: #3b82f6;
  
  /* Accent color */
  --toolbar-accent: #3b82f6;
}

/* Dark theme variables - Subtle gray design */
[data-theme="dark"] {
  --toolbar-bg: #161b22;
  --toolbar-border: #21262d;
  --toolbar-shadow: none;
  
  --toolbar-btn-bg: transparent;
  --toolbar-btn-hover-bg: rgba(255, 255, 255, 0.04);
  --toolbar-btn-active-bg: rgba(255, 255, 255, 0.08);
  --toolbar-btn-text: #c9d1d9;
  --toolbar-btn-text-muted: #8b949e;
  --toolbar-btn-border: #30363d;
  
  --dropdown-bg: #21262d;
  --dropdown-border: #30363d;
  --dropdown-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  --dropdown-item-hover: rgba(255, 255, 255, 0.04);
  --dropdown-item-active: rgba(255, 255, 255, 0.08);
  --dropdown-divider: #30363d;
  
  /* Dark theme notification colors - Solid backgrounds */
  --notification-success-bg: #064e3b;
  --notification-success-border: #059669;
  --notification-success-text: #a7f3d0;
  --notification-success-icon: #34d399;
  --notification-error-bg: #7f1d1d;
  --notification-error-border: #dc2626;
  --notification-error-text: #fecaca;
  --notification-error-icon: #f87171;
  --notification-info-bg: #1e3a5f;
  --notification-info-border: #3b82f6;
  --notification-info-text: #bfdbfe;
  --notification-info-icon: #60a5fa;
  
  /* Use gray instead of blue for focus states */
  --toolbar-accent: #484f58;
}

/* ===== Content Toolbar Container ===== */
.content-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 8px 16px;
  /* background: var(--toolbar-bg); */
  border-bottom: 1px solid var(--toolbar-border);
  box-shadow: var(--toolbar-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 24px;
}

/* RTL support */
[dir="rtl"] .content-toolbar {
  justify-content: flex-end;
}

/* ===== Shared Button Styles ===== */
.content-toolbar button,
.content-toolbar select {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  transition: all 0.15s ease;
}

/* ===== Toolbar Button Base ===== */
.toolbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  background: var(--toolbar-btn-bg);
  color: var(--toolbar-btn-text);
  border: 1px solid var(--toolbar-btn-border);
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

.toolbar-btn:hover {
  background: var(--toolbar-btn-hover-bg);
}

.toolbar-btn:active,
.toolbar-btn.active {
  background: var(--toolbar-btn-active-bg);
}

.toolbar-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Icon-only button */
.toolbar-btn--icon {
  width: 32px;
  padding: 0;
}

/* ===== Language Switcher ===== */
.language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-switcher-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 28px 0 10px;
  background: var(--toolbar-btn-bg);
  color: var(--toolbar-btn-text);
  border: 1px solid var(--toolbar-btn-border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px;
}

.language-switcher-select:hover {
  background-color: var(--toolbar-btn-hover-bg);
}

.language-switcher-select:focus {
  outline: none;
  border-color: var(--toolbar-accent);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .language-switcher-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b949e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

[dir="rtl"] .language-switcher-select {
  padding: 0 10px 0 28px;
  background-position: left 8px center;
}

/* ===== Page Options Dropdown ===== */
.page-options {
  position: relative;
  display: inline-flex;
}

.page-options-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  background: var(--toolbar-btn-bg);
  color: var(--toolbar-btn-text);
  border: 1px solid var(--toolbar-btn-border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.page-options-button:hover {
  background: var(--toolbar-btn-hover-bg);
  color: #111827;
}

.page-options-button:hover svg {
  color: #111827;
}

[data-theme="dark"] .page-options-button:hover {
  color: #ffffff;
}

[data-theme="dark"] .page-options-button:hover svg {
  color: #ffffff;
}

.page-options-button:focus {
  outline: none;
  border-color: var(--toolbar-btn-border);
}

[data-theme="dark"] .page-options-button:focus {
  border-color: #484f58;
}

.page-options-button.active {
  background: var(--toolbar-btn-active-bg);
  border-color: var(--toolbar-btn-border);
}

[data-theme="dark"] .page-options-button.active {
  border-color: #484f58;
}

/* Override global dark theme button styles from main theme */
[data-theme="dark"] .content-toolbar button,
[data-theme="dark"] .content-toolbar .btn {
  border: 1px solid #30363d;
  color: var(--toolbar-btn-text);
  background-color: var(--toolbar-btn-bg);
}

[data-theme="dark"] .content-toolbar button:hover,
[data-theme="dark"] .content-toolbar .btn:hover {
  background-color: var(--toolbar-btn-hover-bg);
  color: #ffffff;
  border-color: #484f58;
}

/* Ensure consistent border in dark theme */
[data-theme="dark"] .page-options-button {
  border-color: #30363d;
}

[data-theme="dark"] .toolbar-theme-toggle {
  border-color: #30363d;
}

.page-options-button svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.page-options-button .dropdown-arrow {
  width: 10px;
  height: 10px;
  margin-left: 2px;
  opacity: 0.6;
  transform: rotate(180deg);
  transition: transform 0.2s ease;
}

.page-options-button.active .dropdown-arrow {
  transform: rotate(0deg);
}

[dir="rtl"] .page-options-button .dropdown-arrow {
  margin-left: 0;
  margin-right: 2px;
}

/* ===== Dropdown Menu ===== */
.page-options-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 260px;
  max-width: 300px;
  padding: 6px;
  background: var(--dropdown-bg);
  border: 1px solid var(--dropdown-border);
  border-radius: 10px;
  box-shadow: var(--dropdown-shadow);
  z-index: 999;
  animation: toolbarDropdownIn 0.15s ease-out;
}

/* Mobile bottom sheet mode - applied via JS class */
.page-options-dropdown.mobile-sheet {
  position: fixed !important;
  top: auto !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  min-width: 100% !important;
  max-width: 100% !important;
  width: 100% !important;
  border-radius: 16px 16px 0 0 !important;
  padding: 8px 12px calc(env(safe-area-inset-bottom, 16px) + 16px) !important;
  max-height: 70vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: toolbarDropdownSlideUp 0.25s cubic-bezier(0.32, 0.72, 0, 1) !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 10000 !important;
}

.page-options-dropdown.mobile-sheet::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: var(--toolbar-btn-border);
  border-radius: 2px;
  margin: 0 auto 12px;
}

[data-theme="dark"] .page-options-dropdown.mobile-sheet {
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

@keyframes toolbarDropdownIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toolbarDropdownSlideUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[dir="rtl"] .page-options-dropdown {
  right: auto;
  left: 0;
}

[dir="rtl"] .page-options-dropdown.mobile-sheet {
  right: 0 !important;
  left: 0 !important;
}

/* ===== Menu Items ===== */
.page-options-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  margin-top: 3px;
  background: transparent;
  color: var(--toolbar-btn-text);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.1s ease;
}

.page-options-menu-item:hover {
  background: var(--dropdown-item-hover);
}

.page-options-menu-item:active {
  background: var(--dropdown-item-active);
}

[dir="rtl"] .page-options-menu-item {
  text-align: right;
}

/* Menu item icon */
.menu-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--toolbar-btn-text-muted);
}

.menu-item-icon svg {
  width: 16px;
  height: 16px;
}

/* Menu item content */
.menu-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu-item-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--toolbar-btn-text);
  line-height: 1.3;
}

.menu-item-desc {
  font-size: 11px;
  font-weight: 400;
  color: var(--toolbar-btn-text-muted);
  line-height: 1.3;
}

/* Menu divider */
.page-options-menu-item + .page-options-menu-item:nth-child(5),
.page-options-menu-item + .page-options-menu-item:nth-child(8) {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--dropdown-divider);
  border-radius: 0 0 6px 6px;
}

/* ===== Theme Toggle Button ===== */
.toolbar-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: var(--toolbar-btn-bg);
  color: var(--toolbar-btn-text);
  border: 1px solid var(--toolbar-btn-border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.toolbar-theme-toggle:hover {
  background: var(--toolbar-btn-hover-bg);
  color: #111827;
}

.toolbar-theme-toggle:hover svg {
  stroke: #111827;
}

[data-theme="dark"] .toolbar-theme-toggle:hover {
  color: #ffffff;
}

[data-theme="dark"] .toolbar-theme-toggle:hover svg {
  stroke: #ffffff;
}

.toolbar-theme-toggle:focus {
  outline: none;
  border-color: var(--toolbar-accent);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.toolbar-theme-toggle:active {
  background: var(--toolbar-btn-active-bg);
  transform: scale(0.95);
}

.toolbar-theme-toggle svg {
  width: 16px;
  height: 16px;
}

/* Hide original docsify theme toggle */
#docsify-darklight-theme {
  position: absolute !important;
  left: -9999px !important;
  visibility: hidden !important;
}

/* ===== Toast Notification Container ===== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  z-index: 9999;
  pointer-events: none;
  max-width: calc(100vw - 48px);
}

[dir="rtl"] .toast-container {
  right: auto;
  left: 24px;
}

/* ===== Notifications ===== */
.page-options-notification {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--notification-info-bg);
  border: 1px solid var(--notification-info-border);
  border-radius: 10px;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    0 10px 15px -3px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(16px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  max-width: 380px;
  min-width: 280px;
  color: var(--notification-info-text);
}

.page-options-notification.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Notification Icon */
.page-options-notification::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Success notification */
.page-options-notification.success {
  background: var(--notification-success-bg);
  border-color: var(--notification-success-border);
  color: var(--notification-success-text);
}

.page-options-notification.success::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'%3E%3C/path%3E%3Cpolyline points='22 4 12 14.01 9 11.01'%3E%3C/polyline%3E%3C/svg%3E");
}

[data-theme="dark"] .page-options-notification.success::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'%3E%3C/path%3E%3Cpolyline points='22 4 12 14.01 9 11.01'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Error notification */
.page-options-notification.error {
  background: var(--notification-error-bg);
  border-color: var(--notification-error-border);
  color: var(--notification-error-text);
}

.page-options-notification.error::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='15' y1='9' x2='9' y2='15'%3E%3C/line%3E%3Cline x1='9' y1='9' x2='15' y2='15'%3E%3C/line%3E%3C/svg%3E");
}

[data-theme="dark"] .page-options-notification.error::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f87171' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='15' y1='9' x2='9' y2='15'%3E%3C/line%3E%3Cline x1='9' y1='9' x2='15' y2='15'%3E%3C/line%3E%3C/svg%3E");
}

/* Info notification */
.page-options-notification.info {
  background: var(--notification-info-bg);
  border-color: var(--notification-info-border);
  color: var(--notification-info-text);
}

.page-options-notification.info::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='16' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'%3E%3C/line%3E%3C/svg%3E");
}

[data-theme="dark"] .page-options-notification.info::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2360a5fa' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='16' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'%3E%3C/line%3E%3C/svg%3E");
}

/* Notification text content */
.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}

.notification-message {
  font-weight: 400;
  font-size: 13px;
  opacity: 0.9;
}

/* Close button for notifications */
.notification-close {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease;
  padding: 0;
  margin-left: auto;
  color: currentColor;
}

.notification-close:hover {
  opacity: 1;
}

.notification-close svg {
  width: 14px;
  height: 14px;
}

[dir="rtl"] .notification-close {
  margin-left: 0;
  margin-right: auto;
}

/* Notification progress bar for auto-dismiss */
.notification-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: currentColor;
  opacity: 0.3;
  border-radius: 0 0 10px 10px;
  transform-origin: left;
  animation: notification-progress 3s linear forwards;
}

[dir="rtl"] .notification-progress {
  transform-origin: right;
}

@keyframes notification-progress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

/* ===== Mobile Overlay Backdrop ===== */
.page-options-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.page-options-overlay.show {
  opacity: 1;
}

[data-theme="dark"] .page-options-overlay {
  background: rgba(0, 0, 0, 0.6);
}

/* ===== Mobile Bottom Sheet (when moved to body) ===== */
.page-options-dropdown.mobile-sheet {
  position: fixed !important;
  top: auto !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  min-width: 100% !important;
  max-width: 100% !important;
  width: 100% !important;
  border-radius: 16px 16px 0 0 !important;
  padding: 8px 12px calc(env(safe-area-inset-bottom, 16px) + 16px) !important;
  max-height: 70vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: toolbarDropdownSlideUp 0.25s cubic-bezier(0.32, 0.72, 0, 1) !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999 !important;
  background: var(--dropdown-bg);
  border: 1px solid var(--dropdown-border);
  border-bottom: none;
}

.page-options-dropdown.mobile-sheet::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: var(--toolbar-btn-border);
  border-radius: 2px;
  margin: 4px auto 12px;
}

[data-theme="dark"] .page-options-dropdown.mobile-sheet {
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

@keyframes toolbarDropdownSlideUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile sheet menu items */
.page-options-dropdown.mobile-sheet .page-options-menu-item {
  padding: 14px 16px;
  border-radius: 10px;
  margin: 2px 0;
  border: 1px solid var(--toolbar-btn-border) !important;
}

.page-options-dropdown.mobile-sheet .page-options-menu-item:active {
  transform: scale(0.98);
}

.page-options-dropdown.mobile-sheet .menu-item-label {
  font-size: 15px;
}

.page-options-dropdown.mobile-sheet .menu-item-desc {
  font-size: 12px;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
  .content-toolbar {
    padding: 8px 12px;
    gap: 4px;
    margin-bottom: 16px;
  }
  
  /* Hide text labels on mobile */
  .page-options-button span {
    display: none;
  }
  
  .page-options-button {
    width: 36px;
    padding: 0;
  }
  
  .page-options-button .dropdown-arrow {
    display: none;
  }
  
  /* Toast container on mobile */
  .toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
  
  [dir="rtl"] .toast-container {
    right: 16px;
    left: 16px;
  }
  
  /* Notifications on mobile */
  .page-options-notification {
    min-width: unset;
    max-width: none;
    width: 100%;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .content-toolbar {
    padding: 6px 10px;
    gap: 4px;
  }
  
  .toolbar-btn,
  .toolbar-theme-toggle,
  .page-options-button,
  .language-switcher-select {
    height: 30px;
  }
  
  .toolbar-btn--icon,
  .toolbar-theme-toggle {
    width: 30px;
  }
  
  .page-options-button {
    width: 34px;
  }
  
  .language-switcher-select {
    font-size: 12px;
    padding: 0 24px 0 8px;
  }
  
  [dir="rtl"] .language-switcher-select {
    padding: 0 8px 0 24px;
  }
}

/* ===== Print Styles ===== */
@media print {
  .content-toolbar {
    display: none;
  }
  
  .page-options-notification {
    display: none;
  }
}