:root {
    --primary-color: #0085ff;
    --bg-color: #151718;
    --secondary-color: #242627;
    --text: #99a1af;
    --input-border: rgba(129, 129, 129, 0.3);
    --container-border: rgba(129, 129, 129, 0.15);
    --success: #00cc8b;
    --warning: #ffc107;
    --tertiary: #e84c06;
    --danger: #dc3545;
    --purple-color: #ac4dff;
}


/* ? ScrollBar */

::-webkit-scrollbar {
    width: 0.625rem;
    height: 0.625rem;

}

::-webkit-scrollbar-track {
    background: var(--bg-color);

}

::-webkit-scrollbar-thumb {
    background: var(--text);
    border-radius: 1.25rem;
}


/* ? Fonts */

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-Medium.woff2') format('woff2'),
        url('../fonts/Poppins/Poppins-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-Bold.woff2') format('woff2'),
        url('../fonts/Poppins/Poppins-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-Regular.woff2') format('woff2'),
        url('../fonts/Poppins/Poppins-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-SemiBold.woff2') format('woff2'),
        url('../fonts/Poppins/Poppins-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}


/* ? Number Input Field */


/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}



html {
    scroll-behavior: smooth;
    font-size: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: #fff;
}

a {
    text-decoration: none;
    color: #fff;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

main {
    width: 100%;
    min-height: 100vh;
}

h1 {
    font-size: 2.5rem;
    font-weight: normal;
    margin: 1rem 0 0;
}

h2 {
    font-size: 1.25rem;
    font-weight: normal;
    line-height: 2.375rem;
    margin: 0
}

.highlight-subheading {
    color: #ff8000;
}

h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0.25rem 0 0.75rem;
    text-align: left;

    +p {
        text-align: left;
    }
}

svg[width="32"] {
    width: 2rem;
    height: 2rem;
}

svg[width="28"] {
    width: 1.75rem;
    height: 1.75rem;
}

svg[width="24"] {
    width: 1.5rem;
    height: 1.5rem;
}

svg[width="22"] {
    width: 1.375rem;
    height: 1.375rem;
}

svg[width="20"] {
    width: 1.25rem;
    height: 1.25rem;
}

svg[width="18"] {
    width: 1.125rem;
    height: 1.125rem;
}

svg[width="16"] {
    width: 1rem;
    height: 1rem;
}



/* ? Tabs */

.nav.nav-pills {
    margin: 0.25rem auto 1.5rem;
    width: fit-content;

    a {
        padding: 0.5rem 2.5rem;
        color: var(--text);
        border-radius: 0;
        cursor: pointer;

        &.active {
            background-color: transparent;
            border-bottom: 0.125rem solid #ff8000;
            font-weight: 500;
            cursor: auto;
        }

        &:focus-visible {
            box-shadow: none;
        }
    }
}


/* ? Login Signup */

main:has(.right-container) {
    background: url(../images/login-banner.webp) top left/cover no-repeat;
}

.right-section {
    margin-right: 9%;
    padding: 2rem 0;
    z-index: 1;
}

.right-container {
    background-image: linear-gradient(to right, rgb(9, 20, 33, 0.5), rgb(2, 6, 12, 0.5));
    border: 1px solid #2f4254;
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin: 1.25rem 0;
    backdrop-filter: blur(10px);
}

.input-field {
    display: block;
    position: relative;

    input.form-control {
        background-color: transparent;
        padding: 0.875rem 1.75rem 0.875rem 3.25rem;
        color: #fff;
        border: 1px solid #1a222c;
        outline: 0;
        border-radius: 0.25rem;
        width: 28.75rem;
        margin-bottom: 1rem;

        &::placeholder {
            color: var(--text);
        }

        &:focus {
            box-shadow: 0 0 0 .25rem rgba(0, 133, 255, .25);
        }

        &.password-field {
            padding: 0.875rem 3.25rem;
        }
    }

    svg {
        stroke: var(--text);
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: 1.125rem;

        &:nth-of-type(2) {
            left: auto;
            right: 1.125rem;
        }
    }
}

.checklink {
    font-size: 0.875rem;

    input.form-check-input {
        background-color: var(--bg-color);
        width: 1.25rem;
        height: 1.25rem;
        margin: 0 0.375rem 0 0;

        &:checked[type=checkbox] {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
        }

        &:focus {
            box-shadow: 0 0 0 .25rem rgba(0, 133, 255, .25);
        }
    }

    a {
        color: #ff8000;
        font-weight: 500;
    }
}

.remember-check {
    input.form-check-input {
        background-color: transparent;

        &:checked[type=checkbox] {
            background-color: var(--tertiary);
            border-color: var(--tertiary);
        }

        &:focus {
            box-shadow: 0 0 0 .25rem rgba(232, 76, 6, .25);
        }
    }
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--primary-color);
    font-size: 1.125rem;
    width: 100%;
    border: 0;
    padding: 0.875rem 1.25rem;
    color: #fff;
    border-radius: 0.25rem;
    margin: 1.5rem 0 1.25rem;
    font-weight: 500;
    text-wrap: nowrap;
}

.login-signup-btn {
    background-image: linear-gradient(to right, var(--tertiary), #ff6900);
    /* background: url(../images/button.png) center/cover no-repeat;
    border-top: 2px solid #fbc556;
    border-bottom: 2px solid #fbc556; */
    box-shadow: rgba(255, 128, 0, 0.3) 0px 0px 2px, rgba(255, 128, 0, 0.1) 0px 0px 4px;
    font-size: 1.25rem;
    font-weight: normal;
}

.line {
    margin: 1rem 0;

    &::before,
    &::after {
        content: "";
        width: 45%;
        position: absolute;
        top: 11px;
        left: 0;
        border-top: 1px dashed #364153;
    }

    &::after {
        left: auto;
        right: 0;
    }

    span {
        color: var(--text);
    }
}

.deploy-text {
    letter-spacing: 0.125rem;
    font-size: 0.875rem;

    +p {
        font-size: 1.375rem;
    }
}

.social-links {
    gap: 1.5rem;

    a {
        flex-grow: 1;
        padding: 0.625rem 0;
        background-color: transparent;
        border: 1px solid #27303b;
        border-radius: 50rem;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.875rem;
    }
}


.cstmformcheck input {
    width: 1.375rem;
    height: 1.375rem;
    background-color: var(--bg-color);
    border-color: #fff;
    margin: 0 0.625rem 0 0;

    &:checked {
        background-color: var(--bg-color);
        border-color: #fff;
        background-image: url(../images/radio-check-icon.svg);
    }

    &:focus {
        box-shadow: 0 0 0 .25rem rgba(0, 133, 255, .25);
    }

    +label {
        font-size: 0.875rem;

        .current-plan {
            font-size: 0.75rem;
            padding: 0.125rem 0.5rem;
        }
    }
}

.terms-modal {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(0.25rem);

    .modal-content {
        background-color: var(--secondary-color);
        color: #fff;
    }

    .button {
        background-color: #868686;
        pointer-events: none;
    }
}

.terms-body {
    background-color: var(--bg-color);
    font-size: 0.875rem;

    &>span {
        color: var(--text);
    }

    p {
        margin: 1.125rem 0;
    }

    ul {
        list-style-type: disc;
        padding-left: 1.75rem;
    }
}

.terms-body .terms-list {
    font-weight: 600;
    margin-top: 1.5rem;
}

.terms-body:has(.form-check-input:checked[type="checkbox"])+.modal-footer .button {
    background-color: var(--primary-color);
    pointer-events: auto;
}

.btn-close {
    filter: invert(1);
    opacity: 1;
    transform: scale(0.9);

    &:focus {
        box-shadow: none;
    }

    &.default-cross-btn {
        transform: scale(1);
    }
}

.right-container-2 {
    width: 31.375rem;
}

.otp-field {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    margin: 1.25rem 3.125rem 0;

    input.otp-input {
        width: 100%;
        height: 3.375rem;
        padding: 0.625rem;
        border: 1px solid #1b2431;
        border-radius: 0.375rem;
        text-align: center;
        margin-bottom: 0;
    }
}

.resend-code a {
    text-decoration: underline;
    color: #ff8000;
    font-weight: 500;
}

.forgot-msg {
    margin-bottom: 1.25rem;
}

.back-login a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: auto;
    gap: 0.375rem;

    svg {
        stroke: #ff8000;
    }

    span {
        color: #ff8000;
        font-weight: 500;
    }
}


/* ? Dashboard */

main.dashboard {
    position: relative;
    display: block;
    background-color: #000;
    padding: 0;
}


/* ? Sidebar */

.sidebar {
    position: fixed;
    background-color: var(--bg-color);
    width: 18.75rem;
    max-width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 999;
    transition: all .6s;

    * {
        transition: all .3s;
    }

    figure {
        margin: 1.875rem 0 0 1.75rem;

        +figure {
            display: none;
        }
    }

    nav {
        display: flex;
        flex-direction: column;
        gap: 0.625rem;
        padding: 1.875rem 0.875rem;
        flex-grow: 1;
        overflow-y: auto;
        scrollbar-width: none;

        &::-webkit-scrollbar {
            display: none;
        }

        a {
            display: flex;
            align-items: center;
            gap: 0.625rem;
            padding: 0.875rem;
            color: var(--text);
            border-radius: 0.625rem;
            white-space: nowrap;

            &:hover {
                color: #fff;
            }

            &.active {
                background-color: rgba(0, 133, 255, 0.1);
                border-left: 0.25rem solid var(--primary-color);
                color: var(--primary-color);
            }

            svg {
                min-width: 1.5rem;
            }
        }
    }

    .card-icon {
        position: absolute;
        background-color: #132330;
        color: var(--primary-color);
        border-radius: 50rem;
        right: -1rem;
        top: 1.5rem;
        margin: 0;
        display: none;
    }
}

/* .nav-item-dropdown {
    svg:last-child {
        transform: rotate(0deg);
    }

    +ul {
        max-height: 0;
        overflow: hidden;

        li a {
            padding: 0.75rem 0.875rem 0.75rem 3rem;
            margin-top: 0.625rem;
        }
    }

    &.submenu-open {
        background-color: rgba(0, 133, 255, 0.1);
        border-left: 0.25rem solid var(--primary-color);
        color: var(--primary-color);

        &:hover {
            color: var(--primary-color);
        }

        svg:last-child {
            transform: rotate(90deg);
        }

        +ul {
            max-height: 14.5rem;

            .highlight-nav-item {
                color: var(--primary-color);
                border-radius: 8px;
            }
        }
    }
} */

.nav-item-dropdown {

    svg:last-child {
        transform: rotate(0deg);
        transition: transform 0.3s ease;
        margin-left: auto;
    }

    + ul {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;

        li a {
            padding: 0.75rem 0.875rem 0.75rem 3rem;
            margin-top: 0.625rem;
        }

        .highlight-nav-item {
            color: var(--primary-color);

            svg {
                stroke: var(--primary-color);
            }
        }
    }

    &.submenu-open {
        background-color: rgba(0, 133, 255, 0.1);
        border-left: 0.25rem solid var(--primary-color);
        color: var(--primary-color);

        &:hover {
            color: var(--primary-color);
        }

        svg:last-child {
            transform: rotate(90deg);
        }

        + ul {
            max-height: 14.5rem;
        }
    }
}


/* Parent menu active when submenu item active */
div:has(.highlight-nav-item) {

    > .nav-item-dropdown {
        background-color: rgba(0, 133, 255, 0.1);
        border-left: 0.25rem solid var(--primary-color);
        color: var(--primary-color);

        svg {
            stroke: var(--primary-color);
        }

        svg:last-child {
            transform: rotate(90deg);
        }
    }

    > ul {
        max-height: 14.5rem;
    }
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1.5rem 1.25rem;
    border-top: 1px solid var(--container-border);

    figure {
        min-width: 45px;
    }

    div {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    p {
        margin-bottom: -0.125rem;
    }

    span {
        font-size: 0.875rem;
        color: var(--text);
    }
}

.mini-sidebar {
    width: 5rem;

    a:is(.active, .submenu-open) {
        padding: 0.875rem 0.75rem;

        +ul {
            max-height: 0;
        }
    }

    svg+span,
    svg:nth-of-type(2) {
        opacity: 0;
        visibility: hidden;
    }

    >figure:nth-of-type(1) {
        display: none;

        +figure {
            display: block;
            margin: 1.875rem auto 0;
        }
    }

    .user-profile div {
        opacity: 0;
    }

    +.content {
        margin-left: 5rem;
    }

    &:hover {
        width: 18.75rem;

        a:is(.active, .submenu-open) {
            padding: 0.875rem;

            +ul {
                max-height: 14.5rem;
            }
        }

        svg+span,
        svg:nth-of-type(2) {
            opacity: 1;
            visibility: visible;
        }

        >figure:nth-of-type(1) {
            display: block;

            +figure {
                display: none;
            }
        }

        .user-profile div {
            opacity: 1;
        }

        +.content {
            margin-left: 18.75rem;
        }
    }
}

main.dashboard:has(.show-sidebar)::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.sidebar.show-sidebar {
    margin-left: 0;

    .card-icon {
        display: flex;
    }
}


/* ? Header */

.content {
    background-color: var(--bg-color);
    margin-left: 18.75rem;
    position: relative;
    transition: all .6s;

    header {
        display: flex;
        align-items: center;
        background-color: var(--bg-color);
        padding: 1.25rem 2rem;
        color: var(--text);
        position: sticky;
        top: 0;
        left: 0;
        z-index: 998;

        .hamburger {
            cursor: pointer;
            transition: all .3s;

            &:hover {
                color: #fff;
            }
        }
    }

    section {
        background-color: #000;
        padding: 2rem;
    }
}

.notification {
    margin-left: auto;
    margin-right: 1.875rem;
}

button.dropdown-toggle {
    background-color: transparent;
    border: 0;
    outline: 0;
    color: var(--text);

    img {
        margin-right: 0.75rem;
    }
}

ul.dropdown-menu {
    background-color: var(--bg-color);
    margin-top: 1.25rem !important;
}

.dashboard-heading {
    margin-bottom: 0.5rem;

    .back-icon {
        cursor: pointer;
    }
}

.dashboard-heading-2 {
    margin-bottom: 2rem;
}

.content-heading {

    h1 {
        display: flex;
        align-items: center;
        gap: 0.625rem;
        font-size: 1.625rem;
        font-weight: 600;
        margin: 0;
        width: fit-content;

        +p {
            color: var(--text);
            margin-top: 0.375rem;
        }
    }
}


/* ? Account Data Table */

.sub-section {
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-radius: 0.625rem;
    margin-top: 1.5rem;
    overflow: hidden;

    div.dt-container .dt-input {
        border: none;
        background-color: var(--secondary-color);
        outline: none;
        font-size: 0.875rem;
    }

    label {
        font-size: 0.875rem;
        margin: 0 0.5rem;
    }

    table.dataTable>thead>tr>th {
        border-bottom-color: var(--container-border);
        color: var(--text);
        padding: 0.75rem;
        font-weight: 500;
    }

    table.dataTable.display>tbody>tr>* {
        border-top-color: var(--container-border);
        padding: 0.75rem;
    }

    table.dataTable th.dt-type-numeric,
    table.dataTable th.dt-type-date,
    table.dataTable td.dt-type-numeric,
    table.dataTable td.dt-type-date {
        text-align: left;
    }


    table.dataTable th.dt-type-numeric div.dt-column-header {
        flex-direction: row;
    }

    div.dt-container .dt-info,
    div.dt-container .dt-paging {
        font-size: 0.875rem;
        color: #fff !important;
    }

    div.dt-container .dt-paging .dt-paging-button {
        border-radius: 0.25rem;

        &:hover {
            background: var(--secondary-color);
        }
    }

    div.dt-container .dt-paging .dt-paging-button.current,
    div.dt-container .dt-paging .dt-paging-button.current:hover {
        background: var(--primary-color);
        border: none;
    }

    div.dt-container .dt-paging .dt-paging-button:active {
        box-shadow: none;
    }

    div.dt-container .dt-paging .dt-paging-button.disabled,
    div.dt-container .dt-paging .dt-paging-button.disabled:hover,
    div.dt-container .dt-paging .dt-paging-button.disabled:active {
        color: var(--text) !important;
    }
}


.sub-section div.dt-container.dt-empty-footer .dt-scroll-body {
    border-bottom-color: transparent;
}

.dt-layout-cell {
    ::-webkit-scrollbar {
        height: 0.5rem;
    }

    ::-webkit-scrollbar-thumb {
        background: var(--secondary-color);
    }
}

.status-cell span,
.account-cell span {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 50rem;
    background-color: rgba(0, 204, 139, 0.1);
    border: 1px solid rgba(0, 204, 139, 0.2);
    color: var(--success);

    &.pending {
        background-color: rgba(253, 199, 0, 0.1);
        border: 1px solid rgba(253, 199, 0, 0.2);
        color: var(--warning);
    }

    &.suspended {
        background-color: rgba(232, 76, 6, 0.1);
        border: 1px solid rgba(232, 76, 6, 0.2);
        color: var(--tertiary);
    }

    &.deactivated {
        background-color: rgba(220, 53, 69, 0.1);
        border: 1px solid rgba(220, 53, 69, 0.2);
        color: var(--danger);
    }
}

.account-cell span {
    background-color: var(--secondary-color);
    border: none;
    color: var(--primary-color);

    &.individual {
        color: var(--tertiary);
    }

    &.owner {
        color: var(--success);
    }

    &.viewer {
        color: var(--text);
    }
}


/* ? Account Information */

.account-info {

    h1 {
        font-size: 1.625rem;
        font-weight: 600;
        margin: 0 0.625rem 0 0;
    }

    >span {
        display: block;
        margin-top: 0.25rem;
        color: var(--text);
    }
}

select.form-select {
    width: fit-content;
    background-color: var(--secondary-color);
    color: #fff;
    border: 1px solid var(--input-border);
    outline: none;
    margin-left: 1rem;
    background-image: url(../images/chevron-down.svg);
    background-size: 18px;

    &:focus {
        box-shadow: 0 0 0 .25rem rgba(0, 133, 255, .25);
        border-color: var(--input-border);
    }
}

span.user-left-info label {
    width: 1.375rem;
    background-color: var(--primary-color);
}

.sub-heading {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    margin-bottom: 1.5rem;

    h2 {
        font-size: 1.125rem;
        font-weight: 500;
        color: #fff;
        margin: 0 0 0 0.5rem;
        width: fit-content;
    }
}

.sub-heading-container {
    margin-bottom: 1.5rem;
}


/* ? Subscription */

.current-plan-card {
    background: linear-gradient(135deg, rgba(0, 201, 80, 0.1), rgba(43, 127, 255, 0.1), rgba(173, 70, 255, 0.1));
    border: 1px solid rgba(0, 201, 80, 0.2);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;

    .info {
        display: flex;
        align-items: center;
        justify-content: space-between;

        .current-plan {
            font-size: 0.75rem;
            padding: 0.125rem 0.5rem;
        }

        &:nth-of-type(2) {
            border-bottom: 1px solid var(--container-border);
        }
    }
}

.text-group {
    span {
        color: var(--text);
    }

    p {
        font-size: 1.5rem;
        font-weight: 600;
    }
}

.api-progress {
    margin: 0.75rem 0;

    .progress {
        background-color: var(--bg-color);
        height: 0.625rem;
    }
}

.subscription-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 2.5rem;

    h3 {
        font-size: 1rem;
        font-weight: 500;
        margin: 0 0 1rem;
    }
}

.available-plans,
.card-info {

    label,
    >div {
        background-color: var(--bg-color);
        padding: 0.625rem 0.875rem;
        border: 1px solid var(--input-border);
        border-radius: 0.625rem;
        margin: 0 0 0.625rem;
        cursor: pointer;

        &:hover {
            background-color: var(--secondary-color);
            border-color: rgba(129, 129, 129, 1);
        }

        .card-name {
            display: flex;
            align-items: center;

            +span {
                display: inline-block;
                font-size: 0.75rem;
                color: var(--text);
                margin-top: 0.25rem;
            }
        }
    }

    >label:has(span.current-plan) {
        cursor: auto;
    }

    .button {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        font-weight: normal;
        padding: 0.625rem 1rem;
        margin-top: 1rem;
        gap: 0.375rem;
        opacity: 0.5;
        pointer-events: none;
    }

    .edit-plan-btn {
        opacity: 1;
        pointer-events: initial;
    }

    .plan-item:has(input[name="plan"]:checked)~button,
    .plan-item:has(input[name="plan"]:checked)~span button {
        opacity: 1;
        pointer-events: unset;
    }
}

label.free-plan:is(:hover, :has(+input:checked)) {
    background-color: var(--secondary-color);
    border-color: rgba(129, 129, 129, 1);
}

label.enterprise-plan:is(:hover, :has(+input:checked)) {
    background: linear-gradient(180deg, rgba(0, 204, 139, 0.2), rgba(0, 204, 139, 0.1));
    border: 1px solid rgba(0, 204, 139, 0.3);
}

label.professional-plan:is(:hover, :has(+input:checked)) {
    background: linear-gradient(180deg, rgba(0, 133, 255, 0.2), rgba(0, 133, 255, 0.1));
    border: 1px solid rgba(0, 133, 255, 0.3);
}

label.business-plan:is(:hover, :has(+input:checked)) {
    background: linear-gradient(180deg, rgba(232, 76, 6, 0.2), rgba(232, 76, 6, 0.1));
    border: 1px solid rgba(232, 76, 6, 0.3);
}

span.current-plan {
    font-size: 0.625rem;
    background-color: rgba(0, 204, 139, 0.2);
    border: 1px solid rgba(0, 204, 139, 0.3);
    color: var(--success);
    padding: 0.063rem 0.375rem;
    border-radius: 50rem;
    vertical-align: middle;
    margin-left: 0.5rem;
    text-wrap: nowrap;
}

span.card-icon {
    color: var(--text);
    background-color: var(--secondary-color);
    min-width: 2rem;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    margin-right: 0.75rem;

    &.yellow-icon {
        color: var(--warning);
        background-color: rgba(255, 193, 7, 0.1);
    }

    &.red-icon {
        color: var(--danger);
        background-color: rgba(220, 53, 69, 0.1);
    }

    &.blue-icon {
        color: var(--primary-color);
        background-color: rgba(0, 133, 255, 0.1);
    }

    &.green-icon {
        color: var(--success);
        background-color: rgba(0, 204, 139, 0.1);
    }

    &.purple-icon {
        color: var(--purple-color);
        background-color: rgba(172, 77, 255, 0.1);
    }

    &.orange-icon {
        color: var(--tertiary);
        background-color: rgba(232, 76, 6, 0.1);
    }
}

.subscription-info .card-info {
    >label:has(input.form-check-input:checked) {
        background: rgba(0, 133, 255, 0.05);
        border: 1px solid rgba(0, 133, 255, 0.3);
    }

    label:hover {
        background-color: transparent;
    }

    .card-name {
        font-size: 0.875rem;
    }

    div.manage-card {
        border-style: dashed;
        justify-content: center;
        padding: 0.875rem;

        .card-icon {
            min-width: 1.5rem;
            border-radius: 50rem;
        }

        &:hover {
            background-color: transparent;
        }
    }
}

.card-icon:has(~span input.form-check-input:checked) {
    color: var(--primary-color);
    background-color: rgba(0, 133, 255, 0.3);
}


/* ? Upgrade Plan Modal */

.selected-plan {
    background: linear-gradient(135deg, rgba(0, 133, 255, 0.1), rgba(173, 70, 255, 0.1), rgba(0, 184, 219, 0.1));
    border: 1px solid rgba(0, 133, 255, 0.2);
    border-radius: 0.75rem;
    padding: 1rem;
}

.upper-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;

    span:not(.current-plan) {
        font-size: 0.75rem;
        color: var(--text);
    }

    p {
        font-size: 1.5rem;
        margin: 0.25rem 0;
        font-weight: 600;
        line-height: 1.75rem;

        &.mb-0 {
            font-size: 1.875rem;
        }
    }

    span.current-plan {
        background-color: rgba(0, 133, 255, 0.2);
        border: 1px solid rgba(0, 133, 255, 0.3);
        color: var(--primary-color);
        padding: 0.125rem 0.5rem;
    }
}

.lower-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.875rem;
    padding-top: 1rem;
    border-top: 1px solid var(--container-border);

    p {
        display: flex;
        gap: 0.5rem;
        margin: 0;

        svg {
            color: var(--success);
        }
    }
}

.modal-subheading {
    margin: 1.5rem 0 0.75rem;
}

.billing-summary {
    background-color: var(--secondary-color);
    border: 1px solid var(--input-border);
    padding: 1rem;
    border-radius: 0.625rem;
    margin-top: 1.5rem;

    p {
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: var(--text);
        font-size: 0.875rem;
        margin-bottom: 0.5rem;

        span {
            color: #fff;
        }
    }

    >span+p {
        margin-top: 0.75rem;
    }

    .total-payment {
        border-top: 1px solid var(--container-border);
        padding-top: 0.125rem;

        span {
            font-size: 1.5rem;
            font-weight: 600;
        }
    }

    >span:last-child {
        font-size: 0.75rem;
        color: var(--text);
    }
}




/* ? Payment Modal */

.payment-modal {
    .modal-content {
        background-color: var(--bg-color);
        border-radius: 0.625rem;

        span.card-no {
            background-color: rgba(0, 133, 255, 0.2);
            border: 1px solid rgba(0, 133, 255, 0.3);
            color: var(--primary-color);
            font-size: 0.75rem;
            padding: 0.125rem 0.5rem;
        }

        .modal-title {
            font-size: 1.125rem;
            font-weight: 500;
        }

        .card-info>div {
            cursor: auto;
            padding: 1rem;
            background-color: transparent;

            .card-icon {
                align-self: flex-start;
                margin-top: 0.375rem;
            }

            &.active-card {
                background: rgba(0, 133, 255, 0.05);
                border: 1px solid rgba(0, 133, 255, 0.3);

                .card-icon {
                    color: var(--primary-color);
                    background-color: rgba(0, 133, 255, 0.3);
                }
            }
        }
    }
}

.card-links {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    margin-top: 0.625rem;
    gap: 1.25rem;

    >span {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        cursor: pointer;
    }
}

.default-link {
    color: var(--primary-color);
}

.remove-link {
    color: var(--danger);
}

.add-card-line {
    span {
        font-size: 0.75rem;
        background-color: var(--bg-color);
        color: var(--text);
        position: relative;
        padding: 0 0.5rem;
    }

    &::before {
        content: "";
        width: 100%;
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        border-top: 1px solid var(--input-border);
    }
}

.row:has(.form-field) {
    --bs-gutter-x: 0.625rem;
    --bs-gutter-y: 0.625rem;
}

.form-field {
    label {
        font-size: 0.875rem;
        margin: 0 0 0.25rem;
    }

    input.form-control,
    textarea.form-control {
        background-color: #000;
        border: 1px solid var(--container-border);
        outline: none;
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        color: #fff;

        &::placeholder {
            color: var(--text);
        }

        &:focus {
            box-shadow: 0 0 0 .125rem rgba(0, 133, 255, .25);
        }
    }
}

.col-12 input.form-check-input {
    background-color: var(--bg-color);
    width: 1.125rem;
    height: 1.125rem;
    margin: 0;
    vertical-align: middle;

    &:checked[type=checkbox] {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

    &:focus {
        box-shadow: 0 0 0 .125rem rgba(0, 133, 255, .25);
    }
}

.button.button-xs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
    font-size: 0.875rem;
    font-weight: normal;
    padding: 0.5rem 0.875rem;
    width: fit-content;
    border-radius: 0.375rem;
    background-color: var(--primary-color);
    pointer-events: initial;
    margin: 1rem 0 0 auto;
}

.btn-delete {
    background-color: #dc3545 !important;
    color: white !important;
}

.btn-delete:hover {
    background-color: darkred;
    cursor: pointer; 
}


/* ? Edit Profile */

.profile-tab-container {
    margin: 2rem 0 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;

    &::-webkit-scrollbar {
        display: none;
    }
}

.nav.profile-tab {
    padding: 0.25rem;
    background-color: var(--bg-color);
    margin: 0;
    border-radius: 50rem;
    flex-wrap: nowrap;

    a {
        display: flex;
        gap: 0.375rem;
        font-size: 0.875rem;
        padding: 0.5rem 1.875rem;
        border-radius: 50rem;

        &.active {
            background-color: var(--secondary-color);
            border: none;

            svg {
                stroke-width: 1.5;
            }
        }
    }
}

.edit-user-info {
    margin-bottom: 1.5rem;
}

.general-info {
    span {
        font-size: 0.875rem;
    }

    p+span {
        color: var(--text);
        margin: 0.125rem 0;
    }

    +label {
        cursor: pointer;
    }
}

.user-profile-form {

    label {
        font-size: 1rem;
        color: var(--text);
        font-weight: 500;
    }

    .form-field :is(input.form-control, textarea.form-control) {
        padding: 0.625rem 1rem;
        border-radius: 0.5rem;

        &:focus {
            box-shadow: 0 0 0 .25rem rgba(0, 133, 255, .25);
        }

        &:disabled {
            background-color: var(--secondary-color);
        }
    }

    select {
        width: 100%;
        font-size: 0.875rem;
        background-color: #000;
        color: #fff;
        border: 1px solid var(--input-border);
        outline: none;
        margin-left: auto;
        background-image: url(../images/chevron-down.svg);
        background-size: 20px;
        padding: 0.625rem 1rem;
        border-radius: 0.5rem;
    }

    &.row {
        --bs-gutter-x: 1.5rem;
        --bs-gutter-y: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

.button.button-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    font-size: 1rem;
    padding: 0.625rem 1rem;
    gap: 0.375rem;
    border-radius: 0.375rem;
    margin: 1.5rem 0 0 auto;
}


/* ? Security Settings */

.security-notification {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    background-color: var(--secondary-color);
    padding: 1rem;
    border: 1px solid var(--container-border);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    row-gap: 0.25rem;

    svg {
        color: var(--primary-color);
        margin: 0 0.75rem 0.25rem 0;
    }

    p {
        margin: 0 1rem 0 0;
    }

    span {
        color: var(--text);
        font-size: 0.875rem;
    }

    +p {
        margin: 1.5rem 0 1.25rem;
    }
}

div.form-switch {
    margin-left: auto;

    input.form-check-input {
        width: 2.25rem;
        height: 1.25rem;
        background-color: var(--text);
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
        border: none;

        &:focus {
            box-shadow: 0 0 0 .25rem rgba(0, 133, 255, .25);
        }

        &:checked {
            background-color: var(--primary-color);
        }
    }
}


/* ? Create Subscription */


.subscription-cards,
.user-request-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 1.5rem;

    .sub-section {
        display: flex;
        align-items: center;
        justify-content: space-between;

        p {
            color: var(--text);
        }

        >div:has(>svg) {
            width: 2.625rem;
            aspect-ratio: 1;
            border-radius: 0.375rem;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: var(--secondary-color);
        }

        span {
            font-size: 1.5rem;
            font-weight: 600;
        }
    }
}


.sub-section.blue-card {
    color: var(--primary-color);

    >div:has(>svg) {
        background-color: rgba(0, 133, 255, 0.1);
    }
}

.sub-section.red-card {
    color: var(--danger);

    >div:has(>svg) {
        background-color: rgba(220, 53, 69, 0.1);
    }
}

.sub-section.yellow-card {
    color: var(--warning);

    >div:has(>svg) {
        background-color: rgba(255, 193, 7, 0.1);
    }
}

.sub-section.green-card {
    color: var(--success);

    >div:has(>svg) {
        background-color: rgba(0, 204, 139, 0.1);
    }
}

.sub-section.orange-card {
    color: var(--tertiary);

    >div:has(>svg) {
        background-color: rgba(232, 76, 6, 0.1);
    }
}

.sub-section.purple-card {
    color: var(--purple-color);

    >div:has(>svg) {
        background-color: rgba(172, 77, 255, 0.1);
    }
}


.subscription-option {
    margin: 2rem 0;

    >div {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        color: var(--text);

        .form-switch {
            margin-bottom: 0.25rem;
        }
    }
}

.subscription-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
    gap: 1.5rem;

    .sub-section {
        margin-top: 0;
        font-size: 0.875rem;
        color: var(--text);
        border: 2px solid transparent;
        overflow: visible;
        transition: .3s all;

        >p {
            font-size: 1.875rem;
            font-weight: 600;
            margin: 2.25rem 0 0.5rem;
            color: #fff;

            span {
                color: var(--text);
                font-weight: normal;
                font-size: 0.875rem;
            }
        }

        &:hover {
            transform: translateY(-0.625rem);
            border: 2px solid var(--primary-color);
        }
    }
}

.professional-plan-card {
    position: relative;

    &::before {
        content: "Most Popular";
        position: absolute;
        background-color: var(--primary-color);
        color: #fff;
        padding: 0.25rem 0.625rem;
        border-radius: 50rem;
        font-size: 0.75rem;
        top: -0.813rem;
        left: 50%;
        transform: translateX(-50%);
    }
}
/* .professional-plan-card {
    position: relative;

    &::before {
        content: "Most Popular";
        position: absolute;
        background-color: var(--primary-color);
        color: #fff;
        padding: 0.25rem 0.625rem;
        border-radius: 50rem;
        font-size: 0.75rem;
        top: -0.813rem;
        left: 50%;
        transform: translateX(-50%);
    }
} */
.sub-section {
    position: relative;
}

/* Most Popular → Center (unchanged behavior) */
.professional-plan-card::before {
    content: "Most Popular";
    position: absolute;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.25rem 0.625rem;
    border-radius: 50rem;
    font-size: 0.75rem;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
}

/* Default → Top Right Corner */
.default-plan-card::after {
    content: "Default";
    position: absolute;
    background-color: green;
    color: #fff;
    padding: 0.25rem 0.625rem;
    border-radius: 50rem;
    font-size: 0.75rem;
    top: -12px;
    right: 10px;   /* 👈 key change */
}
.svg-container {
    width: 2.5rem;
    aspect-ratio: 1;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    background-color: rgba(0, 133, 255, 0.1);

    +p {
        margin: 0 0 0 0.75rem;
        font-size: 1.125rem;
        color: #fff;
    }
}

.plan-count {
    font-size: 0.75rem;
    gap: 0.375rem;
}

.subscription-inner-box {
    background-color: var(--secondary-color);
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    /* gap: 0.625rem; */

    >div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.625rem 0;
        border-bottom: 1px solid var(--container-border);

        span {
            color: #fff;
        }
    }
}

.subscription-feature {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;

    >p {
        color: #fff;
        font-weight: 500;
        margin-bottom: 0.25rem;
    }

    div {
        display: flex;
        align-items: center;
        gap: 0.5rem;

        svg {
            color: var(--success);
        }
    }

    +.button {
        margin-top: 1.5rem;
    }
}


/* ? Create Plan */

.create-plan {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(32.5rem, 1fr));
    gap: 1.5rem;

    .sub-heading {
        margin-bottom: 1.25rem;
    }

    .security-notification {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
        border-radius: 0.375rem;

        &:last-of-type {
            margin-bottom: 0;
        }
    }
}



/* ? Users Table */

.health-rate,
.action-cell {
    display: flex;
    gap: 0.375rem;

    svg {
        color: var(--primary-color);
    }
}

.action-cell {
    font-size: 0.875rem;
}

.button.outline-btn {
    background-color: transparent;
    color: var(--primary-color);
    box-shadow: inset 0 0 0 0.125rem var(--primary-color);
}

.delete-modal {
    p {
        font-size: 0.875rem;
        color: var(--text);
    }

    .button {
        background-color: var(--danger);

        svg {
            margin-bottom: 0.0625rem;
        }
    }
}


/* ? Users Information */

.user-information {
    display: grid;
    grid-template-columns: minmax(25rem, 0.5fr) 1fr;
    column-gap: 1.5rem;
}

.user-left-info {
    figure {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        margin: auto;
        width: 7.5rem;
        aspect-ratio: 1;
        background: linear-gradient(135deg, #2B7FFF, #AD46FF, #F6339A);
        border-radius: 50rem;
        box-shadow: 0 0 0 0.25rem var(--container-border);
    }

    label {
        right: 0;
        bottom: 0;
        width: 1.75rem;
        aspect-ratio: 1;
        background-color: var(--success);
        border-radius: 50rem;
        cursor: pointer;
    }

    >p {
        font-size: 1.25rem;
        font-weight: 500;
    }

    >span {
        margin: 0.375rem 0 0.75rem;
        font-size: 0.875rem;
        color: var(--text);
    }

    +div {
        margin-top: 1.5rem;
    }
}

.user-more-info {
    border-top: 1px solid var(--container-border);
    gap: 0.75rem;

    >div {
        display: flex;
        align-items: center;
        justify-content: space-between;

        p {
            color: var(--text);
            margin: 0;
        }

        .highlight-text {
            cursor: pointer;
        }
    }
}

span.success-text {
    color: var(--success);
}

span.warning-text {
    color: var(--warning);
}

span.highlight-text {
    color: var(--primary-color);
}

span.dim-text {
    color: var(--text);
}

.user-request-cards {
    margin-top: 1.5rem;
    gap: 1rem;

    .sub-section {
        margin-top: 0;

        >div:has(>svg) {
            width: 2.25rem;
        }
    }

}

.block-rate-progress {
    background-color: var(--secondary-color);
    padding: 1rem;
    border: 1px solid var(--input-border);
    border-radius: 0.75rem;

    p {
        color: var(--text);

        +span {
            font-size: 1.25rem;
            font-weight: 500;
        }
    }

    .progress {
        background-color: var(--bg-color);
        height: 0.75rem;
        margin: 0.75rem 0;

        .progress-bar {
            background-color: var(--success);
        }

        +div {
            font-size: 0.75rem;
            color: var(--text);
        }
    }

    +div {
        column-gap: 1.5rem;
    }
}

.other-rate-progress {
    width: 100%;
    padding: 0;
    background-color: transparent;
    border: none;
    margin-top: 1.5rem;

    p {
        font-size: 0.875rem;
    }

    .progress {
        background-color: #000;
        height: 0.5rem;
    }

    &:nth-of-type(1) {
        color: var(--success);
    }

    &:nth-of-type(2) {
        color: var(--warning);

        .progress-bar {
            background-color: var(--warning);
        }
    }
}


/* ? Integration */

.integration-cell {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}


/* ? Admin Dashboard */

.dashboard-cards {
    .sub-section {
        p+span {
            color: #fff;
        }

        .rates {
            display: flex;
            align-items: center;
            gap: 0.25rem;
            margin-top: 0.125rem;

            span {
                font-size: 0.875rem;
                font-weight: normal;
            }
        }
    }
}

.dashboard-graphs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(27.5rem, 1fr));
    column-gap: 1.5rem;

    &.grid-three--cols {
        grid-template-columns: repeat(3, 1fr);
    }
}

.bar-chart,
.area-chart,
.donot-chart,
.group-bar-chart,
.line-chart {
    min-height: auto !important;
}

.statistics-cards .sub-heading {
    margin-bottom: 1.25rem;
}

.statistics-point {
    p {
        display: flex;
        justify-content: space-between;
        column-gap: 1rem;
        color: var(--text);

        span {
            font-weight: 500;
        }
    }
}

.ai-overview-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 1.5rem;

    .sub-heading {
        margin-bottom: 1.125rem;
    }

    .sub-heading h2 {
        font-size: 1rem;
    }

    .statistics-point p {
        font-size: 0.875rem;
        margin-bottom: 0.875rem;
    }
}

.help-guide-link {
    color: var(--purple-color);
    cursor: pointer;
    margin: 0 0.5rem 0 auto;
}

.ai-alert {
    display: flex;
    align-items: center;
    color: var(--warning);
    font-size: 0.875rem;
    gap: 0.25rem;
}

.payment-modal .terms-body {
    background-color: #000;
}


/* ? Super Admin Dashboard */

.ai-layer-cards {
    .sub-heading h2 {
        font-size: 1.125rem;
    }
}


.ai-layer-detail {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--container-border);
    margin-bottom: 1rem;

    p {
        font-size: 1.25rem;
        font-weight: 600;
        margin-bottom: 0;

        +span {
            font-size: 0.875rem;
            color: var(--text);
        }
    }
}


/* ? AI Core Health */

.dashboard-cards span.score-text {
    font-size: 0.875rem;
    color: var(--text);
    margin-left: 0.375rem;
    font-weight: normal;
}

.ai-core-content {
    display: grid;
    grid-template-columns: 1fr minmax(22.125rem, 0.5fr);
    column-gap: 1.5rem;
}

.coverage-progress {
    margin-top: 1.25rem;

    >div:first-child {
        display: flex;
        align-items: center;
    }

    .card-icon {
        min-width: 2.25rem;
        border-radius: 0.5rem;
        color: var(--success);
        background-color: rgba(0, 204, 139, 0.1);
    }
}

.small-text {
    font-size: 0.875rem;
    color: var(--text);
}

.progress.custom-progress {
    background-color: var(--secondary-color);
    height: 0.5rem;
    margin-top: 0.75rem;

    .progress-bar {
        background-color: var(--success);

        &.yellow-progress-bar {
            background-color: var(--warning);
        }

        &.red-progress-bar {
            background-color: var(--danger);
        }

        &.blue-progress-bar {
            background-color: var(--primary-color);
        }
    }
}

.protection-box {
    background: rgba(0, 204, 139, 0.05);
    border: 1px solid rgba(0, 204, 139, 0.3);

    .card-icon {
        width: 3.375rem;
        color: var(--success);
        background-color: rgba(0, 204, 139, 0.1);

        +p {
            font-size: 1.125rem;
            font-weight: 500;
            margin-top: 1rem;
        }
    }
}

.protection-btn {
    background-color: rgba(0, 204, 139, 0.1);
    gap: 0.375rem;
    padding: 0.625rem;
    margin: 1.5rem 0 1.25rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    color: var(--success);
    border: 1px solid rgba(0, 204, 139, 0.3);
}

p.fw-medium.mt-1 {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--input-border);
    margin-bottom: 1.25rem;
}


/* ? System Effectiveness */

.dashboard-graphs:has(.insight-card) {
    grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
}

.insight-card {
    span.success-text {
        font-size: 1.5rem;
        font-weight: 600;
    }

    span.dim-text {
        font-size: 1.125rem;
        font-weight: 600;
    }
}

.system-cards {
    .sub-section {

        p+span,
        .score-text {
            color: inherit;
        }

        .rates {
            color: var(--text);
        }
    }
}

.miss-event-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-top: 0.625rem;
    background-color: var(--secondary-color);
    border-radius: 0.5rem;

    svg {
        color: var(--warning);
        margin-right: 0.5rem;
    }
}


/* ? Activity Logs */

.filter-activity {
    top: 2.125rem;
    left: calc(100% - 51.25rem);

    select {
        font-size: 0.875rem;
        margin-left: 0.875rem;

        &:focus {
            box-shadow: 0 0 0 .125rem rgba(0, 133, 255, .25);
        }
    }
}


/* ? Reports */

.excutive-summary {
    background: rgba(0, 133, 255, 0.05);
    border: 1px solid rgba(0, 133, 255, 0.3);

    p {
        color: var(--text);
        margin: 1.25rem 0;
        line-height: 1.625rem;
    }

    div:has(button) {
        gap: 0.625rem;

        .outline-btn {
            box-shadow: inset 0 0 0 1px var(--primary-color);
        }
    }
}

.view-report-link {
    gap: 0.375rem;
    cursor: pointer;
    transition: all .3s;

    &:hover {
        color: #fff;
    }
}

.week-pill {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    background-color: rgba(0, 133, 255, 0.1);
    border: 1px solid rgba(0, 133, 255, 0.2);
    border-radius: 50rem;
    text-wrap: nowrap;
    color: var(--primary-color);
}

.report-card {
    background-color: transparent;
    border: 1px solid var(--input-border);

    svg {
        color: var(--text);
        margin-right: 0.625rem;

        &:nth-of-type(n+2) {
            margin: 0 0 0 0.625rem;
            cursor: pointer;
            transition: all .3s;

            &:hover {
                color: #fff;
            }
        }
    }
}

.compliance-card {
    p {
        font-size: 1.125rem;
        margin-bottom: 0.875rem;
    }

    .week-pill.green-pill {
        color: var(--success);
        background-color: rgba(0, 204, 139, 0.1);
        border: 1px solid rgba(0, 204, 139, 0.2);
    }

    svg {
        margin-left: auto;
        color: var(--success);
    }
}

.button.copy-btn {
    margin: 0 0 1px;
}

.report-modal {
    --bs-modal-width: 43.75rem;

    .modal-dialog {
        padding: 0 1.75rem;
    }

    .modal-footer {
        border-top-color: var(--container-border);
    }
}


/* ? Create Policy */

.form-check-input.policy-switch {
    margin: 0.719rem 0 0;
}

.ruleset-fields {
    p {
        color: var(--text);
    }

    .form-field {
        display: flex;
        align-items: center;
        gap: 0.625rem;
        margin-top: 0.5rem;

        .button {
            min-width: 2.563rem;
            height: 2.563rem;
            padding: 0;
            background-color: var(--danger);

            &:disabled {
                opacity: 0.5;
            }
        }
    }
}


/* ? Generate Key Offcanvas */

.offcanvas.offcanvas-end {
    background-color: var(--bg-color);
    width: 31.25rem;
}


/* ? API Key */

.api-key-form {
    .button {
        padding: 0.625rem 1rem;
        margin: 0 0 0.063rem 0.625rem;
    }
}

.api-key-info {
    border-top: 1px solid var(--container-border);
    padding-top: 0.875rem;

    p {
        color: var(--text);

    }
}

.request-usage .current-plan {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
}


/* ? Dashboard Starting Guide */

.verification-banner {
    display: flex;
    align-items: center;
    background-color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-size: 0.875rem;

    .card-icon {
        min-width: 1.75rem;
        background-color: rgba(255, 255, 255, 0.15);
        color: #fff;
    }

    .button {
        background-color: #fff;
        color: var(--primary-color);
        margin: 0;
        margin-left: auto;

        svg {
            margin-bottom: 1px;
        }
    }
}

.security-modal {
    figure {
        margin-bottom: 1.25rem;
    }

    .modal-title {
        margin: 0 0 0.5rem;
    }

    .otp-field {
        gap: 0.75rem;
        margin: 1.5rem 3.75rem 1rem;

        input.otp-input {
            height: 3.375rem;
            background-color: #000;
        }
    }

    .button {
        background-color: var(--primary-color);
        pointer-events: auto;
        margin-top: 1.25rem;

        svg {
            margin-bottom: 0.125rem;
        }
    }
}

.resend-text {
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.875rem;
}

.security-mission {

    .top-section,
    .bottom-section {
        padding: 1.5rem;
        counter-reset: num;
    }

    .card-heading {
        svg {
            color: var(--primary-color);
        }

        p {
            font-size: 1.125rem;
        }
    }

    .current-plan {
        font-size: 0.75rem;
        padding: 0.125rem 0.5rem;
        background-color: rgba(0, 133, 255, 0.2);
        border: 1px solid rgba(0, 133, 255, 0.3);
        color: var(--primary-color);
    }

    .coverage-progress {
        margin-top: 1.5rem;
    }

    hr {
        color: var(--container-border);
        opacity: 1;
    }
}

.mission-card {
    display: flex;
    align-items: center;
    border-radius: 0.5rem;
    padding: 1.25rem;
    border: 1px solid var(--container-border);
    opacity: 0.45;
    margin-bottom: 1rem;
    position: relative;

    &::before {
        position: absolute;
        content: "";
        width: 2px;
        height: 1.125rem;
        background-color: var(--secondary-color);
        left: 2.25rem;
        bottom: -1.125rem;
    }

    &:last-of-type::before {
        content: none;
    }

    .card-icon {
        min-width: 3rem;
        position: relative;
        margin-right: 1rem;

        &::before {
            counter-increment: num;
            content: counter(num);
            position: absolute;
            right: -6px;
            top: -6px;
            font-size: 0.75rem;
            font-weight: 500;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 1.25rem;
            aspect-ratio: 1;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: var(--text);
        }
    }

    .button {
        background-color: var(--secondary-color);
        pointer-events: none;
    }

    &.active-card {
        background-color: var(--secondary-color);
        border-color: transparent;
        opacity: 1;

        .button {
            background-color: var(--primary-color);
            pointer-events: initial;
        }
    }

    &.completed-card {
        background: rgba(0, 204, 139, 0.05);
        border-color: rgba(0, 204, 139, 0.3);

        .button {
            background-color: rgba(0, 204, 139, 0.1);
            color: var(--success);
            border: 1px solid rgba(0, 204, 139, 0.3);
            pointer-events: none;
        }

        .card-icon::before {
            background-color: rgba(0, 204, 139, 0.3);
            color: #fff;
        }
    }
}


/* ? Request Details */

.request-details {
    grid-template-columns: 1fr minmax(23.125rem, 0.45fr);
}

.request-info-cards {
    .sub-section {
        span {
            font-size: 1.125rem;
        }

        .status-cell span {
            font-size: 0.875rem;
        }
    }
}

.decision-reason {
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 0.25rem solid var(--danger);
    color: var(--danger);
    border-radius: 0 0.5rem 0.5rem 0;
    gap: 0.625rem;
    margin: 1.5rem 0;

    svg {
        margin-top: 1px;
    }

    p {
        font-size: 0.875rem;
    }
}

.request-reponse-cards {
    grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
    gap: 1rem;
}

.request-card,
.response-card {
    background-color: #0c0d0e;
    overflow: hidden;
    margin-top: 0;

    .sub-heading {
        background-color: var(--bg-color);
        border-bottom: 1px solid var(--input-border);
        padding: 1rem;
    }

    h2 {
        width: fit-content;
    }

    p {
        line-height: 1.75rem;
        margin: 1.5rem;
    }
}

.response-card {
    p svg {
        min-width: 1.375rem;
        margin-top: 3px;
        color: var(--danger);
    }
}

span.pill-design {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    background-color: rgba(0, 133, 255, 0.2);
    border: 1px solid rgba(0, 133, 255, 0.3);
    color: var(--primary-color);

    &.red-pill {
        background-color: rgba(220, 53, 69, 0.2);
        border: 1px solid rgba(220, 53, 69, 0.3);
        color: var(--danger);
    }

    &.orange-pill {
        background-color: rgba(232, 76, 6, 0.2);
        border: 1px solid rgba(232, 76, 6, 0.3);
        color: var(--tertiary);
    }

    &.green-pill {
        background-color: rgba(0, 204, 139, 0.2);
        border: 1px solid rgba(0, 204, 139, 0.3);
        color: var(--danger);
    }

    &.dim-pill {
        background-color: rgba(159, 159, 169, 0.05);
        border: 1px solid rgba(159, 159, 169, 0.3);
        color: var(--text)
    }
}

.metadata-analysis {
    .sub-heading {
        margin-bottom: 1.25rem;
    }
}

.guardian-block {
    background: rgba(0, 133, 255, 0.05);
    border: 1px solid rgba(0, 133, 255, 0.3);
    margin-bottom: 0.75rem;

    &.adjudicator-block {
        background: rgba(172, 77, 255, 0.05);
        border: 1px solid rgba(172, 77, 255, 0.3);
    }

    &.policy-block {
        background: rgba(232, 76, 6, 0.05);
        border: 1px solid rgba(232, 76, 6, 0.3);
    }

    >div {
        margin-right: 1rem;
    }
}

.guardian-tooltip {
    margin-bottom: 0.125rem;
}

.g-tooltip ul {
    list-style-type: disc;
    margin-left: 1.25rem;
}


/* ? Roles & Permissions */

.role-table .action-cell {
    color: var(--primary-color);
    cursor: pointer;
}

.offcanvas-body .user-profile-form {
    scrollbar-width: none;

    &::-webkit-scrollbar {
        display: none;
    }
}

.accordion .accordion-item {
    border: 1px solid var(--container-border);
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    overflow: hidden;

    &:last-of-type {
        margin-bottom: 0;
    }
}

h2.accordion-header {
    line-height: 1.2;
    position: relative;
}

.select-all {
    position: absolute;
    top: 50%;
    right: 3rem;
    transform: translateY(-50%);
    z-index: 999;
    cursor: pointer;
    user-select: none;
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
}

.accordion-header:has(+.accordion-collapse.show) .select-all {
    opacity: 1;
    visibility: visible;
}

.accordion-button {
    padding: 0.75rem 1rem;
    background-color: var(--bg-color);
    font-size: 0.875rem;
    justify-content: space-between;

    &:not(.collapsed) {
        background-color: var(--bg-color);
        box-shadow: none;
        color: #fff;
    }

    &::after {
        width: 1rem;
        height: 1rem;
        background-size: 1rem;
        filter: grayscale(1);
    }

    &:focus {
        box-shadow: none;
    }
}

.accordion-body {
    padding: 1rem;
    background-color: #000;

    .checklink {
        margin-bottom: 0.875rem;

        &:last-of-type {
            margin-bottom: 0;
        }
    }

    input.form-check-input {
        background-color: #000;
        width: 1rem;
        height: 1rem;
        margin: 0.125rem 0 0;
        border-color: #dee2e6;
    }

    label {
        font-size: 0.875rem;
        font-weight: normal;
        color: #fff;
    }
}


/*  Fixed CSS  */


.offcanvas.offcanvas-end {
    form {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
}

.form-field {

    position: relative;

    svg {

        stroke: var(--placeholder);

        position: absolute;

        top: calc(50% + 13px);

        transform: translateY(-50%);

        right: 1rem;

    }

}


.sidebar nav a.disabled-menu {
    opacity: 0.45;
    pointer-events: none;
}


#card-number,
#card-expiry,
#card-cvc {
    background-color: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #fff;
}

#card-number iframe,
#card-expiry iframe,
#card-cvc iframe {
    background: transparent !important;
}









/* Stripe Checkout Modal */
#stripeCheckoutModal .modal-dialog {
    max-width: 420px;
    transition: max-width 0.4s ease;
}

#stripeCheckoutModal .modal-content {
    overflow: hidden;
    border: none;
    border-radius: 12px;
}

#stripeCheckoutModal .modal-body {
    padding: 0;
}

/* Loading state */
#checkout-loading {
    text-align: center;
    padding: 3.5rem 1.5rem;
}

#checkout-loading .spinner-border {
    color: #FF6D22;
    width: 2.5rem;
    height: 2.5rem;
}

#checkout-loading .loading-title {
    font-size: 15px;
    font-weight: 500;
    margin: 0;
    color: #fff;
}

#checkout-loading .loading-subtitle {
    font-size: 13px;
    color: #aaa;
    margin-top: 6px;
}

/* Split layout */
#checkout-split {
    display: none;
    min-height: 600px;
}

#checkout-split .split-inner {
    display: flex;
    min-height: 600px;
}

/* Left panel */
#checkout-left {
    width: 500px;
    flex-shrink: 0;
    background: #1a1f2e;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#checkout-left .left-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

#checkout-left .brand-logo {
    height: 32px;
    object-fit: contain;
}

#checkout-left .close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

#checkout-left .subscribe-label {
    font-size: 11px;
    color: #aaa;
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

#checkout-left .plan-name {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 1.5rem;
}

#checkout-left .plan-price {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 2px;
}

#checkout-left .plan-interval {
    font-size: 13px;
    color: #aaa;
    margin: 0 0 1.5rem;
}

#checkout-left .divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

/* Billing breakdown */
#checkout-left .billing-breakdown {
    margin-bottom: 1.5rem;
}

#checkout-left .billing-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

#checkout-left .billing-row .label {
    font-size: 13px;
    color: #aaa;
}

#checkout-left .billing-row .value {
    font-size: 13px;
    color: #fff;
}

#checkout-left .billing-row .value-muted {
    font-size: 13px;
    color: #aaa;
}

#checkout-left .billing-total {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
}

#checkout-left .billing-total .label {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

#checkout-left .billing-total .value {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

/* Features list */
#summary-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#summary-features .feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

#summary-features .feature-item span {
    font-size: 13px;
    color: #ccc;
}

/* Left footer */
#checkout-left .left-footer {
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

#checkout-left .secure-badge {
    font-size: 11px;
    color: #555;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Right panel */
#checkout-right {
    flex: 1;
    background: #fff;
    position: relative;
}

#checkout {
    min-height: 600px;
}
.expiry-date {
    margin-left: 15px;
}

.avatar-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: #0d6efd;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    text-transform: uppercase;
}

.zapier-live{
    border: 2px solid #28a745;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.3);
}

.disabled-section{
    border: 2px solid #c4112e;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 0 8px rgba(204, 46, 107, 0.3);
}

.plan-status-group {
    border: 2px solid #2b2b2b;   /* outer border */
    border-radius: 10px;
    overflow: hidden;
    padding: 4px;
    background: #111; /* optional dark background */
}

/* each button */
.plan-status-group .btn {
    border: none !important;
    border-radius: 6px !important;
    font-weight: 500;
    padding: 6px 14px;
}

/* Active selected style override */
.plan-status-group .btn-check:checked + .btn-outline-success {
    background-color: #198754;
    color: #fff;
    box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.3);
}

.plan-status-group .btn-check:checked + .btn-outline-danger {
    background-color: #dc3545;
    color: #fff;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.3);
}

.plan-status-group .btn-check:checked + .btn-outline-secondary {
    background-color: #6c757d;
    color: #fff;
    box-shadow: 0 0 0 2px rgba(108, 117, 125, 0.3);
}

/* spacing between buttons */
.plan-status-group label {
    margin: 0 2px;
}

#activity-table tbody td {
    padding: 6px 10px !important;
    vertical-align: middle;
}
#activity-table tbody td:first-child,
#activity-table thead th:first-child {
    text-align: center;
    width: 40px;
}
#activity-table input[type="checkbox"] {
    transform: scale(1.3);
    cursor: pointer;
}

/* Table background */
#policy-table {
    background-color: #2b2f36; /* dark grey */
    color: #e0e0e0;
}

/* Header */
#policy-table thead {
    background-color: #1f2329;
    color: #ffffff;
}

/* Rows */
#policy-table tbody tr {
    background-color: #2b2f36;
}

/* Alternate rows */
#policy-table tbody tr:nth-child(even) {
    background-color: #323741;
}

/* Hover effect */
#policy-table tbody tr:hover {
    background-color: #3a404a;
}

/* Pagination + search */
.dataTables_wrapper {
    color: #e0e0e0;
}

.table-dark {
    --bs-table-bg: #2b2f36;
    --bs-table-striped-bg: #323741;
    --bs-table-hover-bg: #3a404a;
}

/* Remove default popup box */
.swal-clean-popup {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Center everything */
.swal-loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Title */
.swal-loader-container h3 {
    color: #ffffff;
    margin-top: 18px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

/* Subtitle */
.swal-loader-container p {
    color: #cbd5f5;
    font-size: 13px;
    margin-top: 6px;
    text-align: center;
}

/* 🔥 Improved Loader (visible + centered) */
.custom-loader {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    position: relative;
    animation: rotate 1s linear infinite;
}

/* Gradient ring */
.custom-loader::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 5px;
    background: conic-gradient(
        #22c55e,
        #06b6d4,
        #6366f1,
        #22c55e
    );

    -webkit-mask: 
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;

    mask: 
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
}

/* Smooth spin */
@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

/* Popup */
.swal-modern-popup {
    background: linear-gradient(145deg, #0f172a, #1e293b) !important;
    border-radius: 14px !important;
    padding: 25px !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    color: #fff;
}

/* Title */
.swal2-title {
    color: #fff !important;
    font-weight: 600;
}

/* Text */
.swal2-html-container {
    color: #94a3b8 !important;
    font-size: 14px;
}

/* Button */
.swal-modern-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 18px !important;
    font-weight: 500;
    color: #fff !important;
}

.swal-modern-btn:hover {
    opacity: 0.9;
}

/* Success icon tweak */
.swal2-icon.swal2-success {
    border-color: #22c55e !important;
    color: #22c55e !important;
}

/* Slight glow */
.swal-modern-popup {
    box-shadow: 0 15px 40px rgba(34, 197, 94, 0.2),
                0 10px 30px rgba(0,0,0,0.5) !important;
}

.custom-offcanvas {
    width: 360px !important;
    height: 60vh !important;       
    /* margin-top: 20vh;                 */
    border-radius: 12px 0 0 12px;     
}

/* Confirm (Delete) Button */
.swal-confirm-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 8px 18px !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

.swal-confirm-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.3);
}

/* Cancel Button */
.swal-cancel-btn {
    background: #1f2937 !important;
    color: #d1d5db !important;
    border-radius: 8px !important;
    padding: 8px 18px !important;
}

.swal-cancel-btn:hover {
    background: #374151 !important;
}

/* Modal Background */
.custom-modal {
    background: linear-gradient(145deg, #111827, #1f2937);
    color: #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Header */
.modal-header {
    padding: 16px 20px;
}

/* Close button fix (important for dark theme) */
.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
}

.btn-close-white:hover {
    opacity: 1;
}

/* Body */
.modal-body {
    padding: 10px 20px 20px;
}

/* Description Box */
.policy-description-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #d1d5db;
    max-height: 250px;
    overflow-y: auto;
}

/* Scrollbar styling */
.policy-description-box::-webkit-scrollbar {
    width: 6px;
}

.policy-description-box::-webkit-scrollbar-thumb {
    background: #4f46e5;
    border-radius: 6px;
}

.modal.fade .modal-dialog {
    transform: scale(0.95);
    transition: all 0.25s ease;
}

.modal.show .modal-dialog {
    transform: scale(1);
}

/* Wrapper */
.status-box {
    position: relative;
    display: inline-block;
}

/* Badge */
.status-badge {
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: transform 0.15s ease;
}

.status-badge:hover {
    transform: scale(1.05);
}

/* Dropdown */
.status-dropdown {
    position: absolute;
    top: calc(100% + 6px);   /* 👈 Always below badge */
    left: 0;
    min-width: 110px;
    background: #1f2937;
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    z-index: 1000;
    animation: fadeIn 0.15s ease-in-out;
}

/* Options */
.status-dropdown div {
    padding: 8px 10px;
    font-size: 13px;
    color: #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

/* Hover */
.status-dropdown div:hover {
    background: #374151;
    transform: translateX(2px);
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.rule-container {
    text-align: left;
    padding-right: 6px;
}

/* Row style (KEY : VALUE) */
.rule-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 10px;
}

/* KEY */
.rule-key {
    font-size: 12px;
    color: #9ca3af;
    min-width: 140px;
    font-weight: 500;
}

/* VALUE */
.rule-value {
    flex: 1;
    font-size: 14px;
    color: #e5e7eb;
    background: rgba(255,255,255,0.04);
    padding: 8px 10px;
    border-radius: 6px;
    word-break: break-word;
}

/* Section label (for nested/array) */
.rule-label {
    font-size: 12px;
    color: #60a5fa;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Nested block */
.nested {
    border-left: 2px solid rgba(255,255,255,0.1);
    padding-left: 10px;
    margin-bottom: 10px;
}

/* Children */
.rule-children {
    margin-top: 5px;
}

/* Array list */
.rule-list {
    margin: 0;
    padding-left: 18px;
    color: #e5e7eb;
}

.rule-list li {
    margin-bottom: 4px;
    font-size: 13px;
}

#policyViewModal .modal-body {
    max-height: 75vh !important;
    overflow-y: auto !important;
}


.custom-policy-modal {
    max-width: 760px;
}



.policy-modal-content {
    background: #111827;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    overflow: hidden;
}


.policy-subtitle {
    font-size: 13px;
    opacity: 0.7;
    color: #cbd5e1;
}



.form-label {
    font-size: 13px;
    margin-bottom: 6px;
    color: #cbd5e1;
    font-weight: 500;
}


.policy-input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    border-radius: 10px;
    padding: 12px 14px;
    transition: all 0.2s ease;
}



.policy-input:focus {
    background: rgba(255,255,255,0.06);
    color: #fff;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79,70,229,0.15);
}


.policy-input::placeholder {
    color: rgba(255,255,255,0.4);
}


textarea.policy-input {
    padding: 14px 16px;
    line-height: 1.5;
    resize: none;
}


.policy-input.form-select {
    height: 48px;
    padding: 0 14px;
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;

    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;

    border-radius: 10px;
    cursor: pointer;
}


.policy-input.form-select:focus {
    background: rgba(255,255,255,0.06);
    border-color: #4f46e5;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(79,70,229,0.15);
}


.policy-input.form-select option {
    background: #111827;
    color: #fff;
}


.modal-footer .btn {
    border-radius: 10px;
    height: 44px;
    font-weight: 500;
}

.btn-close-white {
    filter: invert(1);
    opacity: 0.8;
}

.btn-close-white:hover {
    opacity: 1;
}

.open-manual-policy-modal {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

.open-manual-policy-modal:hover {
    background: linear-gradient(135deg, #1d4ed8, #4338ca);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
}

.open-manual-policy-modal svg {
    margin-right: 6px;
}

/* wrap long text inside target & threat type column */

#activity-table td {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: break-word;
    vertical-align: middle;
}

/* specifically for Target column */
#activity-table td:nth-child(3) {
    max-width: 300px;
}

/* specifically for Threat Type column */
#activity-table td:nth-child(4) {
    max-width: 300px;
}

.submenu {
    display: none;
}

.submenu.show {
    display: block;
}

.nav-item-dropdown.open .submenu-arrow {
    transform: rotate(90deg);
    transition: 0.3s;
}

.position-relative{
    position: absolute !important;
    left: 50%;
    transform: translateX(-50%);
}

.sync-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 240px;
    height: 52px;

    border-radius: 14px;
    border: none;

    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;

    font-size: 15px;
    font-weight: 600;

    transition: all 0.3s ease;
}

.sync-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #4338ca, #6d28d9);
    box-shadow: 0 10px 22px rgba(79, 70, 229, 0.35);
}