﻿/* Surface card */
.wth-card {
    background: radial-gradient(circle at top left, rgba(96, 165, 250, 0.14), transparent 55%), linear-gradient(135deg, #1b2238 0%, #121827 60%, #101525 100%);
    border: 1px solid var(--wth-border);
    border-radius: var(--wth-radius-lg);
    box-shadow: var(--wth-shadow-2);
}

.wth-card--accent-green {
    border-color: rgba(72, 199, 142, 0.35);
}

.wth-card--accent-blue {
    border-color: rgba(148, 197, 255, 0.35);
}

.wth-card--accent-violet {
    border-color: rgba(129, 140, 248, 0.55);
}

.wth-card--muted {
    opacity: .78;
}

/* Pills (status chips like FrostStars / Unverified / No token) */
.wth-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .2rem .65rem;
    border-radius: var(--wth-pill);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(148, 163, 184, 0.12);
    color: var(--wth-text);
}

.wth-pill--ok {
    border-color: rgba(34,197,94,.55);
    background: rgba(34,197,94,.14);
    color: #86efac;
}

.wth-pill--success {
    border-color: rgba(34,197,94,.55);
    background: rgba(34,197,94,.14);
    color: #86efac;
}

.wth-pill--warn {
    border-color: rgba(250,204,21,.6);
    background: rgba(250,204,21,.12);
    color: #fde68a;
}

.wth-pill--bad {
    border-color: rgba(239,68,68,.55);
    background: rgba(239,68,68,.12);
    color: #fecaca;
}

.wth-pill--error {
    border-color: rgba(239,68,68,.55);
    background: rgba(239,68,68,.12);
    color: #fecaca;
}

.wth-pill--info {
    border-color: rgba(74,144,226,.55);
    background: rgba(74,144,226,.12);
    color: #cfe6ff;
}

/* ------- unified table (tight variant) ------- */
.wos-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
    font-size: .92rem;
}

.wos-table--tight td, .wos-table--tight th {
    padding: 9px 12px;
}

.wos-table thead th {
    text-transform: uppercase;
    font-size: .72rem;
    letter-spacing: .08em;
    color: rgba(203, 213, 245, 0.75);
    background: rgba(15, 23, 42, 0.92);
    border-bottom: 1px solid rgba(148, 197, 255, 0.14);
}

.wos-table tbody tr {
    background: rgba(255,255,255,0.04);
    transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}

    .wos-table tbody tr:hover {
        background: rgba(96,165,250,0.10);
        transform: translateY(-1px);
        box-shadow: 0 10px 26px rgba(0,0,0,0.35);
    }

.wos-table td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.wos-table td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* ------- row accents ------- */
.wos-row--active {
    border-left: 4px solid rgba(34,197,94,0.85);
}

.wos-row--inactive {
    border-left: 4px solid rgba(148,163,184,0.55);
    opacity: .75;
}

/* ------- pills ------- */
.wos-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    border: 1px solid transparent;
    background: transparent;
}

.wos-pill--active {
    color: #86efac;
    background: rgba(34,197,94,0.14);
    border-color: rgba(34,197,94,0.55);
}

.wos-pill--inactive {
    color: rgba(229,231,235,.85);
    background: rgba(148,163,184,0.12);
    border-color: rgba(148,163,184,0.45);
}

/* ------- icon buttons ------- */
.wos-iconbtn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(148,197,255,0.35);
    background: rgba(15,23,42,0.55);
    color: #e5e7eb;
    box-shadow: 0 10px 22px rgba(0,0,0,0.35);
    transition: transform .12s ease, border-color .12s ease, background-color .12s ease;
}

    .wos-iconbtn:hover {
        transform: translateY(-1px);
        border-color: rgba(148,197,255,0.65);
        background: rgba(96,165,250,0.10);
    }

.wos-iconbtn--danger {
    border-color: rgba(239,68,68,0.55);
}

    .wos-iconbtn--danger:hover {
        border-color: rgba(239,68,68,0.85);
        background: rgba(239,68,68,0.10);
    }

/* ------- small “pill” CTA on headers ------- */
.wos-btn-pill {
    border-radius: 999px;
    padding-inline: 14px;
    font-weight: 700;
}

/* ------- mini button (for unlock) ------- */
.wos-btn-mini {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid rgba(148,197,255,0.35);
    background: rgba(15,23,42,0.55);
    color: #e5e7eb;
    font-size: .85rem;
    font-weight: 700;
    transition: transform .12s ease, border-color .12s ease, background-color .12s ease;
}

    .wos-btn-mini:hover {
        transform: translateY(-1px);
        border-color: rgba(148,197,255,0.65);
        background: rgba(96,165,250,0.10);
    }

.wos-btn-mini--success {
    border-color: rgba(34,197,94,0.55);
}

    .wos-btn-mini--success:hover {
        border-color: rgba(34,197,94,0.85);
        background: rgba(34,197,94,0.12);
    }

/* --- Actions / pills used by Contributors + Requests --- */

/* dropdown: align icons in dark menu */
.dropdown-menu-dark .dropdown-item {
    display: flex;
    align-items: center;
}

    .dropdown-menu-dark .dropdown-item i {
        width: 18px;
    }

/* compact inline actions group */
.wth-actions-panel {
    display: inline-flex;
    gap: .35rem;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* action chip buttons (works for <button> and <a>) */
.wth-action {
    border: 1px solid rgba(120,160,255,.22);
    background: rgba(0,0,0,.12);
    color: rgba(230,240,255,.92);
    border-radius: var(--wth-radius-sm);
    padding: .28rem .5rem;
    line-height: 1;
    font-size: .82rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    text-decoration: none;
    user-select: none;
}

    .wth-action:hover {
        transform: translateY(-1px);
        background: rgba(255,255,255,0.06);
        border-color: rgba(120,190,255,0.28);
        filter: brightness(1.08);
    }

    .wth-action:active {
        box-shadow: inset 1px 1px 2px rgba(0,0,0,.10) !important;
        transform: translate(1px, 1px) !important;
    }

/* variants */
.wth-action-danger {
    border-color: rgba(255,80,80,.45);
    color: #ffb2b2;
}

.wth-action-ok {
    border-color: rgba(70,220,140,.45);
    color: #bff7d6;
}

.wth-action-warn {
    border-color: rgba(255,190,70,.45);
    color: #ffe0a6;
}

.wth-action-info {
    border-color: rgba(90,180,255,.45);
    color: #cfe9ff;
}

/* small pill */
.wth-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .18rem .5rem;
    border-radius: var(--wth-pill);
    font-size: .78rem;
    border: 1px solid rgba(120,160,255,.18);
    background: rgba(0,0,0,.14);
    white-space: nowrap;
}
