/* Simple Static Sidebar Styles */

.simple-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background-color: #1f2937; /* bg-gray-800 */
  color: #ffffff;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow-y: auto;
  transition: transform 0.3s ease;
  /* Hide sidebar by default on ALL screen sizes */
  transform: translateX(-100%);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.simple-sidebar-header {
  padding: 1rem;
  border-bottom: 1px solid #374151; /* border-gray-700 */
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.simple-sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.simple-sidebar-logo-img {
  height: 2rem;
  width: auto;
}

.simple-sidebar-toggle {
  background: none;
  border: none;
  color: #9ca3af; /* text-gray-400 */
  padding: 0.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: block; /* Always visible when sidebar is open */
  margin-left: auto; /* Push to the right side */
}

.simple-sidebar-toggle:hover {
  color: #ffffff;
  background-color: #374151; /* bg-gray-700 */
}

.simple-sidebar-toggle-icon {
  width: 1rem;
  height: 1rem;
  stroke-width: 2;
}

.simple-sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 0;
}

.simple-sidebar-section {
  padding: 0 1rem;
}

.simple-sidebar-section:not(.simple-sidebar-footer) {
  margin-bottom: 1rem;
}

.simple-sidebar-footer {
  border-top: 1px solid #374151; /* border-gray-700 */
  padding-top: 1rem;
  margin-top: auto;
}

.simple-sidebar-link {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  margin-bottom: 0.25rem;
  border-radius: 0.375rem; /* rounded-md */
  text-decoration: none;
  color: #d1d5db; /* text-gray-300 */
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.875rem; /* text-sm */
}

.simple-sidebar-link:hover {
  background-color: #374151; /* bg-gray-700 */
  color: #ffffff;
}

.simple-sidebar-link.active {
  background-color: #1d4ed8; /* bg-blue-700 */
  color: #ffffff;
}

.simple-sidebar-icon {
  width: 1.25rem; /* w-5 */
  height: 1.25rem; /* h-5 */
  flex-shrink: 0;
  margin-right: 0.75rem;
  stroke-width: 2;
}

.simple-sidebar-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.simple-sidebar-avatar {
  width: 1.25rem; /* w-5 */
  height: 1.25rem; /* h-5 */
  border-radius: 50%;
  background-color: #6b7280; /* bg-gray-500 */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem; /* text-xs */
  font-weight: 600;
  color: #ffffff;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.simple-sidebar-logout-form {
  width: 100%;
  margin: 0;
  padding: 0;
}

.simple-sidebar-logout {
  color: #f87171; /* text-red-400 */
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  justify-content: flex-start;
}

.simple-sidebar-logout:hover {
  background-color: #374151; /* bg-gray-700 */
  color: #fca5a5; /* text-red-300 */
}

/* Menu button - shown on all screen sizes when sidebar is hidden */
.mobile-menu-button {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1001;
  background-color: #1f2937; /* bg-gray-800 */
  color: #ffffff;
  border: none;
  padding: 0.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
  display: block; /* Always visible when sidebar is closed */
}

.mobile-menu-button:hover {
  background-color: #374151; /* bg-gray-700 */
  transform: scale(1.05);
}

.mobile-menu-button:active {
  transform: scale(0.95);
}

.mobile-menu-button-icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2;
}

/* Show sidebar when expanded - works on all screen sizes */
.simple-sidebar-expanded {
  transform: translateX(0) !important;
}

/* Hide hamburger button when sidebar is expanded */
.sidebar-container-expanded .mobile-menu-button {
  display: none;
}

/* Backdrop for overlay when sidebar is open */
.simple-sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.simple-sidebar-backdrop.show {
  opacity: 1;
  visibility: visible;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  /* No special mobile adjustments needed for toggle button */
}

/* Extra small screens - adjust mobile menu button position */
@media (max-width: 480px) {
  .mobile-menu-button {
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.625rem;
  }
  
  .mobile-menu-button-icon {
    width: 1.25rem;
    height: 1.25rem;
  }
}

/* Sidebar is always an overlay - no body margin needed */

/* Smooth transitions for window resizing */
.simple-sidebar * {
  transition: all 0.3s ease;
} 
