/* Remove focus ring on mouse click; keep it for keyboard navigation */
*:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
}

/* Prevent text selection on logo */
h1 {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Material Symbols */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
    line-height: 1;
}

/* Sidebar nav link — active state via Blazor NavLink */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    transition: background-color 0.15s, color 0.15s;
    color: #475569;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.sidebar-link:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.dark .sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
}

.sidebar-link.active {
    background-color: rgba(10, 24, 46, 0.08);
    color: #0a182e;
    font-weight: 600;
}

.dark .sidebar-link.active {
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 600;
}

.dark .sidebar-link {
    color: #94a3b8;
}

/* Blazor form validation */
.validation-message {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.valid.modified:not([type="checkbox"]) {
    outline: 1px solid #10b981;
}

.invalid {
    outline: 1px solid #ef4444;
}

/* Token preview */
.token-preview {
    font-family: monospace;
    font-size: 0.8rem;
    background: #f1f5f9;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    color: #475569;
}
