/* =========================================================
   SEPAKUNG RICH EDITOR - PARAGRAPH ALIGNMENT
   ========================================================= */

sp-align-center,
sp-align-right,
sp-align-justify {
    display: block;
    width: 100%;
}

sp-align-center {
    text-align: center !important;
}

sp-align-right {
    text-align: right !important;
}

sp-align-justify {
    text-align: justify !important;
}


/* ---------------------------------------------------------
   Filament toolbar extension
   --------------------------------------------------------- */

.sp-align-toolbar {
    display: flex;
    align-items: center;
    gap: .3rem;
    padding: .4rem .65rem;
    border-top: 1px solid #f1f5f9;
}

.sp-align-toolbar-label {
    margin-right: .3rem;
    color: #64748b;
    font-size: .7rem;
    font-weight: 700;
}

.sp-align-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 2rem;
    height: 2rem;

    border: 0;
    border-radius: .45rem;

    background: transparent;
    color: #475569;

    cursor: pointer;

    transition:
        background-color .15s ease,
        color .15s ease;
}

.sp-align-button:hover {
    background: #f1f5f9;
    color: #059669;
}


/* Alignment icon */

.sp-align-icon {
    display: flex;
    flex-direction: column;
    gap: 2px;

    width: 14px;
}

.sp-align-icon i {
    display: block;
    height: 1.5px;
    border-radius: 999px;
    background: currentColor;
}


/* left */

.sp-align-icon-left {
    align-items: flex-start;
}

.sp-align-icon-left i:nth-child(odd) {
    width: 14px;
}

.sp-align-icon-left i:nth-child(even) {
    width: 9px;
}


/* center */

.sp-align-icon-center {
    align-items: center;
}

.sp-align-icon-center i:nth-child(odd) {
    width: 14px;
}

.sp-align-icon-center i:nth-child(even) {
    width: 9px;
}


/* right */

.sp-align-icon-right {
    align-items: flex-end;
}

.sp-align-icon-right i:nth-child(odd) {
    width: 14px;
}

.sp-align-icon-right i:nth-child(even) {
    width: 9px;
}


/* justify */

.sp-align-icon-justify i {
    width: 14px;
}


/* dark mode */

.dark .sp-align-toolbar {
    border-top-color: rgba(255,255,255,.08);
}

.dark .sp-align-toolbar-label {
    color: #94a3b8;
}

.dark .sp-align-button {
    color: #cbd5e1;
}

.dark .sp-align-button:hover {
    background: rgba(255,255,255,.06);
    color: #34d399;
}
