@layer components {
  .app-logo {
    font-weight: 700;
    font-size: var(--size-fluid-1);
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-color: #3b82f6;
  }

  .logo-brow {
    color: var(--color-text);
  }

  .logo-sql {
    color: #3b82f6;
  }

  .db-name {
    font-family: var(--font-mono);
    font-size: var(--size-fluid-1);
    color: var(--color-text);
    padding: var(--space-1) var(--space-2);
    background: transparent;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    outline: none;
    width: 120px;
    transition: border-color 0.15s;
  }

  .db-name:hover {
    border-color: var(--color-border-light);
  }

  .db-name:focus {
    border-color: var(--color-accent);
    background: var(--color-bg);
  }

  .recent-wrap {
    position: relative;
  }

  .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: var(--space-1);
    min-width: 250px;
    max-height: 300px;
    overflow-y: auto;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    z-index: 100;
  }

  .dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    padding: var(--space-2) var(--space-3);
    font-size: var(--size-fluid-1);
    border: none;
    background: none;
    cursor: pointer;
    color: var(--color-text);
  }

  .dropdown-item:hover {
    background: var(--color-bg-hover);
  }

  .dropdown-item .item-name {
    font-family: var(--font-mono);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dropdown-item .item-date {
    font-size: 10px;
    color: var(--color-text-muted);
    margin-left: var(--space-2);
    white-space: nowrap;
  }

  .dropdown-empty {
    padding: var(--space-3);
    color: var(--color-text-muted);
    font-style: italic;
    text-align: center;
  }
}
