/* Custom styles goes here */

.menu-inner {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    height: auto !important;
}

.menu-item {
    margin-bottom: 5px !important;
}

.menu-inner-shadow {
    display: none !important;
}

/* ==========================================================================
   CKEDITOR COMPACT PARAGRAPH & LINE SPACING OVERRIDES
   ========================================================================== */

/* Target the editor's editable area to drastically reduce large margins */
.ck-editor__editable,
.ck-editor__editable_inline,
.ck-content {
    line-height: 1.5 !important;
}

.ck-editor__editable p,
.ck-editor__editable_inline p,
.ck-content p {
    margin-top: 0px !important;
    margin-bottom: 6px !important; /* Eliminate massive double-line spacing gaps */
    line-height: 1.5 !important;
}

/* Make list items inside CKEditor compact and neat */
.ck-editor__editable ul,
.ck-editor__editable ol,
.ck-content ul,
.ck-content ol {
    margin-top: 4px !important;
    margin-bottom: 10px !important;
    padding-left: 20px !important;
}

.ck-editor__editable li,
.ck-content li {
    margin-bottom: 4px !important;
    line-height: 1.5 !important;
}

/* ==========================================================================
   GLOBAL TEXT SELECTION PROTECTION
   ========================================================================== */
html, body {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

input, textarea, [contenteditable="true"], .ck-editor__editable {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* ==========================================================================
   COPYABLE EMAIL & TOOLTIP STYLES
   ========================================================================== */
.copyable-email {
    background-color: rgba(37, 87, 167, 0.08) !important;
    color: #2557a7 !important;
    border: 1px dashed rgba(37, 87, 167, 0.4) !important;
    border-radius: 4px !important;
    padding: 2px 6px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    transition: all 0.2s ease !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    word-break: break-all !important;
}

.copyable-email:hover {
    background-color: rgba(37, 87, 167, 0.15) !important;
    border-color: #2557a7 !important;
    box-shadow: 0 2px 4px rgba(37, 87, 167, 0.1) !important;
}

.copyable-email::after {
    content: "📋";
    font-size: 0.85em;
    opacity: 0.7;
}

.copy-tooltip-container {
    position: relative;
    display: inline-block;
}

.copy-toast {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #202124;
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1050;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.copy-toast::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #202124 transparent transparent transparent;
}

.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}


