/*
  ----------------------------------------
  Application (Global styles)
  ----------------------------------------
*/

@import "https://unpkg.com/prewindcss@1.2.5";

@layer styles {
  /* Left nav menu */
  .left-nav-menu {
    display: flex;
    flex-direction: column;
    max-height: 100vh;
    align-items: center;
    background: var(--black);
    overflow-y: auto;
    gap: 0.4rem;
    width: 5rem;
    padding-bottom: 20px;

    a {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.3rem;
      padding: 3px;
      font-size: var(--text-sm);
      font-weight: var(--font-semibold);
      text-decoration: none;
      color: var(--dark);
      transition: color 0.2s ease-in-out;

      &.active,
      &:hover,
      &:active {
        color: var(--white);
      }
    }
  }

  .dashboard-header {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    font-weight: var(--font-bold);

    svg {
      width: 2.2rem;
    }
  }

  /* Crud Header (for tables, forms – also used in custom scaffolds /erb/scaffold/*) */
  .crud-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--space-2xl);

    h3 {
      margin: 0;
    }
  }
