/* Main Sidebar Navigation System */

/* AI Right Sidebar Variables */
:root {
  --ai-right-sidebar-width: 380px;
}

/* Top Navbar */
.top-navbar {
  position: fixed;
  top: 0;
  left: 70px;
  /* Start from sidebar edge */
  right: 0;
  height: 60px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: var(--z-navbar);
  overflow-x: auto;
  overflow-y: hidden;
}

/* Navbar adjusts when sidebar is expanded */
body:has(.main-sidebar:not(.collapsed)) .top-navbar {
  left: 240px;
}

.top-navbar::-webkit-scrollbar {
  height: 3px;
}

.top-navbar::-webkit-scrollbar-track {
  background: transparent;
}

.top-navbar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: max-content;
  width: 100%;
  padding: 0 1.5rem;
  height: 100%;
  gap: 1rem;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.navbar-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
}

.navbar-center > * {
  flex-shrink: 0;
}

.navbar-page-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Navbar Links */
.navbar-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.navbar-link:hover {
  background: var(--surface-2);
  color: var(--primary);
}

.navbar-link i {
  font-size: 14px;
}

.navbar-link span {
  display: inline;
}

@media (max-width: 768px) {
  .navbar-link span {
    display: none;
  }
}

.navbar-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-strong);
  margin: 0;
}

/* Global Navbar Dropdown Styles */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-trigger {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  padding: 0.5rem 0;
  pointer-events: none;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
}

.dropdown-item:hover {
  background: var(--surface-2);
  color: var(--primary);
}

.dropdown-header {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0;
}

.dark-mode-toggle {
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 18px;
}

.dark-mode-toggle:hover {
  background: var(--surface-2);
  color: var(--primary);
}

/* Notification Bell */
.notification-bell {
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 18px;
  position: relative;
}

.notification-bell:hover {
  background: var(--surface-2);
  color: var(--primary);
}

.notification-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--danger, #ef4444);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 10px;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Notification Bell Container & Dropdown */
.notification-bell-container {
  position: relative;
  display: flex;
  align-items: center;
  z-index: var(--z-notification-dropdown);
}

.notification-dropdown {
  position: fixed;
  top: calc(60px + 8px);
  right: 1.5rem;
  width: 400px;
  max-height: 50vh;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: var(--z-notification-dropdown);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.notification-bell-container:hover .notification-dropdown,
.notification-dropdown:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.notification-dropdown.show,
.notification-bell-container.dropdown-open .notification-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.notification-dropdown-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.notification-dropdown-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.notification-dropdown-header .text-muted {
  margin: 0.25rem 0 0 0;
  font-size: 0.75rem;
  color: var(--text-muted, #6b7280);
}

.notification-dropdown-content {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
}

.notification-dropdown-content::-webkit-scrollbar {
  width: 6px;
}

.notification-dropdown-content::-webkit-scrollbar-track {
  background: var(--surface-2);
  border-radius: 3px;
}

.notification-dropdown-content::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.notification-dropdown-content::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.notification-item {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 8px;
  background: var(--surface-2, #f9fafb);
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
  align-items: flex-start;
}

.notification-item:hover {
  background: var(--surface-3, #f3f4f6);
  transform: translateX(-2px);
}

.notification-item.read {
  opacity: 0.8;
}

.notification-item.read .notification-icon {
  filter: grayscale(0.3);
}

.notification-item .notification-meta {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted, #9ca3af);
  margin-top: 0.35rem;
}

.notification-item:last-child {
  margin-bottom: 0;
}

.notification-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: 8px;
}

.notification-body {
  flex: 1;
  min-width: 0;
}

.notification-body h4 {
  margin: 0 0 0.25rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.notification-body p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted, #6b7280);
  line-height: 1.4;
}

.notification-empty-state {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted, #6b7280);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
  justify-content: center;
}

.notification-empty-state i {
  font-size: 2rem;
  color: var(--success, #10b981);
}

.notification-empty-state small {
  font-size: 0.72rem;
  color: var(--text-muted, #94a3b8);
}

.notification-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  align-items: flex-start;
  margin-top: 0.25rem;
}

.btn-accept,
.btn-reject {
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: none;
  outline: none;
}

.btn-accept {
  background: var(--success, #10b981);
  color: white;
}

.btn-accept:hover {
  background: var(--success-dark, #059669);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-accept:active {
  transform: translateY(0);
}

.btn-reject {
  background: var(--surface-3, #e5e7eb);
  color: var(--text, #374151);
  border: 1px solid var(--border, #d1d5db);
}

.btn-reject:hover {
  background: var(--surface, #f9fafb);
  border-color: var(--text-muted, #9ca3af);
}

.btn-reject:active {
  background: var(--surface-2, #f3f4f6);
}

.notification-dropdown-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.view-all-link {
  font-size: 0.8rem;
  color: var(--text-muted, #6b7280);
  text-decoration: none;
  transition: color 0.2s ease;
}

.view-all-link:hover {
  color: var(--text, #111827);
}

.notification-read-all {
  border: none;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--primary, #2563eb);
  color: #fff;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.notification-read-all:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.notification-read-all:active {
  transform: translateY(0);
}

/* Animation for notification removal */
@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(20px);
  }
}

.notification-item.removing {
  animation: slideOutRight 0.3s ease forwards;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .notification-dropdown {
    width: 90vw;
    max-width: 400px;
    right: 1rem;
  }

  .notification-item {
    flex-direction: column;
    gap: 0.5rem;
  }

  .notification-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* Dark mode navbar styles */
[data-theme="dark"] .top-navbar {
  background: var(--surface-dark);
  border-bottom-color: var(--border-dark);
}

[data-theme="dark"] .navbar-title {
  color: var(--text-strong);
}

/* Sidebar Container */
.main-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  /* Start from very top */
  height: 100vh;
  /* Full height */
  width: 240px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  z-index: var(--z-sidebar-overlay);
  /* Above navbar */
  overflow-x: hidden;
  overflow-y: auto;
}

/* Disable transitions during page load initialization */
.main-sidebar.no-transition,
.main-sidebar.no-transition *,
.main-sidebar.no-transition .sidebar-nav-item span,
.main-sidebar.no-transition .sidebar-subnav {
  transition: none !important;
}

/* Disable ALL transitions on the entire page during sidebar initialization */
body:has(.main-sidebar.no-transition),
body:has(.main-sidebar.no-transition) *,
body:has(.main-sidebar.no-transition) *::before,
body:has(.main-sidebar.no-transition) *::after {
  transition: none !important;
  animation: none !important;
}

/* Collapsed State */
.main-sidebar.collapsed {
  width: 70px;
}

/* Sidebar Header */
.sidebar-header {
  padding: 0 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 18px;
  position: relative;
  z-index: 10;
}

.sidebar-toggle:hover {
  background: var(--surface-2);
  color: var(--primary);
}

.sidebar-toggle:active {
  transform: scale(0.95);
  background: var(--primary-light);
}


.main-sidebar:not(.collapsed) .sidebar-toggle i {
  transform: rotate(90deg);
}

/* Sidebar Search */
.sidebar-search {
  padding: 0 1rem;
  margin: 1rem 0 1.5rem 0;
  opacity: 1;
  visibility: visible;
}

.main-sidebar.collapsed .sidebar-search {
  opacity: 0;
  visibility: hidden;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}

.search-container:hover {
  border-color: var(--primary);
  background: var(--surface-3);
}

.search-icon {
  color: var(--text-muted);
  font-size: 14px;
  margin-right: 0.5rem;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  outline: none;
  font-family: 'Poppins', sans-serif;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-arrow {
  color: var(--text-muted);
  font-size: 12px;
  margin-left: 0.5rem;
}

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 0.75rem;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Navigation Group */
.sidebar-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-nav-item-container {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
  position: relative;
}

.sidebar-nav-item-container .sidebar-nav-item {
  flex: 1;
}

.sidebar-nav-action {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.sidebar-nav-action:hover {
  background: var(--primary);
  color: var(--text-inverse);
  border-color: var(--primary);
  transform: scale(1.05);
}

.main-sidebar.collapsed .sidebar-nav-action {
  position: absolute;
  top: 0;
  right: -8px;
  width: 20px;
  height: 20px;
  font-size: 10px;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Navigation Items */
.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  border: none;
  text-align: left;
  width: 100%;
  white-space: nowrap;
}

.sidebar-nav-item:hover {
  background: var(--surface-2);
  color: var(--primary);
  transform: translateX(2px);
}

.sidebar-nav-item.active,
.sidebar-nav-group.active>.sidebar-nav-item {
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary);
  font-weight: 600;
}

.sidebar-nav-item i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-nav-item span {
  opacity: 1;
  visibility: visible;
}

/* Subnav Items */
.sidebar-subnav {
  display: none;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.25rem 0 0.5rem 0;
  margin-left: 0;
}

.sidebar-nav-group.active .sidebar-subnav {
  display: flex;
}

.sidebar-subnav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
}

.sidebar-subnav-item:hover {
  background: var(--surface-2);
  color: var(--primary);
  transform: translateX(2px);
}

.sidebar-subnav-item i {
  font-size: 12px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.7;
}

/* Collapsed Navigation Items */
.main-sidebar.collapsed .sidebar-nav-item {
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  min-width: 40px;
  margin: 0 auto;
}

.main-sidebar.collapsed .sidebar-nav-item span {
  display: none;
}

.main-sidebar.collapsed .sidebar-nav-item i {
  margin: 0;
}

/* Hide subnavs when collapsed */
.main-sidebar.collapsed .sidebar-subnav {
  display: none !important;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 1rem 0.75rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Dark Mode Toggle in Sidebar */
.sidebar-dark-mode {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  width: 100%;
  justify-content: flex-start;
}

.sidebar-dark-mode span {
  opacity: 1;
  visibility: visible;
  white-space: nowrap;
}

.sidebar-dark-mode i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

/* User Profile */
.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  width: 100%;
}

.user-profile:hover {
  background: var(--surface-2);
  color: var(--primary);
}

.user-profile.active {
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary);
  font-weight: 600;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.user-name {
  opacity: 1;
  visibility: visible;
  white-space: nowrap;
}

/* Collapsed state - center everything */
.main-sidebar.collapsed .sidebar-footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
  gap: 0.5rem;
}

.main-sidebar.collapsed .sidebar-footer .sidebar-nav-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.main-sidebar.collapsed .sidebar-dark-mode {
  justify-content: center;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  min-width: 40px;
}

.main-sidebar.collapsed .sidebar-dark-mode span {
  display: none;
}

.main-sidebar.collapsed .sidebar-dark-mode i {
  margin: 0;
}

.main-sidebar.collapsed .user-profile {
  justify-content: center;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  min-width: 40px;
}

.main-sidebar.collapsed .user-avatar {
  margin: 0;
}

.main-sidebar.collapsed .user-name {
  display: none;
}

.main-sidebar.collapsed .sidebar-subnav {
  display: none !important;
}

/* Search Trigger Button (Special styling) */
.sidebar-nav-item.search-trigger {
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary);
  font-weight: 600;
  border: 1px solid rgba(102, 126, 234, 0.3);
}

.sidebar-nav-item.search-trigger:hover {
  background: var(--primary);
  color: white;
  transform: translateX(2px) scale(1.02);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Scrollbar Styling */
.sidebar-nav::-webkit-scrollbar {
  width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: var(--border-2);
}

/* Dark Mode Adjustments */
[data-theme="dark"] .main-sidebar {
  background: var(--surface-dark);
  border-right-color: var(--border-dark);
}

[data-theme="dark"] .sidebar-nav-item:hover {
  background: var(--surface-2-dark);
}

[data-theme="dark"] .sidebar-nav-item.active {
  background: var(--primary-dark);
  color: var(--primary-light);
}

[data-theme="dark"] .user-profile:hover {
  background: var(--surface-2-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-sidebar {
    transform: translateX(-100%);
  }

  .main-sidebar.show {
    transform: translateX(0);
  }

  /* Mobile backdrop */
  .main-sidebar.show::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
  }
}

/* Adjust body padding for sidebar */
body {
  padding-left: 70px;
  padding-top: 60px;
  transition: padding-left 0.3s ease, padding-right 0.3s ease;
}

/* Expanded sidebar pushes content */
body:has(.main-sidebar:not(.collapsed)) {
  padding-left: 240px;
}

/* Force body padding update when sidebar state changes */
.main-sidebar:not(.collapsed)~* {
  margin-left: 0;
}

/* AI Right Sidebar Push Layout */
body.ai-right-sidebar-open {
  padding-right: var(--ai-right-sidebar-width);
}

/* Hide floating AI button when sidebar is open */
body.ai-right-sidebar-open #floatingAiAssistant {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: none;
}

@media (max-width: 768px) {
  body {
    padding-left: 0;
  }

  /* On mobile, AI sidebar is overlay (full width, no push) */
  body.ai-right-sidebar-open {
    padding-right: 0;
    overflow: hidden;
  }

  body.ai-right-sidebar-open #floatingAiAssistant {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: none;
  }
}

/* Smooth transitions */
* {
  box-sizing: border-box;
}

/* Accessibility */
.sidebar-hamburger:focus,
.sidebar-nav-item:focus,
.user-profile:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* No animation on page load for instant display */