/* =========================================
//C:\Users\LENOVO\Desktop\FLOYNEX_APP\frontend\css\newsidebar.css
   NEW SIDEBAR STYLES
   ========================================= */

/* Sidebar Overlay Backdrop */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Sidebar Drawer Container */
.sidebar {
  position: fixed;
  top: 0;
  left: -340px;
  width: 320px;
  height: 100vh;
  background-color: #27ad4d;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.15);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-sizing: border-box;
}

.sidebar.active {
  left: 0;
}

/* Wave Decorative Layers */
.sidebar-wave {
  position: absolute;
  width: 100%;
  pointer-events: none;
  z-index: 1;
}

.sidebar-wave.top-wave {
  top: 40px;
  left: 0;
  height: 60px;
  background: radial-gradient(ellipse at 50% -20%, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
}

.sidebar-wave.bottom-wave {
  bottom: 0;
  left: 0;
  height: 120px;
  background: radial-gradient(ellipse at 50% 120%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 75%);
}


/* =========================================
   SIDEBAR HEADER FINAL POSITIONING FIX
   ========================================= */

.sidebar-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 16px;
  min-height: 105px;
  box-sizing: border-box;
  gap: 8px;
}

.user-profile-info {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 10px;
}


/* =========================================
   PROFILE PHOTO - RESTORE ORIGINAL CIRCLE
   ========================================= */

.user-avatar-wrap {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #ffffff;
  background: #ffffff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: content-box;
}

.sidebar-avatar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}


.user-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.user-fullname {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.3;
  margin: 0;
}

.user-agent-id {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: #f2ff41;
    letter-spacing: 0.6px;
    margin-top: 4px;
    line-height: 1.4;
}
.sidebar-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  flex-shrink: 0;
  width: 30px;
  height: 40px;
  padding: 0;
  font-size: 30px;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
}
.sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.75);
    padding-bottom: 15px;
    margin-bottom: 15px;
}
/* Navigation Links */
/* =========================================
   SIDEBAR NAVIGATION LINKS
   ========================================= */

.sidebar-nav {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 14px 0;
  gap: 0;
  flex-grow: 1;
}

/* Individual menu items */
.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 18px;

padding: 16px 25px;
min-height: 68px;

  box-sizing: border-box;
  width: 100%;

  color: #ffffff;
  background: transparent;
  text-decoration: none;

  font-size: 22px;
  font-weight: 500;

  border-radius: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Menu icons - White circular rings */
.sidebar-nav .nav-link .nav-icon {
  font-size: 21px;
  width: 42px;
  height: 42px;
  min-width: 42px;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* Highlight ONLY the current page */
.sidebar-nav .nav-link.active {
  background-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  box-shadow: none;
}

/* Subtle hover for inactive items */
.sidebar-nav .nav-link:hover:not(.active) {
  background-color: rgba(255, 255, 255, 0.10);
}

/* Only the selected menu item is highlighted */
.nav-link.active {
  background-color: rgba(255,255,255,0.25);
  color: #ffffff;
  box-shadow: none;
}

.nav-link:hover:not(.active) {
  background-color: rgba(255,255,255,0.10);
}
/* Bottom Logo Branding */
.sidebar-footer {
  position: relative;
  z-index: 2;
  padding: 20px 20px 25px 20px;
}

.sidebar-branding {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-brand-logo {
  height: 50px;
  width: auto;
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
}

.brand-tagline {
  color: rgba(255, 255, 255, 0.85);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2px;
  margin-top: 2px;
}
.menu-icon {
  width: 45px;
  height: 55px;
  object-fit: contain;
  display: block;
}
