html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    height: 100%;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif, Verdana, "Helvetica Neue", "Lucida Grande";
    margin: 0px;
    color: #000;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

h1, h2, h3, h4, h5, h6 {
    font-size: 2.2em;
    text-transform: none;
    font-weight: 200;
}

h1 {
    margin-bottom: 0px;
}

h1 a:link, h1 a:visited {
    color: #333333;
}

h2 {
    font-size: 1.8em;
}

h3 {
    font-size: 1.6em;
}

h4 {
    font-size: 1.4em;
}

h5 {
    font-size: 1.2em;
}

h6 {
    font-size: 1em;
}

.header-logo {
    min-width:250px;
}

.page {
    min-height: 820px;
    margin: 10px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

.footer {
    font-size: small;
    margin-left: 20px;
    vertical-align: middle;
}

.large-text {
    font-size: x-large;
}

.validate-text {
    font-size: 0.8rem;
    color: darkred;
}

.container {
    max-width: 1200px;
}

.submittable > select {
    padding: 0.1rem 0.5rem;
}

tfoot td span {
    vertical-align: top;
}

.form-sm {
    max-width: 500px;
    margin: auto;
}

.form-md {
    max-width: 700px;
    margin: auto;
}

.form-lg {
    max-width: 900px;
    margin: auto;
}

/*.d-flex > select,
.d-flex > input,
.d-flex > .input-group {
    width: unset;
    margin-left: 20px;
}*/

#page-size label {
    margin-left: 10px;
    margin-right: 10px;
}

#page-size select {
    min-width: 55px;
    margin-left: 0;
    margin-right: 10px;
}

ul.pagination {
    margin-bottom: 0;
}

.page-link-btn {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
}

.empower {
    background-image: url('../img/powered_by.png');
    background-position: bottom right;
    background-repeat: no-repeat; /* Prevents the image from repeating */
    background-size: auto; /* Adjust size as needed (e.g., `cover`, `contain`, or specific dimensions) */
}

.empower a {
    text-decoration: none;
}

/*form a:link,
form a:visited,*/
#user-settings a {
    text-decoration: none;
    color: var(--bs-primary);
}

label {
    white-space: nowrap;
    /*    min-width: 80px;*/
}

form label,
form p,
#user-settings label,
#user-settings p {
    font-weight: 500;
}

.form-floating label {
    font-weight: unset;
}

.page-section li {
    padding-bottom: 10px;
}

/*#page-filter {
    min-width: 350px;
}

#page-filter input[type=text] {
    min-width: 350px;
}*/

.h-container {
    width: 100%;
    margin-bottom: 0.5rem;
}

.sb-container {
    width: 100%;
    margin-bottom: 2rem;
}

/*.pagination {
    margin-top: 30px;
}*/

.card-container .card {
    width: 230px;
}

.card-container .card img {
    object-fit: contain;
    max-height: 200px;
}

.card.krajee-default {
    width: auto;
    padding: 10px;
}

.select-card .card {
    height: 250px;
}

.select-card .card-text {
    height: 100px;
}

.card-footer-buttons a {
    float: right;
}

@media (min-width: 768px) {
    .sb-container {
        width: 240px !important;
    }

    .h-container {
        width: unset;
        min-width: 200px;
        /*margin-right:20px;*/
    }

    .card-container {
        min-height: 400px;
    }

    /*.form-lg,
    .form-md,
    .form-sm {
        margin-left: 30px;
    }*/

    /*#page-filter input[type=text] {
        min-width: 200px;
    }*/
}

@media (min-width: 992px) {
   /* #page-filter input[type=text] {
        min-width: 300px;
    }
*/
    .card-container {
        min-height: 680px;
    }
}

.card-footer a {
    font-size: 1.3rem;
    margin-right: 0.4rem;
}

.card-footer .small {
    float: right;
    margin-top: 0.5rem;
}

.bootstrap-tagsinput {
    width: 100%;
    min-height: 60px;
}

.bootstrap-tagsinput .tag {
    margin: 0.15rem;
    margin-bottom: 0.3rem;
    position: relative;
    padding: 0.4rem;
    padding-right: 1.5rem;
    font-size: 0.9rem;
}

.bootstrap-tagsinput .tag [data-role="remove"] {
    position: absolute;
    top: 0;
    right: 0;
}

.bootstrap-tagsinput .tag [data-role="remove"]:after {
    padding: 0px 5px;
}

.font-italic {
    font-style: italic;
}

.font-bold {
    font-weight: bold;
}

.file-grabbing {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

.krajee-default .file-footer-caption {
    margin-bottom: 15px;
}

.thumbnail-tags {
    max-width: 180px;
    margin: auto;
    overflow: hidden;
}

.thumbnail-desc {
    max-width: 200px;
    margin: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ql-custom-button {
    border: none;
    background: none;
    cursor: pointer;
    font-weight: bold;
}

#editor-container {
    height: 100%;
}

#source-view {
    display: none;
    width: 100%;
    height: 100%;
}

.disabled-button {
    opacity: 0.5;
    pointer-events: none;
}

.toast {
    visibility: hidden;
    min-width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 12px;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.toast.show {
    visibility: visible;
    opacity: 1;
}

.radio-group-divider {
    height: 1.5em;
    display: inline-block;
}

.form-select.small,
.form-control.small {
    font-size: 0.875em;
}

#analyticsChart {
    max-height: 600px;
}

#paypal-button-container {
    width: 500px;
    max-width: 100%;
    margin: 0 auto;
}

#payment-form {
    opacity: 1;
    overflow: hidden;
    transition: opacity 0.4s ease, max-height 0.4s ease;
}

#payment-form.hidden {
    opacity: 0;
    max-height: 0;
    pointer-events: none;
}

#payment-summary {
    width: 500px;
    max-width: 100%;
    margin: 0 auto;
    opacity: 1;
    max-height: 200px;
    overflow: hidden;
    transition: opacity 0.4s ease, max-height 0.4s ease;
}

#payment-summary.hidden {
    display: none;
}

.payment-summary {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size:1.1rem;
}

#payment-summary-heading.hidden {
    display: none;
}

/* The Spinner: Modeled after PayPal's layout */
#payment-loader {
    width: 45px;
    height: 45px;
    border: 4px solid #e5e7eb; /* Soft grey track background */
    border-top: 4px solid #0079C1; /* Official PayPal Blue arc */
    border-radius: 50%;
    animation: paymentRotate 0.8s infinite linear; /* Smooth, continuous rotation */
    margin: auto;
}

#payment-loader.hidden {
    display: none;
}

/* Rotation logic */
@keyframes paymentRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.card.promotion {
    margin:auto;
    max-width:600px;
}

#albumDialog .modal-body {
    min-height: 500px;
    max-height: 600px;
}

.modal-body img.loader {
    margin-left: auto;
    margin-right: auto;
    display: block;
    margin-top: 50px;
}

#albumDialog .modal-body img.loader {
    margin-top: 150px;
}

.modal-body .krajee-default.file-preview-frame .kv-file-content {
    width: 210px;
    height: 145px;
}