/* Legacy global classes, re-pointed at the design tokens (tokens.css, built
   from EzayConnect.Styles). These exist so pages not yet migrated to
   EzayConnect.UI.Primitives/Composite already render in the current theme —
   as pages migrate, their classes disappear from here. New code must use the
   component library, not these classes.

   body background/color/font come from tokens.css (the Styles reset) — no
   body rule here on purpose. */

/* Card — was "glassmorphism", now a flat dark surface */
.glass-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.glass-card-hover {
    transition: border-color 0.2s, box-shadow 0.2s;
}
.glass-card-hover:hover {
    border-color: var(--color-accent);
    box-shadow: 0 0 20px -6px color-mix(in srgb, var(--color-accent) 40%, transparent);
}

/* Input */
.glass-input {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    padding: 0.5rem 0.75rem;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
}
.glass-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 20%, transparent);
}
.glass-input::placeholder { color: var(--color-text-faint); }

/* Buttons — mirror AppButton's Primary/Ghost variants */
.btn-primary {
    background: var(--color-accent-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: var(--color-bg);
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    font-weight: 500;
    transition: opacity 0.15s, transform 0.1s, box-shadow 0.15s;
}
.btn-primary:hover {
    box-shadow: 0 0 16px -2px color-mix(in srgb, var(--color-accent) 50%, transparent);
}
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-dim);
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-ghost:hover {
    background: var(--color-surface-raised);
    color: var(--color-text);
    border-color: var(--color-accent);
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 2px; }

/* Sidebar active item */
.nav-item-active {
    background: color-mix(in srgb, var(--color-accent) 12%, transparent);
    border-left: 2px solid var(--color-accent);
}

/* Help Mode: (i) icon — hover bubble is now AppTooltip (see HelpTip.razor),
   this just styles the glyph itself. */
.help-tip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    margin-left: 0.35rem;
    border-radius: 50%;
    color: var(--color-text-faint);
    cursor: help;
    vertical-align: middle;
    transition: color 0.15s;
}
.help-tip-icon:hover,
.help-tip-icon:focus-visible {
    color: var(--color-accent);
}
.help-tip-icon svg {
    width: 100%;
    height: 100%;
}

/* Help Mode: always-on inline explanation */
.help-tip-inline {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.1rem 0.5rem;
    background: color-mix(in srgb, var(--color-accent) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-accent) 30%, transparent);
    border-radius: var(--radius-full);
    color: var(--color-accent);
    font-size: 0.7rem;
    font-weight: 400;
    line-height: 1.5;
    vertical-align: middle;
}

/* Help Mode toggle button in the sidebar */
.help-mode-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-dim);
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.help-mode-toggle:hover {
    background: var(--color-surface-raised);
    color: var(--color-text);
}
.help-mode-toggle.active {
    background: color-mix(in srgb, var(--color-accent) 12%, transparent);
    border-color: var(--color-accent);
    color: var(--color-accent);
}
.help-mode-toggle svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}
