/* =========================
   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;
    }
}


/* =========================
   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;
}
