/* ===================================
   MINIMAL THEME
   =================================== */

.vibrte-wrapper[data-theme="minimal"] {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 2px;
}

.vibrte-wrapper[data-theme="minimal"] .vibrte-menubar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 2px 4px;
}

.vibrte-wrapper[data-theme="minimal"] .vibrte-toolbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 4px 4px;
    gap: 2px;
}

.vibrte-wrapper[data-theme="minimal"] .vibrte-editor {
    background: #ffffff !important;
    color: #1f2937 !important;
    padding: 12px !important;
}

.vibrte-wrapper[data-theme="minimal"] .vibrte-statusbar {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 4px 8px;
    color: #6b7280;
    font-size: 11px;
}

.vibrte-wrapper[data-theme="minimal"] .vibrte-btn {
    background: transparent !important;
    border: none !important;
    color: #6b7280;
    padding: 3px 6px !important;
    min-width: 24px !important;
    height: 24px !important;
}

.vibrte-wrapper[data-theme="minimal"] .vibrte-btn:hover {
    background: #f3f4f6 !important;
    border: none !important;
    color: #1f2937 !important;
}

.vibrte-wrapper[data-theme="minimal"] .vibrte-menu-item {
    color: #374151;
    padding: 4px 10px;
    font-size: 13px;
}

.vibrte-wrapper[data-theme="minimal"] .vibrte-menu-item:hover {
    background: #f9fafb !important;
}

.vibrte-wrapper[data-theme="minimal"] .vibrte-dropdown,
.vibrte-wrapper[data-theme="minimal"] .vibrte-submenu {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    border-radius: 2px;
}

.vibrte-wrapper[data-theme="minimal"] .vibrte-menu-option {
    color: #374151;
    padding: 5px 10px;
    font-size: 13px;
}

.vibrte-wrapper[data-theme="minimal"] .vibrte-menu-option:hover {
    background: #f9fafb !important;
}

.vibrte-wrapper[data-theme="minimal"] select {
    background: transparent;
    border: none;
    color: #374151;
    padding: 3px 6px;
    font-size: 12px;
    border-radius: 2px;
}

.vibrte-wrapper[data-theme="minimal"] select:hover {
    background: #f3f4f6;
}

.vibrte-wrapper[data-theme="minimal"] select:focus {
    outline: none;
    background: #f3f4f6;
}

.vibrte-wrapper[data-theme="minimal"] input[type="color"] {
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 2px;
    padding: 2px;
}

.vibrte-wrapper[data-theme="minimal"] input[type="color"]:hover {
    background: #f3f4f6;
}/**
 * VibeRTE Themes
 * Three beautiful themes: Default, Dark, and Minimal
 * Version 1.0.0
 */

/* ===================================
   DEFAULT THEME
   =================================== */

.vibrte-wrapper[data-theme="default"],
.vibrte-wrapper:not([data-theme]) {
    border: 2px solid #e0e0e0;
    background: #fff;
}

.vibrte-wrapper[data-theme="default"] .vibrte-menubar,
.vibrte-wrapper:not([data-theme]) .vibrte-menubar {
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.vibrte-wrapper[data-theme="default"] .vibrte-toolbar,
.vibrte-wrapper:not([data-theme]) .vibrte-toolbar {
    background: #fafafa;
    border-bottom: 1px solid #e0e0e0;
}

.vibrte-wrapper[data-theme="default"] .vibrte-editor,
.vibrte-wrapper:not([data-theme]) .vibrte-editor {
    background: #fff;
    color: #333;
}

.vibrte-wrapper[data-theme="default"] .vibrte-statusbar,
.vibrte-wrapper:not([data-theme]) .vibrte-statusbar {
    background: #fafafa;
    border-top: 1px solid #e0e0e0;
    color: #666;
}

.vibrte-wrapper[data-theme="default"] .vibrte-btn,
.vibrte-wrapper:not([data-theme]) .vibrte-btn {
    background: white;
    border: 1px solid #ddd;
    color: #333;
}

.vibrte-wrapper[data-theme="default"] .vibrte-btn:hover,
.vibrte-wrapper:not([data-theme]) .vibrte-btn:hover {
    background: #e8e8e8;
}

.vibrte-wrapper[data-theme="default"] .vibrte-menu-item,
.vibrte-wrapper:not([data-theme]) .vibrte-menu-item {
    color: #333;
}

.vibrte-wrapper[data-theme="default"] .vibrte-menu-item:hover,
.vibrte-wrapper:not([data-theme]) .vibrte-menu-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.vibrte-wrapper[data-theme="default"] .vibrte-dropdown,
.vibrte-wrapper:not([data-theme]) .vibrte-dropdown,
.vibrte-wrapper[data-theme="default"] .vibrte-submenu,
.vibrte-wrapper:not([data-theme]) .vibrte-submenu {
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.vibrte-wrapper[data-theme="default"] .vibrte-menu-option,
.vibrte-wrapper:not([data-theme]) .vibrte-menu-option {
    color: #333;
}

.vibrte-wrapper[data-theme="default"] .vibrte-menu-option:hover,
.vibrte-wrapper:not([data-theme]) .vibrte-menu-option:hover {
    background: #f0f0f0;
}

.vibrte-wrapper[data-theme="default"] select,
.vibrte-wrapper:not([data-theme]) select {
    background: white;
    border: 1px solid #ddd;
    color: #333;
}

/* ===================================
   DARK THEME
   =================================== */

.vibrte-wrapper[data-theme="dark"] {
    border: 2px solid #2d3748;
    background: #1a202c!important;
}

.vibrte-wrapper[data-theme="dark"] .vibrte-menubar {
    background: #2d3748!important;
    border-bottom: 1px solid #4a5568;
}

.vibrte-wrapper[data-theme="dark"] .vibrte-toolbar {
    background: #2d3748!important;
    border-bottom: 1px solid #4a5568;
}

.vibrte-wrapper[data-theme="dark"] .vibrte-editor {
    background: #1a202c !important;
    color: #e2e8f0 !important;
}

.vibrte-wrapper[data-theme="dark"] .vibrte-editor[data-placeholder]:empty:before {
    color: #718096 !important;
}

.vibrte-wrapper[data-theme="dark"] .vibrte-statusbar {
    background: #2d3748!important;
    border-top: 1px solid #4a5568;
    color: #a0aec0;
}

.vibrte-wrapper[data-theme="dark"] .vibrte-btn {
    background: #4a5568!important;
    border: 1px solid #4a5568;
    color: #e2e8f0;
}

.vibrte-wrapper[data-theme="dark"] .vibrte-btn:hover {
    background: #5a6778 !important;
    border-color: #5a6778;
}

.vibrte-wrapper[data-theme="dark"] .vibrte-menu-item {
    color: #e2e8f0;
}

.vibrte-wrapper[data-theme="dark"] .vibrte-menu-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.vibrte-wrapper[data-theme="dark"] .vibrte-dropdown,
.vibrte-wrapper[data-theme="dark"] .vibrte-submenu {
    background: #2d3748!important;
    border: 1px solid #4a5568;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.vibrte-wrapper[data-theme="dark"] .vibrte-menu-option {
    color: #e2e8f0;
}

.vibrte-wrapper[data-theme="dark"] .vibrte-menu-option:hover {
    background: #4a5568 !important;
}

.vibrte-wrapper[data-theme="dark"] select {
    background: #4a5568!important;
    border: 1px solid #4a5568;
    color: #e2e8f0!important;
}

.vibrte-wrapper[data-theme="dark"] select option {
    background: #2d3748!important;
}

.vibrte-wrapper[data-theme="dark"] input[type="color"] {
    border: 1px solid #4a5568;
    background: #4a5568!important;
}

.vibrte-wrapper[data-theme="dark"] .vibrte-editor a {
    color: #63b3ed;
}

.vibrte-wrapper[data-theme="dark"] .vibrte-editor blockquote {
    border-left-color: #4a5568;
    background: #2d3748;
    color: #a0aec0;
}

.vibrte-wrapper[data-theme="dark"] .vibrte-editor code {
    background: #2d3748;
    color: #f687b3;
}

.vibrte-wrapper[data-theme="dark"] .vibrte-editor pre {
    background: #2d3748;
    color: #e2e8f0;
}

.vibrte-wrapper[data-theme="dark"] .vibrte-editor table td,
.vibrte-wrapper[data-theme="dark"] .vibrte-editor table th {
    border-color: #4a5568;
}

.vibrte-wrapper[data-theme="dark"] .vibrte-modal {
    background: rgba(0, 0, 0, 0.8);
}

.vibrte-wrapper[data-theme="dark"] .vibrte-modal > div {
    background: #2d3748;
    color: #e2e8f0;
}

.vibrte-wrapper[data-theme="dark"] .vibrte-picker-item {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

.vibrte-wrapper[data-theme="dark"] .vibrte-picker-item:hover {
    background: #4a5568 !important;
}

/* Dark theme SVG icons */
.vibrte-wrapper[data-theme="dark"] svg {
    color: #e2e8f0;
}

/* ===================================
   MINIMAL THEME
   =================================== */

.vibrte-wrapper[data-theme="minimal"] {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 4px;
}

.vibrte-wrapper[data-theme="minimal"] .vibrte-menubar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 3px 8px;
}

.vibrte-wrapper[data-theme="minimal"] .vibrte-toolbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 6px 8px;
    gap: 3px;
}

.vibrte-wrapper[data-theme="minimal"] .vibrte-editor {
    background: #ffffff;
    color: #1f2937;
    padding: 15px;
}

.vibrte-wrapper[data-theme="minimal"] .vibrte-statusbar {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 5px 12px;
    color: #6b7280;
    font-size: 11px;
}

.vibrte-wrapper[data-theme="minimal"] .vibrte-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #4b5563;
    padding: 4px 8px;
    min-width: 28px;
    height: 28px;
}

.vibrte-wrapper[data-theme="minimal"] .vibrte-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.vibrte-wrapper[data-theme="minimal"] .vibrte-menu-item {
    color: #374151;
    padding: 5px 12px;
    font-size: 13px;
}

.vibrte-wrapper[data-theme="minimal"] .vibrte-menu-item:hover {
    background: #f9fafb;
}

.vibrte-wrapper[data-theme="minimal"] .vibrte-dropdown,
.vibrte-wrapper[data-theme="minimal"] .vibrte-submenu {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
}

.vibrte-wrapper[data-theme="minimal"] .vibrte-menu-option {
    color: #374151;
    padding: 6px 12px;
    font-size: 13px;
}

.vibrte-wrapper[data-theme="minimal"] .vibrte-menu-option:hover {
    background: #f9fafb;
}

.vibrte-wrapper[data-theme="minimal"] select {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 4px 8px;
    font-size: 13px;
    border-radius: 4px;
}

.vibrte-wrapper[data-theme="minimal"] select:hover {
    border-color: #9ca3af;
}

.vibrte-wrapper[data-theme="minimal"] select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.vibrte-wrapper[data-theme="minimal"] input[type="color"] {
    border: 1px solid #d1d5db;
    width: 32px;
    height: 26px;
    border-radius: 4px;
}

.vibrte-wrapper[data-theme="minimal"] input[type="color"]:hover {
    border-color: #9ca3af;
}

.vibrte-wrapper[data-theme="minimal"] .vibrte-editor a {
    color: #6366f1;
}

.vibrte-wrapper[data-theme="minimal"] .vibrte-editor blockquote {
    border-left: 3px solid #e5e7eb;
    background: #f9fafb;
    color: #6b7280;
    padding: 8px 12px;
}

.vibrte-wrapper[data-theme="minimal"] .vibrte-editor code {
    background: #f3f4f6;
    color: #dc2626;
    padding: 2px 5px;
    font-size: 0.9em;
}

.vibrte-wrapper[data-theme="minimal"] .vibrte-editor pre {
    background: #f9fafb;
    padding: 12px;
    border: 1px solid #e5e7eb;
}

.vibrte-wrapper[data-theme="minimal"] .vibrte-editor pre code {
    background: none;
    color: #1f2937;
}

.vibrte-wrapper[data-theme="minimal"] .vibrte-editor table td,
.vibrte-wrapper[data-theme="minimal"] .vibrte-editor table th {
    border-color: #e5e7eb;
    padding: 6px;
}

.vibrte-wrapper[data-theme="minimal"] .vibrte-editor h1,
.vibrte-wrapper[data-theme="minimal"] .vibrte-editor h2,
.vibrte-wrapper[data-theme="minimal"] .vibrte-editor h3,
.vibrte-wrapper[data-theme="minimal"] .vibrte-editor h4,
.vibrte-wrapper[data-theme="minimal"] .vibrte-editor h5,
.vibrte-wrapper[data-theme="minimal"] .vibrte-editor h6 {
    color: #111827;
}

.vibrte-wrapper[data-theme="minimal"] .vibrte-modal {
    background: rgba(0, 0, 0, 0.4);
}

.vibrte-wrapper[data-theme="minimal"] .vibrte-picker-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #1f2937;
    padding: 8px;
}

.vibrte-wrapper[data-theme="minimal"] .vibrte-picker-item:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* Minimal theme - cleaner dividers */
.vibrte-wrapper[data-theme="minimal"] .vibrte-toolbar > div[style*="width: 1px"] {
    background: #e5e7eb;
    height: 20px;
}

/* ===================================
   SHARED MODAL STYLES
   =================================== */

.vibrte-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.vibrte-modal > div {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.vibrte-wrapper[data-theme="dark"] .vibrte-modal > div {
    background: #2d3748;
    color: #e2e8f0;
}

.vibrte-wrapper[data-theme="minimal"] .vibrte-modal > div {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* ===================================
   FULLSCREEN MODE
   =================================== */

.vibrte-wrapper.vibrte-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.vibrte-wrapper.vibrte-fullscreen .vibrte-editor {
    max-height: calc(100vh - 180px) !important;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .vibrte-menubar {
        flex-wrap: wrap;
        font-size: 13px;
    }

    .vibrte-toolbar {
        justify-content: flex-start;
    }

    .vibrte-menu-item {
        padding: 6px 10px !important;
    }

    .vibrte-btn {
        min-width: 28px !important;
        height: 28px !important;
        padding: 4px 6px !important;
    }

    .vibrte-statusbar {
        flex-direction: column;
        gap: 5px;
        font-size: 11px;
    }

    select {
        font-size: 12px !important;
        padding: 3px 6px !important;
    }
}

@media (max-width: 480px) {
    .vibrte-menubar {
        display: none; /* Hide menubar on very small screens */
    }

    .vibrte-toolbar {
        gap: 2px !important;
        padding: 5px !important;
    }

    .vibrte-editor {
        padding: 10px !important;
        font-size: 14px !important;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    .vibrte-menubar,
    .vibrte-toolbar,
    .vibrte-statusbar {
        display: none !important;
    }

    .vibrte-wrapper {
        border: none !important;
    }

    .vibrte-editor {
        padding: 0 !important;
        background: white !important;
        color: black !important;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

.vibrte-btn:focus,
.vibrte-menu-item:focus,
select:focus,
input[type="color"]:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.vibrte-wrapper[data-theme="dark"] .vibrte-btn:focus,
.vibrte-wrapper[data-theme="dark"] .vibrte-menu-item:focus,
.vibrte-wrapper[data-theme="dark"] select:focus {
    outline-color: #818cf8;
}

/* Screen reader only content */
.vibrte-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===================================
   ANIMATIONS
   =================================== */

.vibrte-dropdown,
.vibrte-submenu {
    animation: fadeInDown 0.2s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vibrte-modal {
    animation: fadeIn 0.3s ease-out;
}

.vibrte-dropdown span{
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.vibrte-btn,
.vibrte-menu-option,
.vibrte-picker-item {
    transition: all 0.2s ease;
}

/* ===================================
   CUSTOM SCROLLBAR (Webkit)
   =================================== */

.vibrte-editor::-webkit-scrollbar {
    width: 12px;
}

.vibrte-editor::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.vibrte-editor::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 6px;
}

.vibrte-editor::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.vibrte-wrapper[data-theme="dark"] .vibrte-editor::-webkit-scrollbar-track {
    background: #1a202c;
}

.vibrte-wrapper[data-theme="dark"] .vibrte-editor::-webkit-scrollbar-thumb {
    background: #4a5568;
}

.vibrte-wrapper[data-theme="dark"] .vibrte-editor::-webkit-scrollbar-thumb:hover {
    background: #5a6778;
}

.vibrte-wrapper[data-theme="minimal"] .vibrte-editor::-webkit-scrollbar {
    width: 8px;
}

.vibrte-wrapper[data-theme="minimal"] .vibrte-editor::-webkit-scrollbar-track {
    background: #f9fafb;
}

.vibrte-wrapper[data-theme="minimal"] .vibrte-editor::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.vibrte-wrapper[data-theme="minimal"] .vibrte-editor::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}