/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Tailwind CSS is loaded directly in the layout */

/* Desktop sidebar collapsed state */
.desktop-collapsed .sidebar-text {
  display: none;
}

.desktop-collapsed .sidebar-logo-text {
  display: none;
}

.desktop-collapsed .sidebar-user-text {
  display: none;
}

.desktop-collapsed .sidebar-icon {
  justify-content: center;
}

.desktop-collapsed .sidebar-link {
  justify-content: center;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Ensure logo and icons are always visible */
.desktop-collapsed .sidebar-icon img {
  display: block;
}

.desktop-collapsed .sidebar-link svg {
  display: block;
}

/* Center the logo section when collapsed */
.desktop-collapsed .p-6 {
  padding: 1.5rem 0.5rem;
}

/* Center navigation items when collapsed */
.desktop-collapsed .p-4 {
  padding: 1rem 0.5rem;
}

/* Ensure navigation links are properly centered */
.desktop-collapsed .sidebar-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

/* Make sure the logo is visible and centered */
.desktop-collapsed .sidebar-icon {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Keep icon sizes the same when collapsed */
.desktop-collapsed .sidebar-link svg {
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0;
}

.desktop-collapsed .sidebar-icon img {
  height: 48px !important;
  width: auto !important;
  flex-shrink: 0;
}

/* Ensure proper spacing for collapsed state */
.desktop-collapsed .sidebar-link {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

/* Login section styling when collapsed */
.desktop-collapsed .sidebar-icon svg {
  display: block;
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0;
}

/* Center login link when collapsed */
.desktop-collapsed .sticky a.flex.items-center {
  justify-content: center;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
