@import url('fonts.css');
@import url('theme.css');

html,
body {
    height: 100%;
}

body.app-body {
    margin: 0;
    overflow: hidden;
    font-family: "DM Sans", sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
}

@import url('fonts.css');
@import url('theme.css');
@import url('lib/select2/css/select2.min.css');

/************************* BOOTSTRAP OVERRIDE *************************/
.form-control {
    font-size: 14px;
    border: 1px solid rgba(30, 30, 80, .12);
    color: #0F0F2A;
    background: #fff;
}

.btn {
    font-size: 14px;
    border-color: rgba(30, 30, 80, .12);
}
.modal-title {
    font-weight: 700;
}
.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
}
.form-text {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 6px;
}
.text-muted {
    --bs-text-opacity: 1;
    color: var(--text-muted) !important;
}

textarea.form-control {
    padding: 18px;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--stellar-blue);
    --bs-btn-border-color: var(--stellar-blue);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--stellar-blue-light);
    --bs-btn-hover-border-color: var(--stellar-blue-light);
    /* Use stellar blue RGB for focus shadow */
    --bs-btn-focus-shadow-rgb: 53, 53, 232;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--stellar-blue-muted);
    --bs-btn-active-border-color: var(--stellar-blue-muted);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--stellar-blue);
    --bs-btn-disabled-border-color: var(--stellar-blue);
}

.btn-outline-primary {
    --bs-btn-color: var(--stellar-blue);
    --bs-btn-bg: transparent;
    --bs-btn-border-color: var(--stellar-blue);
    --bs-btn-hover-color: var(--stellar-blue);
    --bs-btn-hover-bg: transparent;
    --bs-btn-hover-border-color: var(--stellar-blue);
    --bs-btn-focus-shadow-rgb: 53, 53, 232;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--stellar-blue);
    --bs-btn-active-border-color: var(--stellar-blue);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--stellar-blue);
    --bs-btn-disabled-border-color: var(--stellar-blue);
}

.btn-ghost {
    --bs-btn-color: #fff;
    --bs-btn-bg: transparent;
    --bs-btn-border-color: rgba(0, 0, 0, 0.3);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: rgba(255, 255, 255, 0.1);
    --bs-btn-hover-border-color: #fff;
    /* Use white RGB for focus shadow */
    --bs-btn-focus-shadow-rgb: 255, 255, 255;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: rgba(255, 255, 255, 0.2);
    --bs-btn-active-border-color: #fff;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: rgba(255, 255, 255, 0.5);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: rgba(255, 255, 255, 0.5);
}

.btn-primary:hover {
    box-shadow: 0 4px 16px rgba(53, 53, 232, 0.4)!important;
    transform: translateY(-1px);
    transition: all 0.25s ease-in-out;
}

.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    color: var(--bs-nav-pills-link-active-color);
    background-color: var(--stellar-blue);
}

/************************ SELECT2 *************************/
.select2-container, .select2-container .selection {
    width: 100% !important;
}

.select2-container .select2-selection--single, .select2-container .select2-selection--multiple  {
    height: auto;
    padding-block: 0.25rem;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    color: var(--text-primary);
    line-height: 1.5;
    padding: 0;
}

.select2-container .select2-selection--single .select2-selection__placeholder {
    color: #6c757d;
}

.select2-container .select2-selection--single .select2-selection__arrow {
    height: 100%;
    top: 0;
}

.select2-container .select2-selection--single .select2-selection__arrow b {
    border-color: var(--text-primary) transparent transparent transparent;
    border-width: 5px 4px 0 4px;
}


.select2-container .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.select2-container .select2-selection--multiple .select2-search--inline {
    display: flex;
    width: 100%;
    align-items: center;
}

.select2-container .select2-selection--multiple .select2-search--inline .select2-search__field {
    margin: 0;
    width: 100%;
    padding: 2px 0;
    font-size: 14px;
    color: var(--text-primary);
}

.select2-container .select2-selection--multiple .select2-selection__choice {
    margin: 0;
    padding: 6px 10px;
    background: #f4f6fb;
    border: 1px solid rgba(30, 30, 80, 0.12);
    color: var(--text-primary);
    font-size: 13px;
    line-height: 1.2;
}

.select2-container .select2-selection--multiple .select2-selection__choice__remove {
    margin-right: 6px;
    margin-top: 4px;
    color: #6c757d;
    border: none;
    background: transparent;
    font-size: 14px;
}

.select2-container .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: var(--bs-danger);
}

.select2-search--dropdown {
    padding: 10px 12px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    padding-left: 5px;
}

.select2-search--dropdown .select2-search__field {
    padding-block: 0.375rem;
    font-size: 14px;
    border: 1px solid rgba(30, 30, 80, 0.12);
    color: var(--text-primary);
}

.select2-results__option {
    color: var(--text-primary);
}

/************************* GLOBAL *************************/
html,
body {
    height: 100%;
}

body.app-body {
    margin: 0;
    overflow: hidden;
    font-family: "DM Sans", sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
}

.ls-1 {
    letter-spacing: 0.1em;
}
.ls-2 {
    letter-spacing: 0.2em;
}

.message {
    border: none;
    box-shadow: none;
    padding: 12px 18px;
    color: white!important;
}

.message.error {
    background-color: var(--bs-danger);
}
.message.info, .message.notice {
    background-color: var(--bs-primary);
}
.message.warning {
    background-color: var(--bs-warning);
}
.page-title {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.page-subtitle {
    font-size: 13.5px;
    color: var(--text-secondary);
}

.btn.btn-rounded {
    border-radius: 999px;
}

.radio-cards {
    display: grid;
    gap: 16px;
}

.radio-card-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-card {
    display: block;
    padding: 16px 20px;
    border: 2px solid #d0d7de;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.radio-card:hover {
    border-color: #999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.radio-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.radio-card__title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
}

.radio-card__text {
    margin: 8px 0;
    font-size: 14px;
}

.radio-card__check {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.radio-card__check::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--stellar-blue-light);
    transform: scale(0);
    transition: transform 0.2s ease;
}

.radio-card-input:checked + .radio-card {
    border-color: var(--stellar-blue-light);
    box-shadow: var(--shadow-soft);
}

.radio-card-input:checked + .radio-card .radio-card__check {
    border-color: var(--stellar-blue);
}

.radio-card-input:checked + .radio-card .radio-card__title {
    color: var(--stellar-blue);
}

.radio-card-input:checked + .radio-card .radio-card__check::after {
    transform: scale(1);
}

.radio-card-input:focus-visible + .radio-card {
    outline: 2px solid var(--stellar-blue);
    outline-offset: 2px;
}

.badge-info, .btn-badge {
    background: #E4E4EF;
    border: 1px solid;
    color: rgba(var(--text-secondary));
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 11px;
}

.form-wizard .carousel-inner {
    height: calc(100vh - var(--topbar-height) - 200px);
    overflow-y: auto;
    overflow-x: hidden;
}

.btn-ghost:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-1px);
    transition: all 0.25s ease-in-out;
}

.shadow-hover:hover {
    border-color: rgba(53, 53, 232, 0.3) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-1px);
    transition: all 0.25s ease-in-out;
}

.background-light-blue-gradient {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(53, 53, 232, 0.08) 100%);
}

.axe-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.axis-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 22px;
    position: relative;
    overflow: hidden;
    transition: all 0.2s;
}

.axis-count {
    font-size: 12px;
    color: var(--text-muted);
}

.skNoClient {
    color: var(--sk-warning, #b45309);
    cursor: help;
    white-space: nowrap;
}

.skNoClient i {
    margin-right: 4px;
}

.table-fixed-head {
    overflow: auto;
    height: calc(100vh - 200px);
}
.table-fixed-head thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}
