/* https://royalfig.github.io/fluid-typography-calculator/ */

:root {
    --c-black: #000;
    --c-blue-1-rgb: 29, 51, 90;
    --c-blue-1: oklch(40% 0.08 270 / 1);
    --c-blue-2: color-mix(in oklab, #0478D4 70%, #fff 30%);
    --c-blue-3: #79baed;
    --c-blue-3-rgb: 121, 186, 237;
    --c-blue-4: #9AA3B3;
    --c-gold-1: #bc9746;
    --c-white: #FFF;
    --c-gray-1: #EAEAEA;
    --c-gray-2: #F0F0F0;
    --c-gray-3: #666;
    --c-gray-4: #333;
    --c-gray-5: #F7F7F7;
    --c-gray-6: #F5F5F5;
    --c-gray-7: #F9F9F9;
    --c-red-1: #D40404;
    --c-green-1: #04C00A;
    --font-family-poppins: "Poppins", sans-serif;
}

/* Globals */
*,
*::before,
*::after {
  box-sizing: border-box;
}

.hidden {
    display: none !important;
}

.overflow-x-auto {
    overflow-x: auto;
}

.link-like {
    cursor: pointer;
}

.copy-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(0.625rem, 0.5178571428571428rem + 0.5357142857142857vw, 1rem);
    border-radius: 0.5em;
    font-family: var(--font-family-poppins);
    font-size: clamp(0.75rem, 0.7142857142857143rem + 0.17857142857142858vw, 0.875rem);
    line-height: 1.25;
    color: var(--c-blue-1);
    background-color: rgba(var(--c-blue-3-rgb), 0.1);
    transition: background-color 300ms;
    cursor: copy;
}

.copy-link svg {
    width: 1em;
    height: 1em;
}

.copy-link:is(:hover, :focus, :focus-visible) {
    background-color: rgba(var(--c-blue-3-rgb), 0.2);
}

.copy-link:active {
    background-color: rgba(var(--c-blue-3-rgb), 0.3);
}

.jum_btn-test {
    background-color: green !important;
    color: red !important;
}

/* Components */
.jum_btn-primary,
.jum_btn-secondary,
.jum_btn-tertiary,
.jum_btn-quaternary {
  display: inline-block;
  min-width: 9.375rem;
  width: 100%;
  padding: clamp(0.625rem, 0.55rem + 0.36vw, 0.875rem);
  border: none;
  border-radius: 0.75rem;
  font-family: var(--font-family-poppins);
  font-size: clamp(0.75rem, 0.68rem + 0.36vw, 1rem);
  line-height: 1.25;
  text-align: center;
  background-color: var(--c-white);
  color: var(--c-gold-1);
  box-shadow: 1px 2px 2px 0 color-mix(in srgb, rgb(var(--c-blue-1-rgb)) 15%, transparent);
  transition: all 0.3s;
}

.jum_btn-secondary,
.jum_btn-tertiary {
  color: var(--c-blue-1);
}

.jum_btn-secondary:hover {
    color: var(--c-gold-1);
    background-color: var(--c-white);
}

.jum_btn-quaternary {
    font-size: clamp(0.75rem, 0.68rem + 0.36vw, 1.125rem);
    font-weight: 500;
    background-color: var(--c-gold-1);
    color: var(--c-white);
}

.jum_btn-short {
    max-width: 10.9375rem;
}

.jum_btn-group {
    display: inline-flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Modal Tabs Styles */
.jum_modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--c-gray-2);
    background-color: var(--c-white);
}

.jum_modal-tab {
    flex: 1;
    padding: 1rem 2rem;
    cursor: pointer;
    font-size: 1rem;
    color: var(--c-gray-4);
    position: relative;
    text-align: center;
    transition: all 0.3s;
    white-space: nowrap;
}

.jum_modal-tab.active {
  color: color-mix(in srgb, var(--c-gold-1) 80%, var(--c-gray-4) 20%);
  font-weight: 500;
}

.jum_modal-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--c-gold-1);
}

.jum_modal-tab-content {
    position: relative;
}

.jum_modal-tab-pane {
    display: none;
}

.jum_modal-tab-pane.active {
    display: block;
}

/* Subusers tab specific styles */
#subusers-content .jum_modal-content {
    min-height: 300px;
}

/* Table & DataTable */
table {
    background-color: var(--c-white);
    font-weight: 300;
    font-size: 0.875rem;
    color: var(--c-blue-1);
    width: 100%;
    text-align: left;
}

table.dataTable.row-border tbody th,
table.dataTable.row-border tbody td,
table.dataTable.display tbody th,
table.dataTable.display tbody td {
    border-top: unset;
}

table tr {
    background-color: var(--c-white);
    transition: background-color 300ms ease;
}

table th,
table td {
    padding: 1rem;
    border-bottom: 1px solid var(--c-gray-2);
    background-color: var(--c-wite);
}

table th {
    font-size: 1rem;
    font-weight: 400;
}

table td {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--c-blue-1)
}

table tr :is(th:last-child, td:last-child) {
    text-align: center;
}

table a {
    padding: 0.5rem 1rem;
    text-decoration: underline;
    text-underline-offset: 4px;
}

table [class^="delete-"] {
    display: inline-block;
    vertical-align: middle;
    border: none;
    background-color: transparent;
    color: color-mix(in srgb, rgb(var(--c-blue-1-rgb)) 60%, transparent);
    transition: color 300ms;
}

table button {
    background: unset;
}

table svg {
    width: 1.5em;
    height: 1.2em;
}

table.dataTable.no-footer {
    border-bottom: 0;
}

.dataTable {
    background-color: var(--c-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px color-mix(in srgb, var(--c-black) 5%, transparent);
    width: 100%;
}

.dataTables_length {
    padding-inline-start: 1rem;
}

.dataTables_filter,
.dataTables_paginate {
    padding-inline-end: 1rem;
}

.dataTables_filter {
    padding-inline: 1rem;
}

.dataTables_length,
.dataTables_filter,
.dataTables_info,
.dataTables_paginate {
    display: inline-block;
    height: 40px;
}

.dataTables_length,
.dataTables_filter {
    margin-bottom: 0.5rem;
}

.dataTables_info,
.dataTables_paginate {
    margin-top: 0.5rem;
}

.dataTables_paginate {
    display: inline-flex;
    align-items: center;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 0;
}

.dataTables_length label,
.dataTables_filter label,
.dataTables_info,
.dataTables_paginate {
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--c-blue-1);
}

.dataTables_paginate span {
    display: inline-flex;
    gap: 2px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    display: inline-flex;
    align-items: center;
    padding: 0.5em 0.8545em;
    font-size: 0.875rem;
    line-height: 1;
    outline: none;
    color: var(--c-black);
    border-radius: 4px;
    border: 1px solid transparent;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:is(.current, :active, :focus-visible) {
    border-color: var(--c-blue-1);
    color: var(--c-gold-1);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    cursor: not-allowed !important;
    color: var(--c-blue-4);
}

.dataTables_wrapper .dataTables_paginate .ellipsis {
    vertical-align: top;
    color: var(--c-blue-4);
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    outline: none;
    border: 1px solid var(--c-gray-1);
    border-radius: 1rem;
    color: var(--c-black);
    font-size: 0.875rem;
    line-height: 1.5;
    font-weight: 300;
    transition: color 300ms;
    background-color: var(--c-white);
    padding: 6px 10px;
    margin-left: 10px;
}

.dataTables_wrapper .dataTables_filter input {
    margin-left: 10px;
}

.dataTables_wrapper .dataTables_length select {
    margin-inline: 10px;
}

.dataTables_wrapper .dataTables_length select:is(:focus-visible),
.dataTables_wrapper .dataTables_filter input:is(:focus-visible) {
    border: 1px solid var(--c-blue-1);
    color: var(--c-gold-1);
}

.dataTable thead .sorting {
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: center right;
    background-image: url("../images/table/sort-both.svg");
}

.dataTable thead .sorting_asc {
    background-image: url("../images/table/sort-asc.svg");
}

.dataTable thead .sorting_desc {
    background-image: url("../images/table/sort-desc.svg");
}

/* Checkbox */
.jum_checkbox-container label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--c-blue-1);
    font-weight: 300;
}

.jum_checkbox-container input[type="checkbox"] {
    appearance: none;
    background-color: var(--c-white);
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 1.3em;
    height: 1.3em;
    border: 0.05em solid var(--c-gray-1);
    border-radius: 0.15em;
    display: grid;
    place-content: center;
}

.jum_checkbox-container input[type="checkbox"]::before {
    content: "";
    width: 0.85em;
    height: 0.85em;
    border-radius: 0.0625em;
    opacity: 0;
    transition: opacity 120ms;
    box-shadow: inset 1em 1em var(--c-gold-1);
    background-color: CanvasText;

}

.jum_checkbox-container input[type="checkbox"]:checked::before {
    opacity: 1;
}

.jum_checkbox-container a {
    color: var(--c-blue-1);
    text-decoration: none;
    font-weight: bold;
}

/* Input */
.jum_form-group {
    margin-bottom: 1.5rem;
}

.jum_form-group-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

.jum_input-container > label, .jum_label  {
    display: inline-block;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    color: var(--c-blue-1);
}

.jum_input-container > input,
.jum_input-container > textarea,
.jum_input {
    width: 100%;
    padding: clamp(0.625rem, 0.5178571428571428rem + 0.5357142857142857vw, 1rem);
    border: 1px solid var(--c-gray-1);
    border-radius: 0.5rem;
    font-family: var(--font-family-poppins);
    font-size: clamp(0.75rem, 0.7142857142857143rem + 0.17857142857142858vw, 0.875rem);
    line-height: 1.25;
    color: var(--c-blue-1);
}

.jum_input-container > input:focus-visible,
.jum_input-container > textarea:focus-visible,
.jum_input:focus-visible {
    outline: 1px solid var(--c-blue-2);
}

.jum_input-container > input::placeholder,
.jum_input-container > textarea::placeholder,
.jum_input::placeholder {
    color: rgba(var(--c-blue-1-rgb), 0.4);
    font-size: inherit;
}

/* HR */
hr {
    margin-block: 1rem;
    margin-inline: auto;
    border: none;
    display: block;
    height: 1px;
    width: 216px;
    background: linear-gradient(90deg, rgba(189, 152, 71, 0.24) 0%, #BD9847 46.5%, rgba(189, 152, 71, 0.24) 100%);
}

/* Spinner Overlay */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--c-blue-1-rgb), 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Spinner */
.spinner {
    border: 8px solid rgba(255, 255, 255, 0.6); /* Light border color */
    border-top: 8px solid var(--c-white); /* Solid white top border */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

.jum_email-mapping-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.jum_email-mapping-form,
.jum_email-mapping-preview {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.jum_email-mapping-preview h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.jum_form-row {
    margin-bottom: 15px;
}

.jum_form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.jum_form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

textarea.jum_modal-input {
    min-height: 80px;
    resize: vertical;
}


@media (hover: hover) {
    .jum_profile-table_row-hover-pointer tbody tr {
        cursor: pointer;
    }

    .jum_btn-primary:hover,
    .jum_btn-secondary,
    .jum_btn-tertiary,
    .jum_btn-quaternary {
        text-decoration: none;
        box-shadow: 1px 2px 2px 0 rgba(var(--c-blue-1-rgb), 0.05);
    }

    .jum_btn-primary:hover,
    .jum_btn-secondary:hover {
        color: var(--c-gold-1);
        background: linear-gradient(180deg, var(--c-white) 29.63%, var(--c-gold-1) 323.96%);
    }

    .jum_btn-tertiary:hover {
        color: var(--c-green-1);
    }

    .jum_btn-quaternary:hover {
        color: var(--c-gold-1);
        background-color: var(--c-white);
    }

    table a:hover {
        text-decoration: none;
    }

    table tr:hover {
        background-color: rgba(var(--c-blue-3-rgb), 0.15);
    }
    
    table [class^="delete-"]:hover {
        color: rgba(var(--c-blue-1-rgb), 0.7);
    }

    .dataTables_wrapper .dataTables_length select:hover,
    .dataTables_wrapper .dataTables_filter input:hover {
        border: 1px solid var(--c-blue-1);
        color: var(--c-blue-1);
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
        cursor: pointer;
    }
}

/* min width 992px */
@media (min-width: 62em) {
    .dataTables_length {
        padding-inline-start: unset;
    }

    .dataTables_filter {
        padding-inline: 1rem;
    }

    .dataTables_filter,
    .dataTables_paginate {
        padding-inline-end: unset;
        float: right;
    }

    .dataTables_wrapper .dataTables_info {
        display: inline-flex;
        align-items: center;
    }

}

/* Capitalize company dropdown in edit user modal */
#edit_user_company_dropdown {
    text-transform: capitalize;
}

#edit_user_company_dropdown option {
    text-transform: capitalize;
}

/* Capitalize Add New User fields */
#add_new_user_first_name,
#add_new_user_last_name,
#add_new_user_company_dropdown {
    text-transform: capitalize;
}

#add_new_user_company_dropdown option {
    text-transform: capitalize;
}

/* Capitalize Add New Company field */
#add_new_company_name {
    text-transform: capitalize;
}

/* Capitalize Edit Company tab fields */
#subs_offer_name,
#subs_payment_type,
#subs_stripe_subscription_cancel_at_period_end,
#subs_stripe_subscription_status,
#edit_company_name {
    text-transform: capitalize;
}

/* Plan Settings page field widths */
#settings_general_admin_email,
#settings_general_trial_period_duration {
    width: 100%;
    max-width: 400px;
}

/* Spin animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}