/* Discord fiók jelvény a Filament topbaron — App\Livewire\DiscordAccountBadge.
   Kompakt ikon-gomb + Alpine dropdown, a topbar-timer.css combo-panel mintája. */

.crm-topbar-discord {
    position: relative;
    display: flex;
    align-items: center;
    margin-inline-end: 0.5rem;
}

.crm-topbar-discord .ctd-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    border: 1px solid rgb(229 231 235);
    background: rgb(249 250 251);
    color: rgb(107 114 128);
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.dark .crm-topbar-discord .ctd-btn {
    border-color: rgb(63 63 70);
    background: rgb(255 255 255 / 0.05);
    color: rgb(161 161 170);
}

.crm-topbar-discord .ctd-btn:hover {
    background: rgb(238 240 255);
    color: rgb(88 101 242);
    border-color: rgb(196 202 255);
}

.dark .crm-topbar-discord .ctd-btn:hover {
    background: rgb(88 101 242 / 0.15);
    color: rgb(196 202 255);
}

.crm-topbar-discord .ctd-btn--linked {
    color: rgb(88 101 242);
}

.crm-topbar-discord .ctd-icon {
    width: 1.05rem;
    height: 1.05rem;
}

.crm-topbar-discord .ctd-dot {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: rgb(34 197 94);
    border: 2px solid rgb(255 255 255);
}

.dark .crm-topbar-discord .ctd-dot {
    border-color: rgb(24 24 27);
}

.crm-topbar-discord .ctd-panel {
    position: absolute;
    top: calc(100% + 0.4rem);
    inset-inline-end: 0;
    width: 17rem;
    max-width: 80vw;
    z-index: 50;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgb(229 231 235);
    background: rgb(255 255 255);
    box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.2), 0 8px 10px -6px rgb(0 0 0 / 0.15);
}

.dark .crm-topbar-discord .ctd-panel {
    background: rgb(24 24 27);
    border-color: rgb(63 63 70);
}

.crm-topbar-discord .ctd-status {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.crm-topbar-discord .ctd-status-ok {
    color: rgb(22 163 74);
    font-weight: 600;
}

.crm-topbar-discord .ctd-status-name {
    color: rgb(55 65 81);
    font-weight: 500;
}

.dark .crm-topbar-discord .ctd-status-name {
    color: rgb(209 213 219);
}

.crm-topbar-discord .ctd-status--muted {
    color: rgb(107 114 128);
    font-weight: 500;
}

.crm-topbar-discord .ctd-hint {
    font-size: 0.75rem;
    color: rgb(107 114 128);
    margin: 0 0 0.6rem;
    line-height: 1.4;
}

.crm-topbar-discord .ctd-action {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    padding: 0.4rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.crm-topbar-discord .ctd-action--primary {
    background: rgb(88 101 242);
    color: rgb(255 255 255);
}

.crm-topbar-discord .ctd-action--primary:hover {
    background: rgb(71 82 196);
}

.crm-topbar-discord .ctd-action--danger {
    background: rgb(254 242 242);
    color: rgb(185 28 28);
}

.dark .crm-topbar-discord .ctd-action--danger {
    background: rgb(127 29 29 / 0.35);
    color: rgb(252 165 165);
}

.crm-topbar-discord .ctd-action--danger:hover {
    background: rgb(254 226 226);
}
