﻿/* Sidebar base */
.sidebar-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 300px;
	height: 100vh;
	overflow-x: visible;
	transition: width 0.3s ease;
	display: flex;
	flex-direction: column;
	z-index: 1030;
}
@media (min-width: 768px) {
	.sidebar-container {
		width: 250px;
	}
}

.sidebar-toggle-btn {
	position: absolute;
	top: 50%;
	right: 0;
	transform: translateX(50%);
	min-width: 1.5rem !important;
	width: 1.5rem;
	height: 2.5rem;
	border-radius: 0.75rem;
	background-color: #007bff;
	color: #fff;
	border: none;
	box-shadow: 0 0 4px rgba(0,0,0,0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	transition: transform 0.3s ease, background-color 0.2s ease;
}


/* Icon flip */
.sidebar-toggle-btn i {
  transition: transform 0.3s ease;
}

.sidebar-toggle-btn i.flipped {
  transform: rotate(180deg);
}

/* Collapsed state */
.sidebar-container.sidebar-closed {
  width: 70px;
  /* icons-only width */
}

.sidebar-container.sidebar-closed ul {
  align-items: center;
  /* for your flex-column list */
}

.sidebar-container.sidebar-closed div {
  align-items: center;
  /* for your flex-column list */
}

.sidebar-container.sidebar-closed .nav-text {
  display: none;
  /* hide text */
}

nav a {
    display: flex;
    gap: 0.3rem;
    justify-items: center;
    align-items: center;
    padding: .5rem 1rem;        
}

.sidebar-container.sidebar-closed .nav-link {
  justify-content: center !important;
  text-align:center;
}

