/* TinyMCE skin override — PulsInfo.ro admin design system */
/* Integrare vizuală cu Tailwind tokens, light + dark mode */

/* ===== LIGHT MODE ===== */
.tox.tox-tinymce {
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-radius: 0.5rem !important;
    overflow: hidden;
}

.tox .tox-toolbar-overlord,
.tox .tox-toolbar__primary {
    background-color: #F8F9FA !important; /* surface-alt */
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.tox .tox-toolbar__group:not(:last-of-type) {
    border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.tox .tox-tbtn {
    color: #6C757D !important; /* ink-muted */
    border-radius: 0.375rem !important;
}

.tox .tox-tbtn:hover {
    background-color: rgba(0, 0, 0, 0.04) !important;
    color: #1A1A2E !important; /* ink */
}

.tox .tox-tbtn--enabled,
.tox .tox-tbtn--enabled:hover {
    background-color: rgba(29, 53, 87, 0.1) !important; /* brand-navy/10 */
    color: #1D3557 !important; /* brand-navy */
}

.tox .tox-edit-area__iframe {
    background-color: #FFFFFF !important;
}

.tox .tox-statusbar {
    background-color: #F8F9FA !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.tox .tox-statusbar__text-container {
    color: #ADB5BD !important; /* ink-faint */
}

/* ===== DARK MODE ===== */
.dark .tox.tox-tinymce {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.dark .tox .tox-toolbar-overlord,
.dark .tox .tox-toolbar__primary {
    background-color: #192734 !important; /* surface-dark-alt */
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

.dark .tox .tox-toolbar__group:not(:last-of-type) {
    border-right-color: rgba(255, 255, 255, 0.06) !important;
}

.dark .tox .tox-tbtn {
    color: #8899A6 !important; /* ink-dark-muted */
}

.dark .tox .tox-tbtn:hover {
    background-color: rgba(255, 255, 255, 0.06) !important;
    color: #E7E9EA !important; /* ink-dark */
}

.dark .tox .tox-tbtn--enabled,
.dark .tox .tox-tbtn--enabled:hover {
    background-color: rgba(69, 123, 157, 0.2) !important; /* brand-blue/20 */
    color: #457B9D !important; /* brand-blue */
}

.dark .tox .tox-edit-area__iframe {
    background-color: #1E2D3D !important; /* surface-dark-elevated */
}

.dark .tox .tox-statusbar {
    background-color: #192734 !important;
    border-top-color: rgba(255, 255, 255, 0.06) !important;
}

.dark .tox .tox-statusbar__text-container {
    color: #8899A6 !important;
}

/* Dropdowns & dialogs dark mode */
.dark .tox .tox-menu,
.dark .tox .tox-dialog {
    background-color: #192734 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.dark .tox .tox-collection__item {
    color: #E7E9EA !important;
}

.dark .tox .tox-collection__item--active {
    background-color: rgba(255, 255, 255, 0.06) !important;
}

.dark .tox .tox-dialog__header {
    background-color: #192734 !important;
    color: #E7E9EA !important;
}

.dark .tox .tox-dialog__body {
    color: #E7E9EA !important;
}

.dark .tox .tox-textfield,
.dark .tox .tox-selectfield select {
    background-color: #1E2D3D !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #E7E9EA !important;
}
