/* Slide preview transition effects */
.transition-fade {
    animation: fadeEffect 1.2s;
}
@keyframes fadeEffect {
    0% { opacity: 1; }
    50% { opacity: 0.2; }
    100% { opacity: 1; }
}
.transition-slide-left {
    animation: slideLeftEffect 1.2s;
}
@keyframes slideLeftEffect {
    0% { transform: translateX(0); }
    50% { transform: translateX(-100px); opacity: 0.5; }
    100% { transform: translateX(0); opacity: 1; }
}
.transition-slide-right {
    animation: slideRightEffect 1.2s;
}
@keyframes slideRightEffect {
    0% { transform: translateX(0); }
    50% { transform: translateX(100px); opacity: 0.5; }
    100% { transform: translateX(0); opacity: 1; }
}
.transition-slide-up {
    animation: slideUpEffect 1.2s;
}
@keyframes slideUpEffect {
    0% { transform: translateY(0); }
    50% { transform: translateY(-60px); opacity: 0.5; }
    100% { transform: translateY(0); opacity: 1; }
}
.transition-slide-down {
    animation: slideDownEffect 1.2s;
}
@keyframes slideDownEffect {
    0% { transform: translateY(0); }
    50% { transform: translateY(60px); opacity: 0.5; }
    100% { transform: translateY(0); opacity: 1; }
}
.transition-zoom {
    animation: zoomEffect 1.2s;
}
@keyframes zoomEffect {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* Custom Text Editor CSS */
.text-editor-component {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafbfc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 0.5rem 0.75rem 0.75rem 0.75rem;
    margin-bottom: 1.5rem;
}
.text-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    background: #f5f5f5;
    border-radius: 8px 8px 0 0;
}
.text-editor-toolbar select,
.text-editor-toolbar input[type="color"] {
    height: 32px;
    border-radius: 4px;
    border: 1px solid #ccc;
    padding: 0 0.5rem;
    font-size: 1rem;
}
.text-editor-toolbar .editor-btn {
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s, border 0.2s;
    color: #333;
}
.text-editor-toolbar .editor-btn:hover {
    background: #e9ecef;
    border-color: #b0b0b0;
}
.text-editor-area {
    min-height: 200px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0 0 8px 8px;
    padding: 1rem;
    font-size: 1rem;
    outline: none;
    transition: border 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.text-editor-area:focus {
    border-color: #007bff;
}
.text-editor-area table {
    border-collapse: collapse;
    width: 100%;
}
.text-editor-area table td, .text-editor-area table th {
    border: 1px solid #ccc;
    padding: 4px 8px;
}
.text-editor-area pre, .text-editor-area code {
    background: #f8f8f8;
    color: #333;
    font-family: 'Fira Mono', 'Consolas', 'Menlo', monospace;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.95em;
}
.text-editor-area img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 4px 0;
}
.text-editor-area hr {
    border: none;
    border-top: 1px solid #bbb;
    margin: 1rem 0;
}
.text-editor-area svg {
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    margin: 0 2px;
}
