/* Limited Admin Menu Access by URLs — Admin Page Styles
 * Enqueued via wp_enqueue_style() in limiadme_enqueue_admin_assets().
 */

#wpcontent {
    padding: 0 !important;
    background: #f8fafc;
}

.aur-container {
    font-family: 'Inter', sans-serif;
    text-align: left;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 5px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-container svg {
    position: absolute;
    left: 12px;
    pointer-events: none;
    color: #94a3b8;
}

.search-input {
    padding-left: 36px !important;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    height: 40px;
    width: 256px;
}

.search-input:focus {
    outline: 2px solid #2563eb;
}

.cap-select {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 16px;
    height: 44px;
    min-width: 200px;
    cursor: pointer;
}

/* ── Tag chips ─────────────────────────────── */
.aur-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 8px;
    padding: 6px 10px 6px 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    max-width: 100%;
    cursor: default;
    border: 1px solid #1e293b;
}

.aur-tag .aur-tag-title {
    color: #f1f5f9;
    font-weight: 700;
}

.aur-tag .aur-tag-url {
    color: #94a3b8;
    font-size: 10px;
    font-family: monospace;
    font-weight: 400;
}

.aur-tag-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #64748b;
    font-size: 13px;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
    transition: color .15s, background .15s;
}

.aur-tag-remove:hover {
    background: #ef4444;
    color: #fff;
}

/* ── CTRL picker overlay ───────────────────── */
.aur-picker-active #adminmenu a,
.aur-picker-active #adminmenuback,
.aur-picker-active #adminmenuwrap {
    pointer-events: none;
}

.aur-link-mask {
    position: absolute;
    inset: 0;
    background: rgba(37, 99, 235, 0.12);
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer !important;
    pointer-events: all !important;
    transition: background .12s, border-color .12s;
    z-index: 99999;
}

.aur-link-mask:hover {
    background: rgba(37, 99, 235, 0.25);
    border-color: #2563eb;
}

.aur-link-mask.aur-already-added {
    background: rgba(34, 197, 94, 0.15);
    border-color: #16a34a;
}

.aur-link-mask.aur-already-added:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
}

/* pill shown on mask hover */
.aur-link-mask::after {
    content: attr(data-label);
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #f1f5f9;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    padding: 3px 8px;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s;
    z-index: 100000;
}

.aur-link-mask:hover::after {
    opacity: 1;
}

/* sidebar highlight when picker is active */
body.aur-picker-active #adminmenuwrap {
    outline: 3px solid #2563eb;
    outline-offset: -3px;
    border-radius: 0;
}

/* picker banner */
#aur-picker-banner {
    display: none;
    position: fixed;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    min-width: max-content;
    background: #2563eb;
    color: #fff;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    z-index: 200000;
    letter-spacing: 0.3px;
}

body.aur-picker-active #aur-picker-banner {
    display: block;
}