:root {
    /* GitHub Dark (Primer) */
    --gh-accent: #58a6ff;
    --gh-accent-hover: #79c0ff;
    /* GitHub merge / úspech – voliteľná sémantická zelená */
    --gh-merge-green: #238636;
    --gh-merge-green-hover: #2ea043;
    --bs-primary: #1f6feb;
    --bs-primary-rgb: 31, 111, 235;
    --gh-canvas-default: #0d1117;
    --gh-canvas-subtle: #161b22;
    --gh-canvas-inset: #010409;
    --gh-border-default: #30363d;
    --gh-border-muted: #21262d;
    --gh-fg-default: #e6edf3;
    --gh-fg-muted: #8b949e;
    --gh-success: #3fb950;
    --gh-danger: #f85149;
    --gh-warning: #d29922;
    --gh-attention-fg: #ffa657;
    /* aliasy pre existujúce referencie */
    --fazen-green: var(--gh-accent);
    --fazen-green-hover: var(--gh-accent-hover);
    --fazen-black: var(--gh-canvas-default);
    --fazen-surface: var(--gh-canvas-subtle);
    --fazen-surface-soft: var(--gh-canvas-subtle);
    --fazen-text: var(--gh-fg-default);
    --fazen-text-muted: var(--gh-fg-muted);
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at top, #161b22 0%, #0d1117 45%, #010409 100%);
    color: var(--fazen-text);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: -20%;
    background: radial-gradient(circle, rgba(88, 166, 255, 0.08) 0%, rgba(13, 17, 23, 0) 55%);
    pointer-events: none;
    z-index: -1;
}

html {
    scroll-behavior: smooth;
}

@media (min-width: 1200px) {
    .container {
        max-width: 85vw;
    }
}

.app-logo {
    width: 64px;
    height: 64px;
    object-fit: cover;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
}

.login-card {
    border-radius: 18px;
    background: var(--fazen-surface);
    color: var(--fazen-text);
}

.tool-card {
    border-radius: 16px;
    background: var(--fazen-surface);
    color: var(--fazen-text);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-sidebar {
    --bs-card-bg: var(--fazen-surface);
    --bs-card-color: var(--fazen-text);
    border-radius: 16px;
    background: var(--fazen-surface) !important;
    background-color: var(--fazen-surface) !important;
    position: sticky;
    top: 1.25rem;
    border: 1px solid var(--gh-border-default);
}

.dashboard-sidebar.card {
    background: var(--fazen-surface) !important;
    background-color: var(--fazen-surface) !important;
    color: var(--fazen-text) !important;
}

.dashboard-menu .nav-link {
    border-radius: 10px;
    background: transparent;
    border: 1px solid var(--gh-border-muted);
    color: var(--fazen-text-muted);
    padding: 0.7rem 0.9rem;
    transition: all 0.15s ease;
}

.dashboard-menu .nav-link:hover,
.dashboard-menu .nav-link:focus {
    background: var(--gh-canvas-inset);
    border-color: var(--gh-border-default);
    color: var(--fazen-text);
    text-decoration: none;
}

.dashboard-menu .nav-link.active {
    background: linear-gradient(120deg, rgba(88, 166, 255, 0.18) 0%, rgba(56, 139, 253, 0.08) 100%);
    border-color: rgba(88, 166, 255, 0.55);
    color: var(--fazen-text);
    box-shadow: 0 0 0 1px rgba(88, 166, 255, 0.15) inset;
}

.tools-mobile-dropdown-btn {
    border: 1px solid var(--gh-border-default);
    background: var(--gh-canvas-inset);
    color: var(--fazen-text);
    text-align: left;
}

.tools-mobile-dropdown-btn:hover,
.tools-mobile-dropdown-btn:focus {
    border-color: var(--gh-accent);
    background: var(--gh-border-muted);
    color: var(--fazen-text);
    box-shadow: 0 0 0 0.2rem rgba(88, 166, 255, 0.2);
}

.tools-mobile-dropdown-menu {
    background: var(--fazen-surface-soft);
    border: 1px solid var(--gh-border-default);
    border-radius: 12px;
    padding: 0.45rem;
}

.tools-mobile-dropdown-menu .dropdown-item {
    border-radius: 9px;
    color: var(--fazen-text-muted);
    padding: 0.55rem 0.7rem;
}

.tools-mobile-dropdown-menu .dropdown-item:hover,
.tools-mobile-dropdown-menu .dropdown-item:focus {
    background: var(--gh-canvas-inset);
    color: var(--fazen-text);
}

.tools-mobile-dropdown-menu .dropdown-item.active,
.tools-mobile-dropdown-menu .dropdown-item:active {
    background: linear-gradient(120deg, rgba(88, 166, 255, 0.18) 0%, rgba(56, 139, 253, 0.08) 100%);
    border: 1px solid rgba(88, 166, 255, 0.45);
    color: var(--fazen-text);
}

.tool-panel-active {
    animation: toolFadeIn 260ms ease-out;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.45) !important;
}

.form-control,
.form-select,
.btn,
.result-box {
    border-radius: 12px;
}

.form-control {
    background: var(--fazen-surface-soft);
    border: 1px solid var(--gh-border-default);
    color: var(--fazen-text);
}

.form-select {
    background-color: var(--fazen-surface-soft);
    border: 1px solid var(--gh-border-default);
    color: var(--fazen-text);
}

.form-select:focus {
    background-color: var(--gh-border-muted);
    border-color: var(--gh-accent);
    color: var(--fazen-text);
    box-shadow: 0 0 0 0.2rem rgba(88, 166, 255, 0.25);
}

.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    background: var(--fazen-surface-soft) !important;
    background-color: var(--fazen-surface-soft) !important;
    border: 1px solid var(--gh-border-default) !important;
    color: var(--fazen-text) !important;
    border-radius: 12px !important;
    min-height: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--fazen-text) !important;
    line-height: 42px !important;
    padding-left: 0.8rem !important;
    padding-right: 2rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--gh-fg-muted) !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px !important;
    right: 0.55rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #9a9a9a transparent transparent transparent !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    background: var(--gh-border-muted) !important;
    background-color: var(--gh-border-muted) !important;
    border-color: var(--gh-accent) !important;
    box-shadow: 0 0 0 0.2rem rgba(88, 166, 255, 0.25) !important;
}

.select2-container--open .select2-dropdown {
    background: var(--fazen-surface-soft) !important;
    background-color: var(--fazen-surface-soft) !important;
    border: 1px solid var(--gh-border-default) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

.select2-search--dropdown {
    padding: 0.5rem !important;
    background: var(--fazen-surface-soft) !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    background: var(--gh-border-muted) !important;
    border: 1px solid var(--gh-border-default) !important;
    color: var(--fazen-text) !important;
    border-radius: 10px !important;
    padding: 0.4rem 0.55rem !important;
}

.select2-container--default .select2-results > .select2-results__options {
    background: var(--fazen-surface-soft) !important;
}

.select2-container--default .select2-results__option {
    color: var(--fazen-text-muted) !important;
    background: var(--fazen-surface-soft) !important;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    color: var(--fazen-text) !important;
    background: var(--gh-canvas-inset) !important;
}

.select2-container--default .select2-results__option--selected {
    background: rgba(88, 166, 255, 0.2) !important;
    color: var(--fazen-text) !important;
}

.form-control:focus {
    background: var(--gh-border-muted);
    border-color: var(--gh-accent);
    color: var(--fazen-text);
    box-shadow: 0 0 0 0.2rem rgba(88, 166, 255, 0.25);
}

.form-control::placeholder {
    color: var(--gh-fg-muted);
}

/*
 * Základ = modrý „active“ nádech (predtým hover).
 * Hover / focus (:hover, :focus) = tmavý inset ako hover nav-link (predtým základ).
 */
.btn-success,
.btn-primary,
.btn-outline-success,
.btn-outline-primary {
    border-radius: 10px;
    background: linear-gradient(120deg, rgba(88, 166, 255, 0.18) 0%, rgba(56, 139, 253, 0.08) 100%);
    border: 1px solid rgba(88, 166, 255, 0.55);
    color: var(--fazen-text);
    font-weight: 500;
    box-shadow: 0 0 0 1px rgba(88, 166, 255, 0.15) inset;
    transition: all 0.15s ease;
}

.btn-success:hover,
.btn-success:focus,
.btn-primary:hover,
.btn-primary:focus,
.btn-outline-success:hover,
.btn-outline-success:focus,
.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--gh-canvas-inset);
    border: 1px solid var(--gh-border-default);
    color: var(--fazen-text);
    box-shadow: none;
    text-decoration: none;
}

.btn-success:active,
.btn-primary:active,
.btn-outline-success:active,
.btn-outline-primary:active {
    background: linear-gradient(120deg, rgba(88, 166, 255, 0.28) 0%, rgba(56, 139, 253, 0.14) 100%) !important;
    border-color: rgba(88, 166, 255, 0.72) !important;
    color: var(--fazen-text) !important;
    box-shadow:
        0 0 0 1px rgba(88, 166, 255, 0.22) inset,
        0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.btn-success:focus-visible,
.btn-primary:focus-visible,
.btn-outline-success:focus-visible,
.btn-outline-primary:focus-visible {
    background: var(--gh-canvas-inset);
    border: 1px solid var(--gh-border-default);
    color: var(--fazen-text);
    box-shadow: 0 0 0 0.2rem rgba(88, 166, 255, 0.28);
    outline: none;
}

.btn-outline-danger {
    border-color: rgba(248, 81, 73, 0.65);
    color: #ffa198;
    background: rgba(248, 81, 73, 0.1);
}

.btn-outline-danger:hover {
    border-color: rgba(248, 81, 73, 0.9);
    background: rgba(248, 81, 73, 0.18);
    color: #ffdcd7;
}

.btn-admin-access {
    border: 1px solid rgba(255, 166, 87, 0.65);
    background: linear-gradient(120deg, rgba(255, 166, 87, 0.22) 0%, rgba(28, 24, 18, 0.95) 100%);
    color: #ffdfb6;
    font-weight: 600;
}

.btn-admin-access:hover,
.btn-admin-access:focus {
    border-color: rgba(255, 166, 87, 0.9);
    background: linear-gradient(120deg, rgba(255, 166, 87, 0.32) 0%, rgba(32, 26, 18, 0.95) 100%);
    color: #ffe7c8;
}

.btn-admin-access.active {
    border-color: rgba(255, 166, 87, 1);
    box-shadow: 0 0 0 1px rgba(255, 166, 87, 0.35) inset;
}

.tools-permissions-grid {
    align-items: stretch;
}

.tools-permission-item {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--gh-border-default);
    border-radius: 10px;
    background: var(--gh-border-muted);
    color: var(--fazen-text);
    cursor: pointer;
    user-select: none;
    transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.tools-permission-item:hover {
    border-color: var(--gh-border-default);
    background: var(--gh-canvas-subtle);
    transform: translateY(-1px);
}

.tools-permission-checkbox {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    border: 1px solid var(--gh-border-default);
    background-color: var(--gh-canvas-inset);
    cursor: pointer;
}

.tools-permission-checkbox:focus {
    border-color: var(--gh-accent);
    box-shadow: 0 0 0 0.2rem rgba(88, 166, 255, 0.2);
}

.tools-permission-checkbox:checked {
    background-color: var(--gh-accent);
    border-color: var(--gh-accent);
}

.super-admin-check {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid rgba(255, 166, 87, 0.45);
    border-radius: 10px;
    background: linear-gradient(120deg, rgba(255, 166, 87, 0.12) 0%, rgba(22, 27, 34, 0.92) 100%);
}

.super-admin-checkbox {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    border: 1px solid rgba(255, 166, 87, 0.75);
    background-color: var(--gh-canvas-inset);
    cursor: pointer;
}

.super-admin-checkbox:focus {
    border-color: var(--gh-attention-fg);
    box-shadow: 0 0 0 0.2rem rgba(255, 166, 87, 0.22);
}

.super-admin-checkbox:checked {
    background-color: #db6d28;
    border-color: #db6d28;
}

.super-admin-label {
    color: #ffdfb6;
    font-weight: 600;
    margin-bottom: 0;
}

.alert {
    border-radius: 12px;
    border-width: 1px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.alert-success {
    border-color: rgba(63, 185, 80, 0.55);
    background: linear-gradient(120deg, rgba(63, 185, 80, 0.18) 0%, rgba(22, 27, 34, 0.96) 100%);
    color: #aff5b6;
}

.alert-danger {
    border-color: rgba(248, 81, 73, 0.55);
    background: linear-gradient(120deg, rgba(248, 81, 73, 0.15) 0%, rgba(22, 27, 34, 0.96) 100%);
    color: #ffa198;
}

.alert-warning {
    border-color: rgba(210, 153, 34, 0.55);
    background: linear-gradient(120deg, rgba(210, 153, 34, 0.15) 0%, rgba(22, 27, 34, 0.96) 100%);
    color: #e3b341;
}

.text-bg-dark {
    background-color: var(--gh-border-muted) !important;
    color: var(--gh-fg-muted) !important;
    border: 1px solid var(--gh-border-default);
}

.badge-super-admin {
    background: linear-gradient(120deg, rgba(255, 166, 87, 0.22) 0%, rgba(40, 28, 16, 0.95) 100%);
    color: #ffdfb6;
    border: 1px solid rgba(255, 166, 87, 0.65);
    font-weight: 700;
}

.badge-regular-user {
    background: linear-gradient(120deg, rgba(230, 237, 243, 0.08) 0%, rgba(22, 27, 34, 0.95) 100%);
    color: var(--gh-fg-default);
    border: 1px solid var(--gh-border-default);
    font-weight: 600;
}

.users-admin-card {
    border: 1px solid var(--gh-border-default);
    border-radius: 14px;
    padding: 0.9rem;
    background: linear-gradient(145deg, rgba(22, 27, 34, 0.98) 0%, rgba(13, 17, 23, 0.98) 100%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    height: 100%;
}

.users-admin-card-header {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gh-border-default);
}

.users-admin-email {
    letter-spacing: 0.2px;
    word-break: break-word;
}

.users-admin-card-meta strong {
    color: var(--gh-fg-default);
}

.users-admin-card-summary {
    padding: 0.35rem 0.2rem;
}

.users-admin-card-summary .users-admin-avatar {
    display: flex;
    margin-left: auto;
    margin-right: auto;
}

.users-admin-avatar {
    width: 62px;
    height: 62px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.2) 0%, rgba(22, 27, 34, 0.95) 100%);
    border: 1px solid rgba(88, 166, 255, 0.45);
    color: #a5d6ff;
    font-size: 1.1rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.users-admin-card-detail {
    animation: toolFadeIn 220ms ease-out;
}

.users-admin-grid.users-admin-grid-editing .users-admin-grid-item {
    display: none !important;
}

.users-admin-grid.users-admin-grid-editing .users-admin-grid-item.users-admin-grid-item-active {
    display: flex !important;
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
}

.tool-dashboard-wrap {
    background: linear-gradient(160deg, rgba(22, 27, 34, 0.55) 0%, rgba(13, 17, 23, 0.35) 100%);
}

.tool-dashboard-card {
    -webkit-text-decoration: none;
    text-decoration: none;
    color: inherit;
    border-radius: 14px;
    transition: transform 160ms ease, box-shadow 200ms ease, border-color 200ms ease;
    border: 1px solid var(--gh-border-default);
    background: linear-gradient(145deg, rgba(22, 27, 34, 0.98) 0%, rgba(13, 17, 23, 0.98) 100%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.tool-dashboard-card:hover,
.tool-dashboard-card:focus,
.tool-dashboard-card:focus-visible {
    color: inherit;
    -webkit-text-decoration: none;
    text-decoration: none;
    transform: translateY(-2px);
    border-color: rgba(88, 166, 255, 0.4);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(88, 166, 255, 0.1);
    outline: none;
}

.tool-dashboard-card-inner {
    padding: 1.1rem 1.15rem;
    border-radius: 13px;
}

.tool-dashboard-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.2) 0%, rgba(22, 27, 34, 0.9) 100%);
    border: 1px solid rgba(88, 166, 255, 0.3);
    color: #79c0ff;
    font-size: 1.05rem;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.tool-dashboard-cta {
    padding-top: 0.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

/* Otvoriť – text akcent (tlačidlá sú globálne ako nav-link) */
.tool-dashboard-cta .text-success {
    color: var(--gh-accent) !important;
}

.tool-dashboard-card:hover .tool-dashboard-cta .text-success,
.tool-dashboard-card:focus-visible .tool-dashboard-cta .text-success {
    color: var(--gh-accent-hover) !important;
}

.ai-placeholder {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 0.8rem;
    border-radius: 999px;
    background: var(--gh-border-muted);
    border: 1px solid var(--gh-border-default);
}

.ai-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--fazen-green);
    animation: aiPulse 1.2s infinite ease-in-out;
}

.ai-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-dot:nth-child(3) {
    animation-delay: 0.4s;
}

.ai-chat-log {
    max-height: none !important;
    height: auto !important;
    overflow: visible;
    padding: 0.75rem;
    background: var(--gh-canvas-inset);
    border: 1px solid var(--gh-border-default);
    border-radius: 14px;
}

.ai-msg {
    margin-bottom: 0.85rem;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--gh-border-default);
}

.css-filter-preview-box {
    background: linear-gradient(135deg, var(--gh-canvas-inset) 0%, var(--gh-canvas-subtle) 100%);
    border: 1px solid var(--gh-border-default);
    border-radius: 12px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.css-filter-pixel {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.whois-summary-card {
    border: 1px solid var(--gh-border-default);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(22, 27, 34, 0.98) 0%, rgba(13, 17, 23, 0.98) 100%);
    padding: 0.75rem 0.85rem;
    height: 100%;
}

.whois-registry-lines {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.whois-registry-row {
    display: grid;
    grid-template-columns: minmax(180px, 240px) 1fr;
    gap: 0.7rem;
    padding: 0.45rem 0.55rem;
    border: 1px solid var(--gh-border-muted);
    border-radius: 9px;
    background: var(--gh-canvas-subtle);
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.whois-registry-row:hover {
    background: var(--gh-border-muted);
    border-color: var(--gh-border-default);
    transform: translateY(-1px);
}

.whois-registry-row:focus-within {
    background: var(--gh-border-muted);
    border-color: rgba(88, 166, 255, 0.5);
    box-shadow: 0 0 0 1px rgba(88, 166, 255, 0.18) inset;
}

.whois-registry-key {
    color: var(--gh-fg-muted);
    font-weight: 600;
}

.whois-registry-value {
    color: var(--gh-fg-default);
    word-break: break-word;
}

.whois-registry-row-plain {
    grid-template-columns: 1fr;
}

.ai-msg-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.ai-msg-user {
    background: linear-gradient(120deg, rgba(88, 166, 255, 0.18) 0%, rgba(22, 27, 34, 0.92) 100%);
    border-color: rgba(88, 166, 255, 0.4);
}

.ai-msg-user .ai-msg-label {
    color: #a5d6ff;
}

.ai-msg-assistant {
    background: var(--gh-border-muted);
    border-color: var(--gh-border-default);
}

.ai-msg-assistant .ai-msg-label {
    color: var(--gh-fg-muted);
}

.ai-msg-body {
    white-space: pre-wrap;
    word-break: break-word;
}

.ai-msg-text {
    color: var(--fazen-text);
}

.ai-code-wrap {
    border: 1px solid var(--gh-border-default);
    border-radius: 12px;
    background: var(--gh-canvas-inset);
    padding: 0.65rem;
}

.ai-code-title {
    font-size: 0.8rem;
    color: var(--fazen-text-muted);
    margin-bottom: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ai-code-area {
    background: var(--gh-canvas-default);
    border-color: var(--gh-border-muted);
    color: var(--gh-fg-default);
}

.result-box {
    min-height: 100px;
    background: var(--gh-canvas-inset);
    color: var(--gh-fg-default);
    padding: 0.85rem 1rem;
    border: 1px solid var(--gh-border-default);
}

.counter[disabled] {
    background-color: var(--gh-border-muted);
    color: var(--fazen-text);
    opacity: 1;
}

a {
    color: var(--fazen-green);
    text-decoration: none;
}

a:hover {
    color: var(--fazen-green-hover);
    text-decoration: underline;
}

a.tool-dashboard-card:hover,
a.tool-dashboard-card:focus,
a.tool-dashboard-card:focus-visible {
    text-decoration: none;
    -webkit-text-decoration: none;
}

.text-secondary {
    color: var(--fazen-text-muted) !important;
}

.fa-solid.text-primary,
.fa-solid.me-2.text-primary {
    color: var(--fazen-green) !important;
}

.status-stack {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1080;
    width: min(420px, calc(100vw - 2rem));
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.status-alert {
    margin-bottom: 0;
    border-radius: 12px;
    border: 1px solid rgba(63, 185, 80, 0.45);
    background: linear-gradient(120deg, rgba(63, 185, 80, 0.14) 0%, rgba(22, 27, 34, 0.95) 100%);
    color: #aff5b6;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    padding-right: 2.8rem;
}

.status-alert .btn-close {
    filter: invert(1) grayscale(100%) brightness(180%);
    opacity: 0.85;
}

.status-alert .btn-close:hover {
    opacity: 1;
}

.ai-fab {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--fazen-text);
    background: linear-gradient(120deg, rgba(88, 166, 255, 0.18) 0%, rgba(56, 139, 253, 0.08) 100%);
    border: 1px solid rgba(88, 166, 255, 0.55);
    box-shadow:
        0 0 0 1px rgba(88, 166, 255, 0.15) inset,
        0 8px 20px rgba(0, 0, 0, 0.28);
    z-index: 1070;
    transition: all 0.15s ease;
}

.ai-fab:hover {
    color: var(--fazen-text);
    background: var(--gh-canvas-inset);
    border: 1px solid var(--gh-border-default);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px) scale(1.03);
    text-decoration: none;
}

.ai-fab:active {
    background: var(--gh-border-muted);
    border-color: var(--gh-border-default);
    color: var(--fazen-text);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: translateY(0) scale(1);
}

@keyframes toolFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes aiPulse {
    0%, 80%, 100% {
        opacity: 0.25;
        transform: scale(0.85);
    }
    40% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 991.98px) {
    .dashboard-sidebar {
        position: static;
    }
}
