/* /assets/css/ui.css */
/* 
  This file contains styles for reusable UI components,
  translated from the originals in RenoCanvas_v7/components/ui.
*/

/* ==========================================================================
   Dropdown Menu
   Translated from dropdown-menu.tsx
   ========================================================================== */

.lay-nav__dropdown {
    position: relative;
}

.lay-nav__dropdown-trigger {
    /* Styles are already in style.css, this is a placeholder */
}

.lay-nav__dropdown-content {
    display: none; /* Hidden by default, shown by JS */
    position: absolute;
    top: calc(100% + 8px); /* Position below the trigger */
    left: 0;
    z-index: 50;
    min-width: 12rem; /* min-w-[8rem] is a bit small, using a wider default */
    background-color: var(--background-primary);
    border: 1px solid var(--border-primary);
    border-radius: 0.5rem; /* rounded-md */
    padding: 0.25rem; /* p-1 */
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.lay-nav__dropdown-content a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem; /* text-sm */
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
}

.lay-nav__dropdown-content a:hover {
    background-color: var(--brand-beige);
    color: var(--text-primary);
}

/* This class will be added by JS to show the dropdown */
.lay-nav__dropdown-content--open {
    display: block;
}
