/* =====================================================
   Salon Management UI Overrides
   Ensure consistent purple theme (#4f07b4) and uniform
   form element sizing & alignment across the app.
   Place this file AFTER app.css for maximum precedence.
   ===================================================== */

:root {
  /* Reinforce primary palette */
  --primary: #4f07b4;
  --secondary: #ff9a8b;
  --accent: #4f07b4;
}

/* -----------------------------------------------------
   Buttons & Badges – switch all blues to primary purple
   ----------------------------------------------------- */
.btn-primary,
.btn,
.btn.style-one,
.btn.style-two,
.btn.style-three,
.btn.style-four,
.react-tabs__tab--selected,
.badge-outline-purple,
.badge-alert {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
  background-image: none !important;
}

.btn:hover,
.btn:focus {
  background: #7a4eac !important;
  box-shadow: 0 2px 8px rgba(139, 95, 191, 0.3) !important;
}

/* Text utility colours */
.text-purple,
.text-light-purple,
.text_secondary {
  color: var(--primary) !important;
}

/* -----------------------------------------------------
   Remove residual blue gradients (#4f46e5 / #6366f1)
   ----------------------------------------------------- */
*[style*="4f46e5"],
*[style*="6366f1"] {
  color: var(--primary) !important;
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}

.btn,
.badge,
.bg-primary,
.text-primary {
  --bs-btn-bg: var(--primary) !important;
  --bs-btn-border-color: var(--primary) !important;
  --bs-btn-hover-bg: #7a4eac !important;
  --bs-btn-hover-border-color: #7a4eac !important;
  --bs-btn-active-bg: #6f479c !important;
  --bs-btn-active-border-color: #6f479c !important;
}

/* Sidebar accessibility tweaks */
.sidebar-area {
  background: #19164e !important; /* salon purple */
  color: #ffffff !important;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.05);
  overflow: visible !important; /* ensure drops visible */
  position: relative;
  z-index: 1000;
}

.sidebar-area .sidebar-menu-wrap .sidebar-menu > .nav-item > .nav-link {
  font-size: 15px;
  padding: 14px 16px;
  transition: background 0.18s ease, color 0.18s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}
/* icons default white */
.sidebar-area .sidebar-menu-wrap .sidebar-menu > .nav-item > .nav-link i {
  color: #ffffff !important;
  transition: color 0.18s ease;
}

/* -----------------------------------------------------
   List Group Active Override
   ----------------------------------------------------- */
.list-group-item.active {
  background-color: #514ca8 !important;
  border-color: #514ca8 !important;
  color: #fff !important;
}

/* -----------------------------------------------------
   Subtle 3-D Effects (Buttons & Cards)
   ----------------------------------------------------- */
.btn,
.btn-primary {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.card,
.booking-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover,
.booking-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* -----------------------------------------------------
   Form Elements – identical height & spacing
   ----------------------------------------------------- */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  height: 44px !important;
  border-radius: 6px !important;
  padding: 0 0.75rem !important;
  line-height: 1.4 !important;
  box-sizing: border-box;
}

textarea {
  min-height: 120px !important; /* allow more room for textareas */
}

.form-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  align-items: flex-start !important;
}

/* -----------------------------------------------------
   Sidebar hover / active states override
   ----------------------------------------------------- */
.sidebar-area .sidebar-menu-wrap .sidebar-menu > .nav-item > .nav-link:hover,
.sidebar-area .sidebar-menu-wrap .sidebar-menu > .nav-item.active > .nav-link,
.sidebar-area .sidebar-menu-wrap .sidebar-menu > .nav-item > .nav-link.active {
  background: #ffffff !important;
  color: var(--primary) !important;
}

/* -----------------------------------------------------
   Sidebar Sub-menu Animation
   ----------------------------------------------------- */
/* submenu styling */

/* Offcanvas (Bootstrap) smoother slide */
.offcanvas {
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
}
/* Smooth slide + scale + fade for right off-canvas */
.offcanvas-end {
  box-shadow: -10px 0 28px rgba(0, 0, 0, 0.15);
  border-radius: 12px 0 0 12px;
  overflow: hidden;
  padding: 24px 20px;

  transform: translateX(100%) scale(0.95);
  opacity: 0;
  will-change: transform, opacity;
}
.offcanvas-end.show {
  transform: translateX(0) scale(1);
  opacity: 1;
}
.offcanvas-backdrop.show {
  opacity: 0.45;
  backdrop-filter: blur(2px);
  transition: opacity 0.45s ease;
}
.sidebar-area .sidebar-menu .submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  background: #433a9c; /* slightly darker */
  padding-left: 10px;
}
.sidebar-area .sidebar-menu > .nav-item:hover .submenu,
.sidebar-area .sidebar-menu > .nav-item.open .submenu {
  max-height: 500px; /* large enough value to show all items */
}

/* icon colour transitions */
.sidebar-area .sidebar-menu-wrap .sidebar-menu > .nav-item > .nav-link:hover i,
.sidebar-area .sidebar-menu-wrap .sidebar-menu > .nav-item.active > .nav-link i,
.sidebar-area
  .sidebar-menu-wrap
  .sidebar-menu
  > .nav-item
  > .nav-link.active
  i {
  color: #ffffff !important;
  transition: color 0.18s ease;
}

/* -----------------------------------------------------
   Subtle 3-D Effects & Smooth Animations (Buttons, Cards, Forms, Offcanvas)
   ----------------------------------------------------- */
.btn,
.btn-primary {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover,
.btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  border-color: var(--primary) !important;
}

/* -----------------------------------------------------
   Booking Offcanvas Styling
   ----------------------------------------------------- */
.booking-offcanvas .offcanvas-header {
  background: #f8f7fc;
  border-bottom: 1px solid #e0def3;
}
.booking-offcanvas .offcanvas-title {
  font-weight: 600;
  color: #514ca8;
}
.booking-offcanvas .list-group-item {
  border: 1px solid #e7e7ef;
  border-radius: 10px;
  margin-bottom: 8px;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}
.booking-offcanvas .list-group-item:hover {
  background: #f3f1fb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.booking-offcanvas .list-group-item.active,
.booking-offcanvas .list-group-item.selected {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.booking-offcanvas .list-group-item.active .badge,
.booking-offcanvas .list-group-item.selected .badge {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.booking-offcanvas .badge {
  background: #eae9f7;
  color: var(--primary);
  font-weight: 500;
}
.booking-offcanvas .search-input {
  border-radius: 30px !important;
  padding-left: 2.5rem !important;
}
.booking-offcanvas .search-input + .fa-search {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #9a94c7;
}
.booking-offcanvas .offcanvas-footer {
  background: #f8f8fc;
  border-top: 1px solid #e0def3;
}
.booking-offcanvas .offcanvas-footer .btn {
  min-width: 180px;
}

/* -----------------------------------------------------
   FullCalendar Header Buttons
   ----------------------------------------------------- */
.fc .fc-button {
  margin: 0 6px !important;
  border-radius: 20px !important;
  padding: 0.45rem 1rem !important;
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background-color 0.18s ease;
}
.fc .fc-button:hover,
.fc .fc-button:focus,
.fc .fc-button.fc-button-active {
  background: #7a4eac !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
  transform: translateY(-1px);
}

/* -----------------------------------------------------
   Remove residual blues (commonly #4f46e5 / #6366f1)
   ----------------------------------------------------- */
*[style*="#4f46e5"],
*[style*="#6366f1"] {
  color: var(--primary) !important;
}

.nav-text {
  font-size: 10px;
  font-weight: bold;
}

/* ===== Layout unify header & sidebar ===== */
:root {
  --header-height: 70px;
  --sidebar-width: 220px;
}

/* Fixed header bar */
.header-area.style-two {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  z-index: 100;
  padding: 0 40px;
}

/* Sidebar sits under header */
.sidebar-area {
  top: var(--header-height) !important;
  width: var(--sidebar-width);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
}

/* Constrain logo inside header */
.header-area .header-left .logo img{
  max-height: calc(var(--header-height) - 10px);
  width: auto;
}

/* Content offset so it doesn’t hide */
body.main-content  {
  /* padding-top: var(--header-height);
  margin-left: var(--sidebar-width); */
}



@media only screen and (min-width: 1200px) {
  .container {
      max-width:1170px
  }

  .p-xl-40 {
      padding: 25px 20px 30px!important
  }

  .p-xl-60 {
      padding: 35px 40px 40px!important
  }

  body .sidebar-area {
      width: 80px;
      left: 0
  }

  body .main-content {
      width: calc(100% - 80px);
      float: right;
      transition: var(--transition);
      padding-top: 90px;
      padding-left: 12px;
      padding-bottom: 0;
      padding-right: 12px
  }

  body .main-content.style-two {
      padding-top: 120px
  }

  body.minimized .sidebar-area {
      left: -80px
  }

  body.minimized .main-content {
      width: 100%
  }
}



.navbar-link.active{
    background-color: var(--primary) !important;
    color: #fff !important;
}
