/* =========================
   FULLCALENDAR
   ========================= */

.fc {
    font-size: 1rem;
}

.fc-toolbar button,
.fc-button {
    font-size: 1rem;
    padding: .375rem .75rem;
    line-height: 1.3;
}

.fc th,
.fc td,
.fc-time,
.fc-day-header,
.fc-axis {
    font-size: 1rem;
}


/* =========================
   COLOR PICKER
   ========================= */

.color-pick-display {
    width: 45px;
    height: 25px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-shadow: inset 0px 0px 3px rgba(0, 0, 0, 0.2);
    display: inline-block;
}

    .color-pick-display.large {
        width: 60px;
        height: 30px;
    }

    .color-pick-display.small {
        width: 30px;
        height: 15px;
    }


/* =========================
   CARDS
   ========================= */

.selectable-card {
    border: 1px solid #ccc;
    transition: box-shadow 0.3s, border-color 0.3s;
    cursor: pointer;
}

    .selectable-card:hover {
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    }

    .selectable-card.selected {
        border-color: var(--primary-color);
        box-shadow: 0px 4px 10px rgba(0, 123, 255, 0.25);
    }

.card-selectable {
    border: 1px solid #ccc;
    transition: box-shadow 0.3s, border-color 0.3s;
    cursor: pointer;
}

    .card-selectable .col {
        padding: 0.15rem !important;
        margin: 0 !important;
    }

    .card-selectable:hover {
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    }

    .card-selectable .indicator {
        max-width: 0.5rem !important;
        transition: background-color 0.3s;
    }

    .card-selectable.selected .indicator {
        background-color: var(--primary-color);
    }

    .card-selectable .card-image {
        width: 60px;
        height: 60px;
    }

    .card-selectable .card-icon {
        margin-left: 8px;
        margin-top: 8px;
        margin-right: 2px;
    }

.card-index {
    border: 1px solid #ccc;
    transition: box-shadow 0.3s, border-color 0.3s;
    cursor: pointer;
}

    .card-index .col {
        padding: 0.15rem !important;
        margin: 0 !important;
    }

    .card-index:hover {
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    }

    .card-index .card-image {
        width: 60px;
        height: 60px;
    }

    .card-index .card-icon {
        margin-left: 8px;
        margin-top: 8px;
        margin-right: 2px;
    }


/* =========================
   FORM HELPERS
   ========================= */

.fields-group-header {
    background-color: #f5f5f5;
    font-weight: bold;
    padding: 4px 10px;
    margin: 16px 0 8px 0;
    border-radius: 4px;
    font-size: 1rem;
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}


/* =========================
   HELP / POPOVER
   ========================= */

.help-popover {
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

    .help-popover:focus,
    .help-popover:active {
        outline: none;
        box-shadow: none;
    }

    .help-popover:hover .help-icon {
        border-color: var(--primary-color);
        color: var(--primary-color);
    }

.popover {
    z-index: 9999;
}

.popover-header {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: bold;
    border-bottom: 0;
}

.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid #bbb;
    color: #555;
    background: #fff;
}


/* =========================
   IMAGES
   ========================= */

.img-form-details {
    object-fit: cover;
    object-position: center;
    width: 6rem;
    height: 6rem;
}

@media (min-width: 576px) {
    .img-form-details {
        width: 7.5rem;
        height: 7.5rem;
    }
}

@media (min-width: 768px) {
    .img-form-details {
        width: 9.5rem;
        height: 9.5rem;
    }
}

/*.imagezone-image {
    width: 50rem;
    height: 13rem;
}
@media (min-width: 768px) {
    .imagezone-image {
        width: 25rem;
        height: 13rem;
    }
}*/

/* =========================
   TABS
   ========================= */

.tabs-container {
    position: relative;
}

.btn-scroll-tabs {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    padding: 4px 6px;
    cursor: pointer;
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
}

    .btn-scroll-tabs.left {
        left: -7px;
    }

    .btn-scroll-tabs.right {
        right: -4px;
    }

.scroll-nav-tabs {
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap !important;
}

    .scroll-nav-tabs li {
        display: inline-block !important;
    }


/* =========================
   SEO
   ========================= */

.seo-ok {
    color: #198754;
}

.seo-warn {
    color: #fd7e14;
}

.seo-bad {
    color: #dc3545;
}


/* =========================
   PREVIEWS
   ========================= */

.email-preview {
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    padding: 12px 14px;
    background-color: #ffffff;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

    .email-preview p {
        margin-bottom: 10px;
    }

    .email-preview a {
        color: #0d6efd;
        text-decoration: none;
    }

        .email-preview a:hover {
            text-decoration: underline;
        }

    .email-preview ul,
    .email-preview ol {
        padding-left: 20px;
        margin-bottom: 10px;
    }

    .email-preview img {
        max-width: 100%;
        height: auto;
        border-radius: 4px;
    }

    .email-preview > *:last-child {
        margin-bottom: 0;
    }

.text-preview {
    white-space: pre-line;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 10px 12px;
    background-color: #fff;
    line-height: 1.5;
}


/* =========================
   CUSTOM FIELDS
   ========================= */

.custom-field-help {
    display: block;
    font-size: 0.78rem;
    line-height: 1.2;
    margin-top: 0.2rem;
}
.custom-theme-preview {
    --preview-primary: #7a7a7a;
    --preview-primary-dark: #a3be1f;
    --preview-border: #dadada;
    --preview-text: #fff;
    --preview-hover: #fff;
    --preview-active-text: #535353;
    width: min(100%, 22rem);
    margin-right: auto;
    margin-left: auto;
    overflow: hidden;
    border: 1px solid var(--preview-border);
    border-radius: 0.75rem;
    background: var(--preview-primary);
    color: var(--preview-text);
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.12);
}

.custom-theme-preview-header,
.custom-theme-preview-account {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem;
    background: var(--preview-primary-dark);
    color: var(--preview-text);
}

.custom-theme-preview-header small,
.custom-theme-preview-account small {
    display: block;
    opacity: 0.8;
}

.custom-theme-preview-logo,
.custom-theme-preview-avatar {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 50%;
}

.custom-theme-preview-search {
    margin: 0.65rem 0.75rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--preview-border);
    border-radius: 0.55rem;
    background: rgba(0, 0, 0, 0.2);
    color: var(--preview-text);
    opacity: 0.85;
}

.custom-theme-preview-body {
    padding: 0.35rem 0 0.75rem;
}

.custom-theme-preview-body > small {
    display: block;
    padding: 0.55rem 1rem 0.2rem 2.8rem;
    letter-spacing: 0.08em;
    opacity: 0.7;
}

.custom-theme-preview-item {
    display: flex;
    min-height: 2.25rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 1rem 0.45rem 2.8rem;
    color: var(--preview-text);
}

.custom-theme-preview-hover,
.custom-theme-preview-active {
    background: var(--preview-hover);
    color: var(--preview-active-text);
}

.custom-theme-preview-active {
    font-weight: 600;
}

.custom-theme-color-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.custom-theme-color-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 0.55rem;
    background: #fff;
}

.custom-theme-color-control {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.custom-theme-color-control input[type="color"] {
    width: 2.75rem;
    height: 2.25rem;
    padding: 0.15rem;
    border: 1px solid #ced4da;
    border-radius: 0.4rem;
    background: #fff;
    cursor: pointer;
}

.custom-theme-color-control output {
    color: #535353;
    font-family: monospace;
    font-size: 0.85rem;
}

.custom-theme-auto-row {
    color: #535353;
    font-size: 0.9rem;
}

.custom-theme-auto-row label {
    cursor: pointer;
}

.custom-theme-advanced-toggle {
    display: block;
    padding-right: 0;
    padding-left: 0;
}

.custom-theme-advanced-toggle::after {
    content: "\2303";
    display: inline-block;
    margin-left: 0.35rem;
}

.custom-theme-advanced-toggle.collapsed::after {
    content: "\2304";
}

.custom-theme-contrast-warning {
    padding: 0.65rem 0.75rem;
    border-left: 3px solid #dc9f00;
    background: #fff5d6;
    color: #5b4300;
    font-size: 0.85rem;
}

@media (max-width: 575.98px) {
    .custom-theme-color-grid {
        grid-template-columns: 1fr;
    }
}
