html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #00334F;
    color: #fff;
    position: relative;
    z-index: 1;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('Images/Chain Link_White.png');
    background-size: 50%;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.5;
    z-index: -1;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.contentD {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    padding: 2rem 1rem;
    max-width: 960px;
    margin: 0 auto;
}

.contentD.contentD-ai-wide {
    justify-content: stretch;
    align-items: stretch;
    width: 100%;
    max-width: 1200px;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: clip;
    padding: 1.25rem 0.5rem 0.5rem;
}

.contentD.contentD-ai-wide > .floating-box {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

.floating-box {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 8px;
    width: 95%;
    max-width: 1400px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    margin: 20px auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    overflow: hidden;
}

.floating-box * {
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .floating-box {
        width: 98%;
        padding: 1rem;
    }
}

.contentD > .floating-box.rg-ai-surface {
    background: #1a1a1e;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.45);
    color: #e8e8ea;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible;
}

.contentD > .floating-box.rg-ai-surface h1,
.contentD > .floating-box.rg-ai-surface h2,
.contentD > .floating-box.rg-ai-surface h3,
.contentD > .floating-box.rg-ai-surface h4,
.contentD > .floating-box.rg-ai-surface h5 {
    color: #fff;
}

.contentD > .floating-box.rg-ai-surface .text-muted {
    color: rgba(255, 255, 255, 0.55) !important;
}

.contentD > .floating-box.rg-ai-surface hr {
    border-color: rgba(255, 255, 255, 0.08);
    opacity: 1;
}

.contentD > .floating-box.rg-ai-surface .form-control,
.contentD > .floating-box.rg-ai-surface .form-select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #fff;
}

.contentD > .floating-box.rg-ai-surface .form-control:focus,
.contentD > .floating-box.rg-ai-surface .form-select:focus {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.2);
}

.contentD > .floating-box.rg-ai-surface .form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.contentD > .floating-box.rg-ai-surface .btn-primary {
    border-radius: 10px;
    border-color: #0d6efd;
}

.contentD > .floating-box.rg-ai-surface .btn-outline-secondary {
    border-radius: 10px;
}

.contentD > .floating-box.rg-ai-surface .alert-warning {
    background: rgba(255, 193, 7, 0.12);
    border-color: rgba(255, 193, 7, 0.35);
    color: #fff3cd;
}

.contentD > .floating-box.rg-ai-surface .alert-danger {
    background: rgba(220, 53, 69, 0.15);
    border-color: rgba(220, 53, 69, 0.4);
    color: #f8d7da;
}

.contentD > .floating-box.rg-ai-surface .alert-success {
    background: rgba(25, 135, 84, 0.15);
    border-color: rgba(25, 135, 84, 0.4);
    color: #d1e7dd;
}

.contentD > .floating-box.rg-ai-surface .text-danger,
.contentD > .floating-box.rg-ai-surface .validation-message {
    color: #f8d7da !important;
}

@keyframes scPortalAutofillStart {
    from { opacity: 1; }
    to { opacity: 1; }
}

input:-webkit-autofill {
    animation-name: scPortalAutofillStart;
    animation-duration: 0.001s;
}

.contentD > .floating-box.rg-ai-surface .card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e8e8ea;
    border-radius: 10px;
}

.contentD > .floating-box.rg-ai-surface .card-header,
.contentD > .floating-box.rg-ai-surface .card-footer {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e8e8ea;
}

.contentD > .floating-box.rg-ai-surface .card-body {
    color: #e8e8ea;
}

.contentD > .floating-box.rg-ai-surface .list-group-item {
    color: #e8e8ea;
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

.contentD > .floating-box.rg-ai-surface .list-group-item:hover,
.contentD > .floating-box.rg-ai-surface .list-group-item-action:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f8f9fa;
}

.contentD > .floating-box.rg-ai-surface .list-group-item.active {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.contentD > .floating-box.rg-ai-surface .table {
    --bs-table-color: #e8e8ea;
    --bs-table-bg: rgba(255, 255, 255, 0.04);
    --bs-table-striped-color: #e8e8ea;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.06);
    --bs-table-hover-color: #f8f9fa;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.08);
    --bs-table-border-color: rgba(255, 255, 255, 0.1);
    color: #e8e8ea;
    border-color: rgba(255, 255, 255, 0.1);
}

.contentD > .floating-box.rg-ai-surface table.ss-requests-table th,
.contentD > .floating-box.rg-ai-surface table.ss-requests-table td {
    vertical-align: middle;
}

/* RgAiPillDropdown */
.rg-ai-pill-dropdown {
    width: 100%;
}

.rg-ai-pill-dropdown--inline {
    display: inline-block;
    width: auto;
}

.rg-ai-pill-dropdown--open {
    z-index: 20;
}

.rg-ai-pill-dropdown--inline .chat-model-dropdown-toggle {
    width: auto !important;
    min-width: 8rem;
}

.rg-ai-pill-dropdown--sm .chat-model-pill-select.chat-model-dropdown-toggle {
    padding-top: 0.28rem;
    padding-bottom: 0.28rem;
    font-size: 0.8125rem;
    min-height: 31px;
}

.chat-model-pill-select {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    cursor: pointer;
    min-width: 140px;
    appearance: none;
}

.chat-model-pill-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.2);
}

.chat-model-dropdown-toggle {
    appearance: none;
    background-image: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-width: 140px;
    padding-right: 1.75rem;
    position: relative;
    text-align: left;
    width: 100%;
}

.chat-model-dropdown-toggle .chat-model-pill-select-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-model-dropdown-toggle .chat-model-pill-select-arrow {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.2s;
}

.chat-model-dropdown-toggle:focus,
.chat-model-dropdown-toggle:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.2);
}

.floating-box.rg-ai-surface .chat-model-dropdown-menu,
.rg-ai-pill-dropdown .chat-model-dropdown-menu,
.modal-content.bg-dark .chat-model-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    min-width: 220px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 1050;
    background-color: #252528 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px;
    padding: 0.35rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    isolation: isolate;
}

.modal.d-block .chat-model-dropdown-menu,
.modal.show .chat-model-dropdown-menu {
    z-index: 1065;
}

.floating-box.rg-ai-surface .chat-model-dropdown-item,
.rg-ai-pill-dropdown .chat-model-dropdown-item,
.modal-content.bg-dark .chat-model-dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #ffffff !important;
    font-size: 0.8rem;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.floating-box.rg-ai-surface .chat-model-dropdown-item:hover,
.rg-ai-pill-dropdown .chat-model-dropdown-item:hover,
.modal-content.bg-dark .chat-model-dropdown-item:hover {
    background-color: #3d4148 !important;
    color: #ffffff !important;
}

.floating-box.rg-ai-surface .chat-model-dropdown-item.active,
.rg-ai-pill-dropdown .chat-model-dropdown-item.active,
.modal-content.bg-dark .chat-model-dropdown-item.active {
    background-color: #1b5a9e !important;
    color: #ffffff !important;
}

.floating-box.rg-ai-surface .chat-model-dropdown-item:focus,
.rg-ai-pill-dropdown .chat-model-dropdown-item:focus {
    outline: 2px solid rgba(13, 110, 253, 0.5);
    outline-offset: -2px;
}

.rg-ai-pill-dropdown--open .chat-model-pill-select {
    border-color: rgba(255, 255, 255, 0.2);
}

.register-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.recaptcha-widget-host {
    min-height: 78px;
}
