/*
 * 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.
 */

/* Desktop: Force icon-only sidebar when collapsed */
@media (min-width: 768px) {
  .sidebar.desktop-collapsed {
    width: 72px !important;
    min-width: 72px !important;
  }
  
  .sidebar.desktop-collapsed nav {
    translate: 0 0 !important;
    transform: none !important;
    width: 72px !important;
  }
  
  /* The main content area next to the sidebar needs to leave 72px space instead of 0 */
  .sidebar.desktop-collapsed + * {
    margin-left: 72px !important;
  }

  .sidebar.desktop-collapsed .sidebar-text,
  .sidebar.desktop-collapsed .sidebar-logo-text,
  .sidebar.desktop-collapsed details > ul,
  .sidebar.desktop-collapsed summary .material-symbols-outlined:last-child {
    display: none !important;
  }
}

/* Base sidebar transition */
.sidebar, .sidebar nav {
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-nav-width {
  width: var(--sidebar-width);
}

.question-form-content {
  width: 80%;
}
