:root {
    --primary-color: #0085ff;
    --bg-color: #151718;
    --secondary-color: #242627;
    --placeholder: #a6a6a6;
    --text: #9f9fa9;
    --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;

}

::-webkit-scrollbar-track {
    background: var(--bg-color);

}

::-webkit-scrollbar-thumb {
    background: var(--placeholder);
    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 {
    display: grid;
    align-items: center;
    grid-template-columns: 1fr 0.9fr;
    gap: 3rem;
    padding: 3.75rem 7.5rem;
    min-height: 100vh;
}

h1 {
    font-size: 3.375rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
    width: 61%;
}

h2 {
    font-size: 1.5rem;
    font-weight: normal;
    color: var(--text);
    width: 72%;
    line-height: 2.375rem;
}

h3 {
    font-size: 1.635rem;
    font-weight: 500;
    margin-top: 1.25rem;
    text-align: left;

    +p {
        text-align: left;
    }
}



/* ? Tabs */

.nav.nav-pills {
    background-color: var(--bg-color);
    padding: 0.313rem 0.438rem;
    border-radius: 50rem;
    margin: 1.25rem auto 1.625rem;
    width: fit-content;

    a {
        padding: 0.625rem 3.125rem;
        border-radius: 50rem;
        color: var(--placeholder);
        cursor: pointer;

        &.active {
            background-color: var(--secondary-color);
            font-weight: 500;
            cursor: auto;
        }
    }
}


/* ? Login Signup */

.right-container {
    background-color: var(--secondary-color);
    border-radius: 2.5rem;
    height: 100%;
    padding: 0 1.25rem;
}

.input-field {
    display: block;
    position: relative;

    input.form-control {
        background-color: var(--bg-color);
        padding: 1rem 2rem 1rem 3.375rem;
        color: #fff;
        border: 0;
        outline: 0;
        border-radius: 50rem;
        width: 31.25rem;
        margin-bottom: 1.25rem;

        &::placeholder {
            color: var(--placeholder);
        }

        &:focus {
            box-shadow: 0 0 0 .25rem rgba(0, 133, 255, .25);
        }

        &.password-field {
            padding: 1rem 3.375rem;
        }
    }

    svg {
        stroke: var(--placeholder);
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: 1.25rem;

        &:nth-of-type(2) {
            left: auto;
            right: 1.25rem;
        }
    }
}

.input-field-container {
    width: 31.25rem;

    svg {
        top: calc(50% - 0.625rem);
    }
}

.checklink {
    font-size: 0.875rem;

    input.form-check-input {
        background-color: var(--bg-color);
        width: 1.375rem;
        height: 1.375rem;
        margin: 0 0.5rem 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: var(--primary-color);
        font-weight: 500;
    }
}

.button {
    background-color: var(--primary-color);
    font-size: 1.125rem;
    width: 31.25rem;
    border: 0;
    padding: 1rem 0;
    color: #fff;
    border-radius: 50rem;
    margin-top: 1.875rem;
    font-weight: 500;
}

.line {
    margin: 1.25rem 0;

    &::before {
        content: "";
        width: 100%;
        position: absolute;
        top: 11px;
        left: 0;
        border-top: 1px dashed var(--text);
    }

    span {
        position: relative;
        padding: 0 1rem;
        background-color: var(--secondary-color);
        color: var(--text);
    }
}

.social-links {
    gap: 1.635rem;

    button {
        flex-grow: 1;
        padding: 0.625rem 0;
        background-color: var(--bg-color);
        border-radius: 50rem;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.875rem;
        border: 1px solid #fff;
    }
}


.cstmformcheck input {
    width: 22px;
    height: 22px;
    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 {
    padding: 6.25rem 1.25rem;
    height: fit-content;
}

.inner-container {
    width: 31.25rem;

    p {
        color: var(--text);
        font-size: 0.875rem;
    }
}

.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.625rem;
        padding: 0.625rem;
        border: 1px solid var(--input-border);
        border-radius: 0.375rem;
        text-align: center;
        margin-bottom: 0;
    }
}

.resend-code a {
    text-decoration: underline;
    color: var(--primary-color);
    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: var(--primary-color);
    }

    span {
        color: var(--primary-color);
        font-weight: 500;
    }
}


/* ? Dashboard */

main.dashboard {
    display: block;
    background-color: #000;
    padding: 0;
}


/* ? Sidebar */

.sidebar {
    position: fixed;
    background-color: var(--bg-color);
    width: 18.75rem;
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all .6s;
    -webkit-transition: all .6s;

    * {
        transition: all .3s;
        -webkit-transition: all .3s;
    }

    figure {
        margin: 1.25rem auto 0;

        +figure {
            display: none;
        }
    }

    nav {
        display: flex;
        flex-direction: column;
        gap: 0.625rem;
        padding: 1.875rem 0.875rem;

        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: 24px;
            }
        }
    }
}

.nav-item-dropdown {
    svg:last-child {
        transform: rotate(0deg);
    }

    +ul {
        max-height: 0;
        overflow: hidden;

        li a {
            padding: 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);
            }
        }
    }
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-top: auto;
    padding: 1.5rem 1.25rem;
    border-top: 1px solid var(--container-border);

    figure {
        min-width: 40px;
    }

    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;

    svg+span {
        opacity: 0;
        visibility: hidden;
    }

    >figure:nth-of-type(1) {
        display: none;

        +figure {
            display: block;
        }
    }

    .user-profile div {
        opacity: 0;
    }

    +.content {
        margin-left: 5rem;
    }

}


/* ? Header */

.content {
    background-color: var(--bg-color);
    margin-left: 18.75rem;
    transition: all .6s;
    -webkit-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: 999;

        .hamburger {
            cursor: pointer;
            transition: all .3s;
            -webkit-transition: all .3s;

            &:hover {
                color: #fff;
            }
        }

        .input-field {
            margin-left: 1.875rem;

            input.form-control {
                background-color: var(--secondary-color);
                width: 16rem;
                padding: 0.625rem 1rem 0.625rem 2.5rem;
                font-size: 0.875rem;
                margin: 0;
            }

            svg {
                left: 16px;
            }
        }
    }

    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;
}


.content-heading h1 {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.625rem;
    font-weight: 600;
    margin-bottom: 0;

    +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: 2rem;

    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(255, 100, 103, 0.1);
        border: 1px solid rgba(255, 100, 103, 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;
    }
}


/* ? 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: 1fr 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 0;
        margin-top: 1rem;
        gap: 0.375rem;
        opacity: 0.5;
        pointer-events: none;
    }

    .edit-plan-btn {
        opacity: 1;
        pointer-events: initial;
    }

    input[name="plan"]:checked~button,
    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;
}

.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 {
            width: 1.5rem;
            border-radius: 50rem;
        }

        &:hover {
            background-color: transparent;
        }
    }
}

.card-icon {
    color: var(--placeholder);
    background-color: var(--secondary-color);
    width: 2rem;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    margin-right: 0.75rem;
}

.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(--placeholder);
        }

        &: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;
}


/* ? Edit Profile */

.nav.profile-tab {
    padding: 0.25rem;
    margin: 2rem 0 1.5rem;

    a {
        display: flex;
        gap: 0.375rem;
        font-size: 0.875rem;
        padding: 0.5rem 1.875rem;

        &.active svg {
            stroke-width: 1.5;
        }
    }
}

.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;
    background-color: var(--secondary-color);
    padding: 1rem;
    border: 1px solid var(--container-border);
    border-radius: 0.5rem;
    margin-bottom: 1rem;

    svg {
        color: var(--primary-color);
        margin: 0 0.75rem 0.25rem 0;
    }

    p {
        margin-bottom: 0;
    }

    span {
        color: var(--text);
        font-size: 0.875rem;
    }

    +p {
        margin-bottom: 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);
    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-top: 2rem;

    >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(4, 1fr);
    gap: 1.5rem;

    .sub-section {
        margin-top: 2rem;
        font-size: 0.875rem;
        color: var(--text);
        border: 2px solid transparent;
        transition: .3s all;
        -webkit-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%);
    }
}

.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: 1fr 1fr;
    gap: 1.5rem;

    .sub-heading {
        margin-bottom: 1.25rem;
    }

    .security-notification {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
        border-radius: 0.375rem;
    }
}



/* ? 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);
    }
}


/* ? Users Information */

.user-information {
    display: grid;
    grid-template-columns: 0.5fr 1fr;
    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: 2rem;
    }
}

.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;
        }
    }
}

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 {

    .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);
        }
    }
}

.other-rate-progress {
    flex: 1;
    padding: 0;
    background-color: transparent;
    border: none;

    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: 1fr 1fr;
    gap: 1.5rem;

    &.grid-three--cols {
        grid-template-columns: repeat(3, 1fr);
    }
}

.bar-chart,
.area-chart,
.donot-chart,
.group-bar-chart {
    min-height: auto !important;
}

.statistics-cards .sub-heading {
    margin-bottom: 1.25rem;
}

.statistics-point {
    p {
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: var(--text);

        span {
            font-weight: 500;
        }
    }
}

.ai-overview-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    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 0.5fr;
    gap: 1.5rem;
}

.coverage-progress {
    margin-top: 1.25rem;

    >div:first-child {
        display: flex;
        align-items: center;
    }

    .card-icon {
        width: 2.25rem;
        border-radius: 0.5rem;
        color: var(--success);
        background-color: rgba(0, 204, 139, 0.1);

        &.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);
        }
    }
}

.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 */

.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 {
        margin-top: 1.5rem;

        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% - 39.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;
    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: 640px;

    .modal-footer {
        border-top-color: var(--container-border);
    }
}


/* ? Generate Key Offcanvas */

.offcanvas.offcanvas-end {
    background-color: var(--bg-color);
    width: 31.25rem;
}





/*  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;

    }

}


