/* Additional Sneat CSS for Timeline and Avatar components */

/* Timeline Styles */
.timeline {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}

.timeline-item:before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 1.5rem;
  width: 2px;
  height: calc(100% - 1rem);
  background: #d9dee3;
}

.timeline-item:last-child:before {
  display: none;
}

.timeline-point {
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--bs-primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px rgba(105, 108, 255, 0.2);
}

.timeline-point-primary {
  background: var(--bs-primary);
  box-shadow: 0 0 0 3px rgba(105, 108, 255, 0.2);
}

.timeline-event {
  background: #fff;
  border: 1px solid #d9dee3;
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(67, 89, 113, 0.12);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Avatar Styles */
.avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 500;
}

.avatar-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  color: #fff;
  background-color: var(--bs-secondary);
}

.avatar-online:after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0.75rem;
  height: 0.75rem;
  border: 2px solid #fff;
  border-radius: 50%;
  background-color: var(--bs-success);
}

/* App Brand */
.app-brand {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(67, 89, 113, 0.08);
  margin-bottom: 0.5rem;
}

.app-brand:hover {
  text-decoration: none;
}

.app-brand-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.app-brand-text {
  margin-left: 0.75rem;
  font-size: 1.375rem;
  font-weight: 700;
  color: #566a7f;
  letter-spacing: -0.025em;
}

/* Menu Inner Shadow */
.menu-inner-shadow {
  height: 1px;
  background: linear-gradient(90deg, rgba(67, 89, 113, 0.12) 0%, rgba(67, 89, 113, 0.06) 50%, rgba(67, 89, 113, 0.12) 100%);
  margin: 0 1.5rem;
}

/* Menu Icons */
.menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 0.75rem;
  color: #a8b1bb;
  flex-shrink: 0;
}

.menu-item.active .menu-icon,
.menu-link:hover .menu-icon {
  color: var(--bs-primary);
}

/* Boxicons replacement with FontAwesome */
.bx-menu:before {
  content: "\f0c9";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.bx-search:before {
  content: "\f002";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.bx-user:before {
  content: "\f007";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.bx-cog:before {
  content: "\f013";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.bx-power-off:before {
  content: "\f011";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

/* Layout Overlay */
.layout-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(67, 89, 113, 0.5);
  z-index: 1040;
  display: none;
}

.layout-overlay.show {
  display: block;
}

/* Navbar Detached */
.navbar-detached {
  margin: 1.5rem 1.5rem 0;
  border-radius: 0.5rem;
  max-width: calc(100% - 3rem);
}

/* Label Background Classes */
.bg-label-danger {
  background-color: rgba(255, 62, 29, 0.16) !important;
  color: var(--bs-danger) !important;
}

.bg-label-warning {
  background-color: rgba(255, 171, 0, 0.16) !important;
  color: var(--bs-warning) !important;
}

.bg-label-success {
  background-color: rgba(113, 221, 55, 0.16) !important;
  color: var(--bs-success) !important;
}

.bg-label-info {
  background-color: rgba(3, 195, 236, 0.16) !important;
  color: var(--bs-info) !important;
}

.bg-label-primary {
  background-color: rgba(105, 108, 255, 0.16) !important;
  color: var(--bs-primary) !important;
}

/* Mobile Menu Styles */
@media (max-width: 1199.98px) {
  .layout-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .layout-menu.show {
    transform: translateX(0);
  }
  
  .layout-overlay.show {
    display: block;
  }
}

/* Container Padding */
.container-p-y {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

/* Demo Styles */
.demo-info {
  color: #697a8d;
  font-size: 0.875rem;
}

/* Navbar Expand XL */
@media (min-width: 1200px) {
  .navbar-expand-xl .navbar-nav {
    flex-direction: row;
  }
  
  .navbar-expand-xl .navbar-nav .dropdown-menu {
    position: absolute;
  }
}

/* Search Input in Navbar */
.navbar .form-control {
  background: transparent;
  border: none;
  color: #697a8d;
  font-size: 0.9375rem;
}

.navbar .form-control:focus {
  background: transparent;
  border: none;
  box-shadow: none;
  color: #697a8d;
}

.navbar .form-control::placeholder {
  color: #a8b1bb;
}