@font-face {
    font-family: 'PT Sans', sans-serif;
    src: url('/static/fonts/PTSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'PT Sans', sans-serif;
    src: url('/static/fonts/PTSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Titillium', sans-serif;
    src: url('/static/fonts/TitilliumWeb-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Titillium', sans-serif;
    src: url('/static/fonts/TitilliumWeb-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

/* Global */
body {
    font-family: 'Titillium', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #00026A;
    min-height: 100vh;
    background: linear-gradient(60deg, rgba(255, 255, 255, 1) 0%, rgba(154, 192, 254, 0.5) 20%, rgba(255, 255, 255, 1) 40%, rgba(255, 255, 255, 1) 100%);
    background-size: cover;
    background-repeat: no-repeat;
}

p {
    font-family: 'Titillium', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #00026A;
}

label, legend {
    font-family: 'Titillium', sans-serif;
    font-size: 16px;
    line-height: 27px;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
}

h1 {
    font-size: 4rem;
    line-height: 4.75rem;
}

h2 {
    font-size: 3rem;
    line-height: 3.7rem;
}

h3 {
    font-size: 2rem;
    line-height: 2.4rem;
}

h4 {
    font-size: 1.5rem;
    line-height: 1.8rem;
}

@media (max-width: 991.98px) {
    h1 {
        font-size: 3rem;
        line-height: 3.5rem;
    }

    h2 {
        font-size: 2.4rem;
        line-height: 2.8rem;
    }

    h3 {
        font-size: 1.7rem;
        line-height: 2rem;
    }

    h4 {
        font-size: 1.3rem;
        line-height: 1.6rem;
    }
}

@media (max-width: 575.98px) {
    h1 {
        font-size: 2.5rem;
        line-height: 3rem;
    }

    h2 {
        font-size: 2.1rem;
        line-height: 2.5rem;
    }

    h3 {
        font-size: 1.6rem;
    }
}

/* Buttons */
.btn {
    padding: 0 16px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 36px;
    text-transform: uppercase;
    font-weight: 700;
}

.btn-primary {
    background-color: #0288FC;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #004ECB;
}

.btn-danger {
    background-color: #FF5252;
}

.btn-primary-nav {
    padding: 0 16px;
}

button.close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: transparent;
}

/* Navbar */
.navbar {
    padding: 30px 0;
    font-size: 16px;
    line-height: 26px;
    box-shadow: 0px 1px 12px rgba(0, 2, 106, 0.2);
    background-color: #ffffff;
    font-family: 'PT Sans', sans-serif;
}

.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .show > .nav-link {
    color: #00026A;
    padding: 8px 10px;
}

.nav-item .dropdown-item {
    color: #00026A;
    font-size: 15px;
    line-height: 25px;
}

.nav-item .dropdown-item.active,
.dropdown-item:active {
    background-color: #e9ecef;
}

.navbar-brand {
    padding: 0;
}

@media (max-width: 991.98px) {
    .navbar-nav {
        margin-top: 30px;
        align-items: flex-start !important;
        gap: 5px;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand img {
        width: 100%;
        max-width: 200px;
        height: auto !important;
    }
}

/* Footer */
footer.border-top {
    padding: 20px 0;
}

footer.border-top .text-muted {
    margin: 0;
}

footer.border-top .text-muted a {
    color: #00026A;
    text-decoration: none;
}

footer.border-top .text-muted a:hover {
    text-decoration: underline;
}

/* Tables */
.table {
    max-width: 100%;
    table-layout: auto;
}

.table > :not(:first-child) {
    border-top: 0;
}

.table tr th,
.table tr td {
    padding: 8px;
    vertical-align: middle;
}

.table tr th {
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #00026A;
}

.table tr td {
    font-size: 16px;
    line-height: 24px;
    color: #00026A;
}

.table tr td .btn {
    padding: 6px 12px;
}

.table tr a {
    color: #00026A;
    text-decoration: none;
}

/* Breadcrumbs */
.breadcrumb {
    margin-bottom: 50px;
}

.breadcrumb-item {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #00026A;
}

.breadcrumb-item a {
    color: #00026A;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.breadcrumb-item-active {
    font-weight: 700;
}

/* Info messages fix */
ul.messages {
    padding-left: 0;
}

/* Sign in */
.socialaccount_ballot {
    width: 100%;
    max-width: 509px;
    margin: 0 auto;
}

.platforms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px
}

.platforms .platform {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 24px;
    padding: 12px 14px;
    border: 1px solid #d0d5de;
    border-radius: 5px;
    color: #757a89;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.platforms .platform:hover {
    background-color: #eeeff0;
    -webkit-transition: .3s all ease;
    -o-transition: .3s all ease;
    transition: .3s all ease
}

.platforms .platform img {
    width: 100%;
    max-width: 22px;
}

.platforms-more {
    background: 0 0;
    border: none;
    outline: 0;
    color: #0d6efd;
    font-size: 16px;
    text-decoration: underline;
}

.platforms-more:hover {
    -webkit-transition: .3s all ease;
    -o-transition: .3s all ease;
    transition: .3s all ease;
    text-decoration: underline;
}

@media (max-width: 1549.98px) {
    .platforms {
        gap: 12px;
        width: 100%;
        max-width: 430px;
        margin: 0 auto
    }

    .platforms .platform {
        padding: 10px 12px;
        gap: 12px
    }
}

.socialaccount_ballot .login-or {
    width: 100%;
    margin-top: 10px;
}

.password_reset input[type=email] {
    display: block;
    margin-top: 0.5rem;
    padding: 12px;
    width: 100%;
    max-width: 520px;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #00026A;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.password_reset input[type=email]:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgb(13 110 253 / 25%);
}

.password_reset input[type=submit] {
    margin-bottom: 0.5rem;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    line-height: 36px;
    text-transform: uppercase;
    font-weight: 700;
    background-color: #0288FC;
    color: #ffffff;
    border: 0;
    transition: 0.3s all ease;
}

.password_reset input[type=submit]:hover {
    background-color: #004ECB;
}

/* Inputs */
.form-control {
    padding: 12px;
    color: #00026A;
}

.form-text {
    color: #00026A;
}

.form-control input:focus {
    color: #00026A;
}

@media (max-width: 767.98px) {
    .socialaccount_ballot {
        row-gap: 2px;
        column-gap: 6px;
    }

    .socialaccount_ballot .btn {
        padding: 3px 10px;
        border-radius: 15px;
    }
}

/* Cards */
.card-title {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Other styles */
.app_span {
    display: inline-block;
    margin: 0 0.5rem 0.5rem 0;
}

.upgrade-pill {
    background-color: #FFC109;
    color: #000000;
}

.nav-pills .nav-link.active {
    background-color: #008afc;
}

.form-group {
    padding-bottom: 15px;
}

.alert-error {
    background-color: #FFCCCC;
}

.alert-info {
    background-color: #d1e7dd;
}

#progressbar {
    overflow: hidden;
    color: lightgrey;
    padding: 0;
    margin: 0;
    width: 100%;
}

#progressbar .active {
    color: #008afc;
}

#progressbar_container {
    text-align: center;
}

#progressbar li {
    list-style-type: none;
    font-size: 15px;
    width: 25%;
    float: left;
    position: relative;
    font-weight: 400;

}

#progressbar #step1:before {
    font-family: FontAwesome;
    content: "1"
}

#progressbar #step2:before {
    font-family: FontAwesome;
    content: "2";
}

#progressbar #step3:before {
    font-family: FontAwesome;
    content: "3";
}

#progressbar li:before {
    width: 50px;
    height: 50px;
    line-height: 45px;
    display: block;
    font-size: 20px;
    color: #ffffff;
    background: lightgray;
    border-radius: 50%;
    margin: 0 auto 10px auto;
    padding: 2px
}

#progressbar li:after {
    content: '';
    width: 100%;
    height: 2px;
    background: lightgray;
    position: absolute;
    left: 0;
    top: 25px;
    z-index: -1;
}

#progressbar li.active:before,
#progressbar li.active:after {
    background: #008afc;
}

.progress {
    height: 10px;
}

.progress-bar {
    background-color: #008afc;
}

.wordwrap {
    word-wrap: break-word;
    min-width: 130px;
    max-width: 130px;
}

td {
    width: auto;
}

td.min {
    width: 1%;
    white-space: nowrap;
}

.partnerportal-card {
    width: 18rem;
    margin-bottom: 25px;
    min-height: 200px;
}

.modal-backdrop {
    background: rgba(0, 0, 0, 0.7);
}

.line-through {
    text-decoration: line-through;
}

.pricing-badge {
    position: absolute;
    top: 0;
    z-index: 999;
    right: 0;
    width: 100%;
    display: block;
    padding: 0;
    overflow: hidden;
    height: 100px;
}

.pricing-badge .pricing-badge-content {
    float: right;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    right: -67px;
    top: 17px;
    position: relative;
    text-align: center;
    width: 200px;
    font-size: 13px;
    margin: 0;
    padding: 7px 10px;
    color: #ffffff;
    background: #198754;
}

.feedback-header p {
    color: #ffffff !important;
    font-family: 'Titillium', sans-serif;
    font-size: 16px !important;
}

#feedback-btn {
    font-family: 'PT Sans', sans-serif;
}

.feedback-item {
    font-family: 'Titillium', sans-serif;
}

.feedback-content p {
    font-family: 'Titillium', sans-serif;
    font-size: 16px !important;
    font-weight: normal !important;
}

.feedback-actions button {
    font-family: 'Titillium', sans-serif;
    background-color: #0288FC !important;
    color: #ffffff !important;
    border-radius: 4px;
    font-size: 14px;
    line-height: 36px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0 16px !important;
}

.feedback-actions button:hover {
    background-color: #004ECB !important;
}

#feedback-back {
    background-color: #85c6ff !important;
}

#feedback-message:focus {
    border: 1px solid #0288FC !important;
}

.feedback-content textarea {
    font-family: 'Titillium', sans-serif !important;
    font-size: 16px !important;
    color: #00026A !important;
}

[v-cloak] {
    display: none;
}

  .contact-badge {
        position: fixed;
        left: 20px;
        bottom: 20px;
        background-color: #00026A;
        color: #ffffff;
        padding: 10px;
        font-size: 14px;
        font-weight: bold;
        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 9999;
        width: auto;
        display: flex;
        align-items: center;
        transition: background-color 0.3s ease;
    }

    .contact-badge:hover {
        background-color: #00014E;
    }

    .contact-badge img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        margin-right: 10px;
        border: 2px solid #ffffff;
    }

    .contact-badge .details {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-right: 10px;
    }

    .contact-badge .name {
        font-size: 16px;
        margin-bottom: 5px;
        line-height: 1;
    }

    .contact-badge .name-label {
        font-size: 10px;
        margin-top: 5px;
        margin-bottom: 5px;
        line-height: 1;
    }

    .contact-badge a {
        color: #ffffff;
        text-decoration: none;
        font-size: 18px;
        margin: 0 5px;
        transition: color 0.3s ease;
    }

    .contact-badge a:hover {
        color: orange;
    }

    .contact-badge i,
    .contact-badge svg {
        transition: transform 0.3s ease, fill 0.3s ease;
        width: 18px;
        height: 18px;
        fill: #ffffff; /* Default icon color */
    }

    .contact-badge svg {
        width: 21px;
        height: 21px;
        margin-bottom: 4px;
    }

    .contact-badge a:hover i,
    .contact-badge a:hover svg {
        transform: scale(1.2);
        fill: orange; /* Hover color for SVG */
    }

/* Dashboard nested connectors table */

#connectors-table .connector-row-nested td:first-child {
    padding-left: 30px; /* Indent the nested rows */
}

 /* Subtle fade-in (it's being loaded anyways) */
#connectors-table .connector-row-nested {
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#connectors-table tr .cta-display-nested { /* The arrow icon (that expands nested table) */
    display: none;
    color: blue;
    font-size: 0.95em;
    cursor: pointer;
    height: 24px;
}

#connectors-table tr[data-has-children="true"] .cta-display-nested {
    display: inline-block; /* Display the arrow only if data-has-children is true */
    transform: rotate(270deg);
}

a.button {
    text-decoration: none;
}

.text-disabled {
    color: gray;
    opacity: 0.5;
}