﻿/*@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');*/

/** {
    font-family: "Lato", sans-serif;
}*/




header {
    background: #ffffff;
}

.page-wrapper {
    min-height: 100vh; /* full viewport height */
}

.job-run-status {
    display: inline-block;
    margin-left: 1em;
    line-height: normal;
}

pre {
    white-space: pre-wrap !important; /* Since CSS 2.1 */
}

.job-status-icon {
    vertical-align: -0.03em !important;
    margin-left: 1em !important;
}

.view-job-log-button {
    margin-left: 1em !important;
}

.job-log-body {
    max-height: 25vw !important;
    overflow-y: auto !important;
}

.qlik-auth-type {
    font-size: 0.9em;
    margin: 0 auto;
    display: table;
}

.btn-icon {
    /*    display: flex;
    position: absolute;*/
    outline: none !important;
    box-shadow: none !important;
    background: none !important;
    padding: 0 !important;
    /*    align-content: center;*/
    /*    margin-left: 12em;
    margin-top: -1em;*/
}

.transition-fade {
    transition: opacity 1s;
}

.tabs.tabs-card, .tabs.tabs-border-card {
    background: white !important;
}

.content-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.table-container .form-check {
    margin: 0 auto !important;
}

.content-box {
    flex: 1;
}

.fade-out {
    opacity: 0;
}

.fade-in {
    opacity: 1;
}

.fa-check {
    color: green;
}

-fa-hourglass-start{
    color:grey;
}

.fa-times {
    color: red;
}

.fa-info-circle {

}

.subscription-header {
    justify-content: center !important;
}


.spinner {
    border: 8px solid silver;
    border-top: 8px solid #337AB7;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 700ms linear infinite;
/*    top: 40%; */
/*    left: 50%;*/
    position: relative;
}

@keyframes spin {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

.loading-spinner-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    text-align: center;
    transform: translateX(-50%);
}

.loading-spinner-spanner {
    position: absolute;
    top: 50%;
    left: 0;
    background: #2a2a2a;
    width: 100%;
    display: block;
    text-align: center;
    height: 300px;
    color: #FFF;
    transform: translateY(-50%);
    z-index: 1000;
    visibility: hidden;
}

.loading-spinner-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999; /*Cover everything except the spanner itself! */
    visibility: hidden;
}

.loading-spinner-loader,
.loading-spinner-loader:before,
.loading-spinner-loader:after {
    border-radius: 50%;
    width: 2.5em;
    height: 2.5em;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation: loading-spinner-animation 1.8s infinite ease-in-out;
    animation: loading-spinner-animation 1.8s infinite ease-in-out;
}

.loading-spinner-loader {
    color: #ffffff;
    font-size: 10px;
    margin: 80px auto;
    position: relative;
    text-indent: -9999em;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
}

.loading-spinner-loader:before,
.loading-spinner-loader:after {
    content: '';
    position: absolute;
    top: 0;
}

.loading-spinner-loader:before {
    left: -3.5em;
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
}

.loading-spinner-loader:after {
    left: 3.5em;
}

@-webkit-keyframes loading-spinner-animation {
    0%, 80%, 100% {
        box-shadow: 0 2.5em 0 -1.3em;
    }

    40% {
        box-shadow: 0 2.5em 0 0;
    }
}

@keyframes loading-spinner-animation {
    0%, 80%, 100% {
        box-shadow: 0 2.5em 0 -1.3em;
    }

    40% {
        box-shadow: 0 2.5em 0 0;
    }
}

.show {
    visibility: visible;
}

.loading-spinner-spanner.show, .loading-spinner-overlay.show {
    opacity: 1;
}

.pop-container {
    position: relative;
    display: inline-block;
}

.popconfirm {
    z-index: 1000;
    word-break: break-word;
    word-wrap: break-word;
    white-space: initial;
    background-color: white;
    border-style: solid;
    border-width: 1px;
    border-color: lightblue;
    width: 250px;
    position: absolute;
    top: -50px;
    padding: 10px;
    border-radius: 8px;
}

label {
    font-weight: bold;
}

.fa {
    margin-right: 5px;
}

.blazored-toast-container {
    z-index: 9999 !important;
}

/*.dropdown-menu {
    max-height: 400px !important;
}*/

.qlikobjecttabselect-multiselect .disabled .form-check {
    display: none !important;
}

.qlikobjecttabselect-multiselect .multi-select-item .form-check-input {
    margin-top: -0.06em;
}

.custom-row {
    position: relative;
}

    .custom-row::after {
        content: "";
        position: absolute;
        left: -16px; /* Extend to left outside the row */
        right: 16px; /* Extend to right outside the row */
        bottom: 0;
        height: 1px;
        background-color: #dee2e6; /* Bootstrap border color */
    }

.list-label {
    font-weight: bold;
}


/* Balzor */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.dropdown-item {
    width: auto !important;
}

.action-button {
    margin-left: 0.1em;
    margin-right: 0.1em;
}

/* Style only the table cells in detail rows */
table .is-detail td,
table .is-detail th {
    background-color: #f8f9fa !important;
    --bs-table-bg-state: #f8f9fa !important;
}

/* Style only the table cells in master rows */
table .is-master td,
table .is-master th {
    background-color: white;
}

.nav-large-display {
    margin-top: -0.2rem;
    align-items: center;
}

/* Selected item */
.dropdown-item.active, .dropdown-item:active {
    background-color: rgba(0, 0, 0, 0.05) !important;
    color: unset;
    text-decoration: unset;
    /*    background-color: unset;*/
}

.tenant-dropdown {
    margin-top: -0.25rem;
}

.subtle-btn {
    font-size: 0.7rem; /* Smaller font size */
    font-weight: bold;
    padding: 2px 8px; /* Adjust padding for a more subtle look */
    border-radius: 5px; /* Softened corners */
    color: #404040; /* Muted text color */
}
.storage-divider.divider,
.storage-divider .divider-mask{
    background-color: var(--main-primary-color) !important;
}

.storage-divider.divider .divider-text {
    color: black !important;
}

    @media (min-width: 768px) {

        header .header-main-container {
            width: 100%;
            max-width: fit-content;
        }

    }
    /* less than tablet size */
    /* less than tablet size */
    @media (max-width: 993px) {
        .navbar-toggler[b-r7536mksc1] {
            display: none;
        }

        .collapse[b-r7536mksc1] {
            /* Never collapse the sidebar for wide screens */
            display: block;
        }

        .nav-scrollable[b-r7536mksc1] {
            /* Allow sidebar to scroll for tall menus */
            height: calc(100vh - 3.5rem);
            overflow-y: auto;
        }

        /* header main container */
        header .header-main-container {
            max-width: 500px;
            margin: 0 auto;
        }

        /* logo */
        header > div.d-flex > a.logo-link {
            padding-right: 0 !important;
            margin-right: auto;
            position: relative;
            z-index: 9;
        }

        /* nav */
        header.navbar {
            width: 100%;
            display: flex;
            flex-direction: column;
            flex-wrap: nowrap;
            margin-top: -4rem;
        }

        header .header-main-container,
        header .header-main-container > .d-flex {
            flex-direction: column;
            align-items: center;
            width: 100%;
            align-items: center !important;
            margin-bottom: 0 !important;
            padding-bottom: 0 !important;
        }

        header .d-flex nav {
            width: 100%;
        }


        header .button-container {
            max-width: 300px;
            display: flex;
            align-items: center;
            margin-left: auto;
        }

        header.navbar nav a.nav-item {
            padding: 1rem 1rem !important;
            background: rgba(255, 255, 255, 0.4);
            border-bottom: var(--bs-border-width) solid #8f8f8f;
            font-size: 1.1rem;
        }

        header .nav-container {
            margin-top: 3rem;
        }

        .navbar-toggler-icon {
            font-size: 1.6rem;
        }

        .button-container > a.btn {
            font-size: 1.2rem;
            margin-right: 0.3rem;
        }

        .navbar .dropdown-menu {
            width: 16rem !important;
        }

            .navbar .dropdown-menu a.dropdown-item {
                padding: 1rem;
            }
    }

.signalr-enabled {
    color: green;
    font-weight: bold;
    background-color: #e7f9ee;
    padding: 10px;
    border-radius: 5px;
}

.signalr-disabled {
    color: red;
    font-weight: bold;
    background-color: #f9e7e7;
    padding: 10px;
    border-radius: 5px;
}

.job-log-lines {
    font-family: monospace;
    white-space: pre-wrap;
    height: 500px;
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
    background-color: white;
    color: #fff;
    border-radius: 4px;
    border: 1px solid #444;
}

.log-line {
    padding: 2px 4px;
    margin-bottom: 2px;
    border-radius: 3px;
}

.log-info {
    color: black;
}

.log-warning {
    color: #fff3cd;
    background-color: #664d03;
}

.log-error {
    color: #f8d7da;
    background-color: #842029;
}

.log-default {
    color: black;
}

#app-header {
    height: 75px;
    min-height: 75px;
    max-height: 75px;
    display: flex;
    align-items: center;
    background: white;
    z-index: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-logo {
    height: 45px !important;
}


/* Nav items container shrinks to content */
.qc-nav-items {
    display: inline-flex;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    gap: 1.6rem;
}

/* Base nav item style */
.nav-item-main {
    text-transform: uppercase;
    font-weight: normal;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
    color: #222 !important;
    text-decoration: none;
}

    /* Active state */
    .nav-item-main.active {
        border-bottom-color: var(--stretch-pink);
        font-weight: 600;
    }

    /* Hover state (optional subtle underline) */
    .nav-item-main:hover {
        border-bottom-color: rgba(0,0,0,0.3);
    }


/* Ensure dropdown borders aren't affected */
.dropdown-menu .nav-item-main {
    border: none !important;
}

/* Remove default navbar spacing */
.qc-nav-links,
.navbar,
.navbar-nav,
.navbar-collapse {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.qc-navbar-wrapper 
{
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Ensure nav items align to header top */
.qc-nav-links {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Header border */
#app-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    line-height: 1; /* prevents extra vertical space */
}

/* Ensure nav items sit above header border */
.qc-nav-links,
.qc-nav-items {
    line-height: 1; /* removes inherited line-height */
    padding-bottom: 0 !important; /* correct alignment */
    margin-bottom: -1px; /* pulls border up by one pixel */
}

/* Prevent Bootstrap nav-link padding from pushing items down */
.nav-item-main.nav-link {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1;
}

header .nav-container {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Move the logo/nav cluster to the left */
/*.qc-logo-nav-wrapper {
    margin-left: -15vw;*/ /* or adjust: -10vw, -12vw, -17vw etc. */
/*}*/

.qc-header-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* true centering */
    align-items: center;
    height: 75px;
    width: 100%;
    column-gap: 3rem;
}

/* Force left and right areas to shrink-to-fit */
.qc-header-left,
.qc-header-right {
    min-width: 0;
}

/* Center must truly center regardless of left/right */
.qc-header-center {
    display: flex;
    justify-content: center;
    align-items: center;
    /* KEY FIX */
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap; /* optional: prevents menu wrapping */
    margin-bottom: -2px;
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.25rem;
}

/* Limit min and max width on column resize */
.object-table colgroup col {
    min-width: 80px !important;
    max-width: 500px !important;
}


/* Authorizing Page */
/* Wrapper */
.authorizing-wrapper {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

/* Background blobs */
.authorizing-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: pulse 4s ease-in-out infinite;
}

.bg-teal {
    width: 260px;
    height: 260px;
    background-color: #5eead4;
    top: 20%;
    left: 20%;
}

.bg-indigo {
    width: 380px;
    height: 380px;
    background-color: #c7d2fe;
    bottom: 20%;
    right: 20%;
    animation-delay: 0.7s;
}

/* Spinner */
.spinner-stack {
    position: relative;
    width: 80px;
    height: 80px;
}

.spinner-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid #e5e7eb;
}

.ring-inner {
    inset: 12px;
}

.spin-teal {
    border-color: #14b8a6 transparent transparent transparent;
    animation: spin 1.2s linear infinite;
}

.spin-indigo {
    border-color: #6366f1 transparent transparent transparent;
    animation: spin 1s linear infinite;
}

.reverse {
    animation-direction: reverse;
}

/* Progress bar */
.authorizing-progress {
    width: 260px;
    height: 6px;
}

/* Animations */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.plan-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: #198754; /* default = success */
    color: white;
}

    /* Optional future refinements */
    .plan-badge.trial {
        background: #0d6efd;
    }

    .plan-badge.cancelled {
        background: #ffc107;
        color: #212529;
    }

    .plan-badge.disabled {
        background: #6c757d;
    }


.pricing-card {
    border: 2px solid transparent; /* always 2px */
    background: #fff;
    transition: transform 0.25s cubic-bezier(.4,0,.2,1), box-shadow 0.25s cubic-bezier(.4,0,.2,1), border-color 0.25s ease;
    cursor: pointer;
}

    .pricing-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.08);
    }

    .pricing-card.selected,
    .pricing-card.current-plan {
        border-color: var(--main-primary-color);
        box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.08), 0 0 0 4px rgba(94, 177, 165, 0.12);
    }




.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 999px;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.pricing-features i {
    color: var(--main-primary-color);
    margin-top: 3px;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--main-primary-color);
}

.pricing-currency {
    font-size: 1.5rem;
    font-weight: 600;
}

.pricing-price-wrapper {
    line-height: 1;
}

.pricing-currency {
    font-size: 1.5rem; /* slightly smaller than price */
    font-weight: 600;
    margin-top: 0; /* remove any vertical shift */
}

.pricing-price {
    font-size: 3rem; /* your big price */
    font-weight: 700;
    line-height: 1;
}

.price-toggle {
    background: rgb(243, 244, 246);
}

.price-toggle .btn {
    box-shadow: none !important;
    background: rgb(243, 244, 246);
}

.plan-scale-highlight {
    padding: 1.25rem;
    background: #f8f9fa;
    border-radius: 1rem;
}

.plan-scale-number {
    font-size: 1.8rem;
    font-weight: 700;
}

.plan-scale-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.plan-scale-divider {
    height: 1px;
    background: #dee2e6;
    margin: 0.75rem auto;
    width: 60%;
}

input::placeholder {
    opacity: 0.5 !important;
}

.maintenance-banner {
    width: 100%;
    font-size: 0.95rem;
    position: relative;
    z-index: 50;
}

.header-main-container .dropdown-menu {
    z-index: 100;
}

/* Role Description Panel */
.role-description-panel {
    margin-top: 0.75rem;
    padding: 0.875rem 1rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.role-description-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.role-description-header i {
    font-size: 1rem;
    color: #6c757d;
}

.role-permissions-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.role-permissions-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.25rem 0;
    color: #495057;
}

.role-permissions-list li i {
    color: #198754;
    font-size: 0.875rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.modern-input {
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.modern-input:focus {
    border-color: var(--qc-teal-500, #14b8a6);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
    outline: none;
}

/* Trial Modal Styles */
.trial-start-modal .trial-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.trial-start-modal .trial-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--qc-teal-500, #14b8a6), var(--qc-teal-600, #0d9488));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.input-with-icon {
    position: relative;
}

    .input-with-icon i {
        position: absolute;
        left: 12px;
        top: 12px; /* match input vertical padding */
        pointer-events: none;
        color: #6c757d;
    }

    .input-with-icon .form-control {
        padding-left: 38px;
    }

.trial-badge-extended {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background-color: #d1fae5;
    color: #065f46;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.promo-valid {
    padding: 0.75rem;
    background-color: #d1fae5;
    border-radius: 0.5rem;
    color: #065f46;
}

.promo-invalid {
    padding: 0.5rem 0.75rem;
    background-color: #fee2e2;
    border-radius: 0.375rem;
    color: #dc2626;
    font-size: 0.875rem;
}

.promo-input-valid {
    border-color: #10b981 !important;
    background-color: #f0fdf4;
}

.promo-input-invalid {
    border-color: #ef4444 !important;
    background-color: #fef2f2;
}

.promo-input-verifying {
    border-color: #f59e0b !important;
    background-color: #fffbeb;
}

.trial-start-modal .modal-header {
    padding: 2rem;
}

.trial-start-modal .modal-footer {
    border: none;
}

.trial-start-modal .modal-body {
    padding: 1.5rem;
}

.trial-start-modal .footer-note {
    font-size: 12px;
    color: #6b7280;
}

.trial-start-modal .trial-header .btn-close {
    margin-top: -2em;
}

.release-panel {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 420px;
    max-height: 75vh;
    background: #ffffff;
    border-radius: 14px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideIn 0.25s ease-out;
    border: 1px solid #e5e7eb;
}

/* Header */
.release-header {
    padding: 14px 18px;
    background: var(--main-primary-color);
    color: white;
}

.release-title-wrapper {
    display: flex;
    flex-direction: column;
}

.release-badge {
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.release-version {
    font-size: 0.8rem;
    opacity: 0.85;
}

/* Close button */
.release-close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    opacity: 0.85;
}

    .release-close-btn:hover {
        opacity: 1;
    }

/* Scrollable body */
.release-body {
    padding: 18px;
    overflow-y: auto;
    font-size: 0.92rem;
    line-height: 1.5;
}

    /* Optional nice scrollbar */
    .release-body::-webkit-scrollbar {
        width: 6px;
    }

    .release-body::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.2);
        border-radius: 3px;
    }

/* Footer */
.release-footer {
    padding: 14px 18px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    text-align: right;
}

/* Animation */
@keyframes slideIn {
    from {
        transform: translateY(12px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.setting-pill {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 12px;
    border-radius: 14px;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

    .setting-pill.active {
        background-color: rgba(0, 135, 61, 0.06); /* soft green tint */
        border-color: rgba(0, 135, 61, 0.25);
    }

.setting-pill-label {
    font-weight: 600;
    transition: color 0.25s ease;
}

.setting-pill.active .setting-pill-label {
    color: #00873D;
}

.setting-pill-description {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 4px;
    transition: color 0.2s ease;
}

.setting-pill:hover .setting-pill-description {
    color: #495057;
}

/* Summary Box */
.release-summary-box {
    background-color: rgba(0, 135, 61, 0.05);
    border: 1px solid rgba(0, 135, 61, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.release-summary-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #00873D;
    margin-bottom: 6px;
}

.release-summary-text {
    font-size: 0.85rem;
    color: #495057;
}

/* Section */
.release-section {
    border-radius: 14px;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.15s ease;
}

    .release-section:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        transform: translateY(-1px);
    }

/* Clickable header */
.release-section-header {
    padding: 14px 18px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

    .release-section-header::after {
        content: "▸";
        position: absolute;
        right: 16px;
        transition: transform 0.2s ease;
    }

.release-section.open .release-section-header::after {
    transform: rotate(90deg);
}

/* Body */
.release-section-body {
    display: none;
    padding: 0 18px 14px 18px;
    font-size: 0.9rem;
    color: #495057;
}

.release-section.open .release-section-body {
    display: block;
}

/* CTA */
.release-cta {
    display: inline-block;
    padding: 10px 16px;
    background: var(--main-primary-color);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.release-editor-container {
    position: relative;
}

.release-editor {
    min-height: 500px;
    font-family: Consolas, monospace;
    resize: vertical;
}

.release-editor-container.fullscreen {
    position: fixed;
    inset: 0;
    background: white;
    z-index: 2000;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

    .release-editor-container.fullscreen .release-editor {
        flex: 1;
        min-height: unset;
    }

.release-cta-wrapper {
    text-align: center;
    margin-top: 0.75rem;
}

.release-cta-button {
    font-weight: 600;
}

.release-footer-note {
    font-size: 0.85rem;
    color: #6c757d;
}