/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.menu .app-brand.demo {
  height: 64px;
}

.app-brand-logo.demo svg {
  width: 34px;
  height: 24px;
}

.app-brand-text.demo {
  font-size: 1.375rem;
}

html[data-nexo-menu-pending='true'] #layout-menu .menu-inner,
html[data-nexo-menu-pending='true'] #layout-navbar {
  visibility: hidden;
}

html[data-nexo-menu-pending='false'] #layout-menu .menu-inner,
html[data-nexo-menu-pending='false'] #layout-navbar {
  visibility: visible;
}

/* ! For .layout-navbar-fixed added fix padding top to .layout-page */
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 72px !important;
}


/*******************************************************************************
 * NexoPanel True App-Mode (High-End Overhaul)
 * Targets screens under 576px
 ******************************************************************************/

@media (max-width: 1199.98px) {
  .layout-navbar {
    background: rgba(var(--bs-white-rgb), 0.75) !important;
    backdrop-filter: blur(12px) saturate(160%) !important;
    border-bottom: 1px solid rgba(0,0,0,0.03) !important;
  }
  .content-wrapper { padding: 0 !important; background-color: var(--bs-body-bg) !important; }
}

@media (max-width: 575.98px) {
  /* Hide standard Sidebar and UI for True App feel */
  .app-calendar-sidebar, .fc-header-toolbar { display: none !important; }
  
  .app-calendar-wrapper { border: 0 !important; box-shadow: none !important; }
  .app-calendar-content { 
    background: #f8f9fa; /* Light grey app background */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  /* 1. Custom App Header */
  .nexo-app-header {
    background: #1e293b; /* Deep dark blue like the reference */
    color: #fff;
    flex-direction: column;
    padding-bottom: 1rem;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    box-shadow: 0 10px 30px rgba(30, 41, 59, 0.2);
    z-index: 10;
  }

  .nexo-app-year-label { color: rgba(255, 255, 255, 0.6); }
  .nexo-app-actions i { color: #fff; }

  .nexo-app-month-scroller {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .nexo-app-month-scroller::-webkit-scrollbar { display: none; }

  .month-scroll-inner { display: flex; gap: 1.5rem; align-items: baseline; }
  .month-item { 
    font-size: 1rem; 
    font-weight: 500; 
    color: rgba(255, 255, 255, 0.4); 
    transition: all 0.3s ease;
  }
  .month-item.active { 
    font-size: 1.8rem; 
    font-weight: 800; 
    color: #fff; 
  }

  /* 2. Multi-Month Scheduler View (Vertical Stack) */
  .fc-multimonth {
    border: 0 !important;
    background: transparent !important;
  }

  .fc-multimonth-month {
    padding: 0 1rem 3rem 1rem !important; /* Air between months */
    border: 0 !important;
  }

  .fc-multimonth-title {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    padding: 2rem 0.5rem 1rem 0.5rem !important;
    text-align: left !important;
    border: 0 !important;
  }

  /* Grid styles for multi-month */
  .fc-multimonth-daygrid { border: 0 !important; }
  .fc-multimonth-daygrid-table { border: 0 !important; }
  .fc-multimonth-daygrid-table td { border: 0 !important; border-bottom: 1px solid rgba(0,0,0,0.02) !important; }

  /* Dots and numbers */
  .fc-daygrid-day-number { font-size: 1rem !important; font-weight: 600 !important; }
  
  .nexo-app-header { border-radius: 0 !important; } 

  .nexo-month-title {
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    letter-spacing: -0.04em;
  }

  /* Faded other-month days for a rich but clean look */
  .fc-day-other {
    opacity: 0.15 !important;
  }

  /* 3. High-End List View (True Table-Break & Card Layout) */
  .fc-list, .fc-list-table, .fc-list-table tbody, .fc-list-table tr {
    display: block !important;
    width: 100% !important;
    border: 0 !important;
    background: transparent !important;
  }

  /* Date Headers */
  .fc-list-day {
    display: block !important;
    margin-top: 1.5rem !important;
    padding: 0 1.25rem !important;
  }

  .fc-list-day-cushion {
    background: transparent !important;
    padding: 0 !important;
    display: flex;
    justify-content: space-between;
  }

  .fc-list-day-text, .fc-list-day-side-text {
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    color: #94a3b8 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  /* Individual Event Cards */
  .fc-list-event {
    display: block !important;
    background: #fff !important;
    margin: 12px 16px !important;
    padding: 1.25rem !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04) !important;
    border: 1px solid rgba(0,0,0,0.02) !important;
    border-left: 6px solid var(--bs-primary) !important;
    position: relative;
    overflow: hidden;
  }

  .fc-list-event > td {
    display: block !important;
    padding: 0 !important;
    background: transparent !important;
  }

  /* Time & Title alignment */
  .fc-list-event-time {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: var(--bs-primary) !important;
    margin-bottom: 0.5rem !important;
  }

  .fc-list-event-title {
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    line-height: 1.4 !important;
  }

  /* Hide old UI elements */
  .fc-list-event-graphic, .fc-list-event-dot {
    display: none !important;
  }

  /* Month/Grid mode fixes for maximum "Air" */
  .fc-theme-standard td, .fc-theme-standard th { border: 0 !important; }
  .fc .fc-daygrid-day-number { padding: 12px 0 !important; font-size: 1rem !important; }

  /* 3. Bottom Navigation Bar */
  .nexo-app-bottom-nav {
    position: fixed;
    bottom: 25px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    height: 70px;
    border-radius: 24px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.18);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
  }



  .nexo-app-bottom-nav .nav-item {
    font-size: 0.82rem;
    font-weight: 700;
    color: #94a3b8;
    padding: 10px 15px;
    transition: all 0.2s ease;
  }

  .nexo-app-bottom-nav .nav-item.active {
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.08);
    border-radius: 12px;
  }

  /* List view customization for Day View feel */
  .fc-list { border: 0 !important; background: #fff !important; border-radius: 30px 30px 0 0; margin-top: 1.5rem; }
  
  /* Icon Fix */
  .ti-plus { color: #fff !important; }
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/* Keep sidebar/navbar behind overlays and mute background focus */
.modal-backdrop {
  z-index: 1300 !important;
}

.modal {
  z-index: 1310 !important;
}

.attachment-delete-swal-popup {
  width: min(32rem, 92vw) !important;
  border-radius: 0.95rem !important;
  border: 1px solid rgba(111, 120, 141, 0.35) !important;
  background: #ffffff !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35) !important;
  padding: 1.2rem 1.2rem 1.05rem !important;
}

.attachment-delete-swal-title {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
}

.attachment-delete-swal-text {
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  color: #6b7280 !important;
  margin-top: 0.45rem !important;
}

.attachment-delete-swal-actions {
  gap: 0.55rem !important;
  margin-top: 1rem !important;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 254px;
    position: relative;
  }
  #dropdown-variation-demo .btn-group .text-truncate::after {
    position: absolute;
    top: 45%;
    right: 0.65rem;
  }
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}

.layout-navbar .navbar-dropdown.dropdown-shortcuts .dropdown-menu {
  min-inline-size: 26rem;
}

.layout-navbar .navbar-dropdown.dropdown-shortcuts .dropdown-shortcuts-list {
  max-block-size: none;
}

.layout-navbar .navbar-dropdown.dropdown-shortcuts .dropdown-shortcuts-item {
  min-block-size: 9.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}

.layout-navbar .navbar-dropdown.dropdown-shortcuts .dropdown-shortcuts-item small {
  font-size: 0.8125rem;
  line-height: 1.35;
  padding-inline: 0.5rem;
}
