/* Variables específicas del editor (heredan de plane-core.css) */
:root {
    /* Variables adicionales específicas del editor */
    --editor-overlay-bg: rgba(0,0,0,0.8);
    --editor-cursor-color: rgba(255,255,255,0.9);
}

.plane-editor-container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    height: 100%;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    overflow: hidden;
}

.plane-editor-header {
    text-align: center;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(-20px);
}

.plane-editor-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg,var(--accent-1-intense),var(--accent-6-intense));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.plane-editor-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.plane-editor-logo img {
    max-width: 200px;
    max-height: 80px;
    object-fit: contain;
}

.plane-editor-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.plane-editor-main-content {
    display: flex;
    flex-grow: 1;
    gap: 1rem;
    height: calc(100% - 120px);
    min-height: 400px;
    transition: var(--transition-normal);
    opacity: 0;
    transform: translateY(20px);
    position: relative;
}

.plane-editor-editor-container {
    width: 50%;
    background-color: transparent;
    border-radius: var(--border-radius-md);
    box-shadow: none;
    padding: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 10;
}

#plane-editor {
    width: 100%;
    height: 100%;
    background-color: transparent !important;
    border: none !important;
    color: transparent !important;
    caret-color: transparent; /* Cursor completamente invisible */
    font-family: var(--font-main);
    font-size: 1rem;
    line-height: 49px;
    outline: none !important;
    box-shadow: none !important;
    white-space: pre-wrap;
    padding: 0.5rem;
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: auto;
    resize: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
    transition: var(--transition-normal);
    margin-left: 47.5px;
    margin-top: 15.5px;
    text-transform: lowercase; /* Forzar minúsculas */
}

#plane-editor::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

#plane-editor::-webkit-scrollbar-track {
    background: transparent;
}

#plane-editor::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.2);
    border-radius: var(--border-radius-sm);
}

#plane-editor::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255,255,255,0.3);
}

.plane-editor-lyrics-display {
    width: 100%;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    padding: 1rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
    z-index: 5;
}

.plane-editor-lyrics-display::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.plane-editor-lyrics-display::-webkit-scrollbar-track {
    background: transparent;
}

.plane-editor-lyrics-display::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.2);
    border-radius: var(--border-radius-sm);
}

.plane-editor-lyrics-display::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255,255,255,0.3);
}

.stanza {
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    border-radius: var(--border-radius-md);
    background-color: rgba(40,40,40,0.3);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease;
    position: relative;
}



.stanza.active {
    transform: translateY(0);
    opacity: 1;
}

.line {
    display: flex;
    align-items: center;
    margin-bottom: 0.3rem;
    padding: 0.3rem 0.6rem;
    border-radius: var(--border-radius-sm);
    position: relative;
    transition: var(--transition-fast), opacity 0.1s ease, transform 0.1s ease;
    opacity: 0;
    transform: translateX(-10px);
}

.line.active {
    opacity: 1;
    transform: translateX(0);
}

.line:hover {
    background-color: rgba(255,255,255,0.05);
}

.line-text {
    flex-grow: 1;
    padding: 0.1rem 0;
}

.rhyme-structure {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: var(--border-radius-sm);
    margin-right: 0.6rem;
    font-weight: bold;
    font-size: 0.85rem;
    color: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    transform: scale(0);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rhyme-structure.no-rhyme {
    background-color: #2a2a2a !important;
    animation: emoji-pulse 2.5s ease-in-out infinite;
}

@keyframes emoji-pulse {
    0%, 100% { opacity: 0.3; transform: scale(0.95); }
    50% { opacity: 0.9; transform: scale(1.02); }
}

.rhyme-structure.active {
    transform: scale(1);
}

.syllable-count {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: var(--border-radius-sm);
    margin-left: 0.6rem;
    font-weight: bold;
    font-size: 0.85rem;
    color: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    transform: scale(0);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.syllable-count.active {
    transform: scale(1);
}

.tonic-syllable {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.rhyme-word {
    font-weight: 500;
}

.phonetic-tag {
    display: inline-block;
    margin-left: 5px;
    font-size: 0.75rem;
    padding: 2px 4px;
    border-radius: var(--border-radius-sm);
    background-color: rgba(255,255,255,0.1);
    font-family: var(--font-mono);
    color: var(--text-muted);
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.1s ease, transform 0.1s ease;
}

.phonetic-tag.active {
    opacity: 1;
    transform: translateX(0);
}

.plane-editor-stats {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background-color: var(--bg-tertiary);
    border-radius: var(--border-radius-md);
    margin: 0.75rem 0;
    opacity: 0;
    transform: translateY(20px);
}

.plane-editor-stats-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plane-stats-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

#plane-stats-syllables,
#plane-stats-rhymes,
#plane-stats-quality {
    font-weight: bold;
    color: var(--accent-2-intense);
}

#plane-stats-quality {
    color: var(--accent-7-intense);
}

.plane-editor-footer {
    text-align: center;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 0.5rem;
    opacity: 0;
}

.plane-editor-btn-group {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
}

.plane-editor-btn {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--border-radius-sm);
    padding: 0.4rem 0.9rem;
    font-size: 0.9rem;
    cursor: pointer;
    margin-right: 0px;
    margin-bottom: 0px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.plane-editor-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.2);
}

.plane-editor-btn .dashicons {
    margin-right: 5px;
}

.plane-editor-btn svg {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    vertical-align: middle;
    fill: currentColor;
}

/* Estilos para botón de exportación */
.plane-share-download {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.plane-share-download p {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.plane-export-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.plane-export-btn:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.plane-export-btn .dashicons {
    font-size: 18px;
}

.plane-export-btn .dashicons-format-image::before {
    content: "\f128";
}

.plane-editor-btn:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.plane-btn-transition-bounce {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55) !important;
}
.plane-btn-transition-bounce:hover {
    transform: translateY(-6px) !important;
}

.plane-btn-transition-pulse {
    transition: all 0.3s ease !important;
}
.plane-btn-transition-pulse:hover {
    animation: plane-pulse-animation 1s infinite !important;
}
@keyframes plane-pulse-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.plane-btn-transition-scale {
    transition: all 0.3s ease !important;
}
.plane-btn-transition-scale:hover {
    transform: scale(1.1) !important;
}

.plane-btn-transition-rotate {
    transition: all 0.3s ease !important;
}
.plane-btn-transition-rotate:hover {
    transform: rotate(5deg) !important;
}

.plane-btn-transition-sweep {
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}
.plane-btn-transition-sweep:after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%) !important;
    transition: all 0.5s ease !important;
    z-index: -1 !important;
}
.plane-btn-transition-sweep:hover:after {
    left: 100% !important;
}

.plane-btn-transition-shadow {
    transition: all 0.3s ease !important;
}
.plane-btn-transition-shadow:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.3) !important;
}

.plane-btn-transition-glow {
    transition: all 0.3s ease !important;
}
.plane-btn-transition-glow:hover {
    box-shadow: 0 0 10px var(--accent-6-intense), 0 0 20px var(--accent-6-intense) !important;
}

.plane-btn-transition-slide {
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}
.plane-btn-transition-slide:hover {
    padding-right: 20px !important;
    padding-left: 4px !important;
}

.plane-btn-transition-flip {
    perspective: 1000px !important;
    transition: all 0.3s ease !important;
}
.plane-btn-transition-flip:hover {
    transform: rotateX(10deg) rotateY(10deg) !important;
}

.plane-word-verb {
    border-bottom: 1px dotted var(--accent-2-intense);
}

.plane-word-noun {
    border-bottom: 1px dotted var(--accent-4-intense);
}

.plane-word-adjective {
    border-bottom: 1px dotted var(--accent-5-intense);
}

.rhyme-pattern {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-family: var(--font-mono);
    letter-spacing: 1px;
}

.rhyme-pattern-letter {
    display: inline-block;
    width: 18px;
    text-align: center;
    margin-right: 2px;
}

.plane-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1100;
    align-items: center;
    justify-content: center;
    overflow: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.plane-modal.active {
    display: flex;
    opacity: 1;
}

.plane-modal-content {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    padding: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 100000;
    color: var(--text-primary);
    transform: translateY(-30px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.plane-modal.active .plane-modal-content {
    transform: translateY(0);
    opacity: 1;
}

.plane-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.plane-modal-close:hover {
    color: var(--text-primary);
}

.plane-form-group {
    margin-bottom: 15px;
}

.plane-form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.plane-form-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background-color: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.plane-form-group input:focus {
    border-color: var(--accent-6-intense);
    outline: none;
}

.plane-modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* Los botones del editor ahora usan estilos centralizados de plane-core.css */

.plane-share-options {
    margin-top: 20px;
}

.plane-share-link {
    margin-bottom: 20px;
}

.plane-share-input-group {
    display: flex;
    margin: 10px 0;
}

.plane-share-input-group input {
    flex-grow: 1;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background-color: var(--bg-tertiary);
    border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
    color: var(--text-primary);
}

.plane-share-input-group button {
    padding: 8px 15px;
    border: none;
    background-color: var(--accent-6-intense);
    color: white;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.plane-share-input-group button:hover {
    background-color: rgba(170,107,228,0.8);
}

.plane-social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.plane-social-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-fast);
    opacity: 0;
    transform: translateY(10px);
}

.plane-social-btn.active {
    opacity: 1;
    transform: translateY(0);
}

.plane-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.plane-social-btn .dashicons {
    margin-right: 5px;
}

.plane-whatsapp {
    background-color: #25D366;
    color: white;
}

.plane-facebook {
    background-color: #3b5998;
    color: white;
}

.plane-twitter {
    background-color: #1DA1F2;
    color: white;
}

.plane-library-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.plane-library-container h2 {
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(45deg,var(--accent-1-intense),var(--accent-6-intense));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.8rem;
}

.plane-library-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.plane-library-logo img {
    max-width: 200px;
    max-height: 80px;
    object-fit: contain;
}

.plane-library-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.plane-library-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.plane-library-list-container {
    min-height: 300px;
}

.plane-text-card {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    overflow: visible;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.plane-text-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.plane-text-header {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.plane-text-title {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: var(--text-primary);
}

.plane-text-date {
    font-size: 12px;
    color: var(--text-muted);
}

.plane-text-excerpt {
    padding: 15px;
    color: var(--text-muted);
    font-size: 14px;
    min-height: 40px;
    max-height: 60px;
    white-space: pre-line;
    overflow: hidden;
    text-overflow: ellipsis;
}

.plane-text-full-content {
    padding: 15px;
    color: var(--text-primary);
    font-size: 14px;
    white-space: pre-wrap;
    border-top: 1px solid rgba(255,255,255,0.1);
    background-color: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    max-height: 400px;
    overflow-y: auto;
    margin-top: 5px;
    margin-bottom: 5px;
    box-shadow: var(--shadow-sm);
}

.plane-text-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 10px;
    gap: 5px;
    background-color: var(--bg-secondary);
    position: relative;
    z-index: 5;
    border-bottom-left-radius: var(--border-radius-md);
    border-bottom-right-radius: var(--border-radius-md);
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.plane-text-actions .plane-btn {
    flex: 1;
    text-align: center;
    font-size: 12px;
    padding: 5px 10px;
    margin: 2px;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    min-width: 60px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.plane-view-btn {
    background-color: var(--accent-5-intense);
    color: var(--bg-primary);
    border: none;
}

.plane-view-btn:hover {
    background-color: var(--accent-5-intense);
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.plane-edit-btn {
    background-color: var(--accent-2-intense);
    color: var(--bg-primary);
    border: none;
}

.plane-edit-btn:hover {
    background-color: var(--accent-2-intense);
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.plane-delete-btn {
    background-color: var(--accent-1-intense);
    color: var(--bg-primary);
    border: none;
}

.plane-delete-btn:hover {
    background-color: var(--accent-1-intense);
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.plane-delete-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

.plane-delete-modal.active {
    display: flex !important;
    opacity: 1;
}

.plane-delete-content {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    padding: 25px;
    width: 90%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(-30px);
    z-index: 1000000;
    color: var(--text-primary);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.plane-delete-modal.active .plane-delete-content {
    transform: translate(-50%, -50%) translateY(0);
    opacity: 1;
}

.plane-delete-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.plane-delete-cancel {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border-radius: 6px;
    padding: 8px;
}

.plane-delete-confirm {
    background-color: var(--accent-1-intense);
    color: var(--bg-primary);
    border: none;
    border-radius: 6px;
    padding: 8px;
}

#plane-cancel-save,
#plane-confirm-save {
    border-radius: 6px;
    padding: 8px;
}

.plane-loading,
.plane-no-texts,
.plane-error,
.plane-login-required {
    padding: 40px;
    text-align: center;
    background-color: var(--bg-tertiary);
    border-radius: var(--border-radius-md);
    color: var(--text-muted);
    grid-column: 1 / -1;
}

.stanza-pattern-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-top: -8px;
    margin-bottom: 8px;
    font-family: var(--font-mono);
    text-align: left;
}

.stanza-pattern-label .pattern-letter {
    display: inline-block;
    margin-right: 2px;
    font-weight: bold;
}

.feedback-panel {
    background-color: rgba(0,0,0,0.2);
    border-radius: var(--border-radius-sm);
    padding: 8px 12px;
    margin-top: 5px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.feedback-item {
    margin-bottom: 4px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.feedback-item.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes highlight-pulse {
    0% { background-color: transparent; }
    50% { background-color: var(--highlight-1); }
    100% { background-color: transparent; }
}

.highlight-new {
    animation: highlight-pulse 1.5s ease;
}

.quality-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: var(--accent-2-intense);
    color: white;
    font-weight: bold;
    margin-left: 0.5rem;
}

@media (max-width: 768px) {
    .plane-editor-container {
        padding: 0.5rem;
        margin: 0 auto;
        width: 95%;
        max-width: 95%;
    }
    
    .plane-editor-main-content {
        gap: 0.5rem;
        height: auto;
        flex-direction: column;
    }
    
    .plane-editor-editor-container,
    .plane-editor-lyrics-display {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0.5rem;
    }
    
    .plane-editor-editor-container {
        min-height: 150px;
        max-height: none;
        height: auto;
        overflow-y: visible;
        overflow-x: visible;
    }
    
    /* Espaciado para textarea - simular espacio entre párrafos */
    #plane-editor {
        font-family: var(--font-main);
        font-size: 0.94rem; /* Reducido en 1px desde 1.025rem */
        line-height: 29px; /* Ajustado a 29px como solicitado */
        min-height: 150px;
        max-height: none; /* Permitir crecimiento infinito */
        height: auto;
        width: calc(100% - 63.4px) !important; /* 100% menos márgenes */
        max-width: calc(100% - 63.4px) !important;
        padding: 0.3rem;
        overflow-y: visible; /* Sin scroll en móviles */
        overflow-x: hidden; /* Ocultar scroll horizontal */
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: normal; /* Mantener palabras completas */
        scrollbar-width: none; /* Ocultar scrollbar */
        margin-left: 31.7px; /* 0.2px a la derecha desde 31.5px */
        margin-top: 22.3px; /* 7px adicionales hacia abajo desde 15.3px */
        text-transform: lowercase; /* Forzar minúsculas */
        -ms-overflow-style: none; /* IE y Edge */
        scrollbar-width: none; /* Firefox */
    }
    
    /* Ocultar scrollbar en webkit */
    #plane-editor::-webkit-scrollbar {
        display: none;
    }
    
    .plane-editor-lyrics-display {
        font-family: var(--font-main);
        font-size: 0.94rem; /* Reducido en 1px para consistencia */
        min-height: 200px;
        max-height: none;
        height: auto;
        overflow-y: visible;
        overflow-x: visible;
        scrollbar-width: none;
        word-wrap: break-word;
        word-break: normal; /* Mantener palabras completas */
        overflow-wrap: break-word;
    }
    
    .plane-editor-stats {
        flex-direction: column;
        gap: 0.4rem;
        padding: 0.5rem;
    }
    
    #plane-editor::-webkit-scrollbar,
    .plane-editor-lyrics-display::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }
    
    .stanza {
        margin-bottom: 0.8rem;
        padding: 0.3rem;
    }
    
    .line {
        margin-bottom: 0.15rem; /* Volver al valor original */
        padding: 0.15rem 0.3rem;
    }
    
    .rhyme-structure, .syllable-count {
        width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 0.7rem;
    }
    
    .plane-editor-btn {
        padding: 0.2rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .plane-editor-btn-group {
        justify-content: center;
    }
    
    .plane-library-list {
        grid-template-columns: 1fr;
    }
    
    .plane-library-list-container {
        overflow-x: visible;
    }
    
    .plane-social-buttons {
        flex-direction: column;
    }
    
    .plane-modal-content {
        width: 95%;
        padding: 15px;
    }
    
    .plane-delete-content {
        width: 95%;
        max-width: 95%;
        padding: 15px;
        top: 20%;
        transform: translate(-50%, 0) translateY(-30px);
    }
    
    .plane-delete-modal.active .plane-delete-content {
        transform: translate(-50%, 0) translateY(0);
    }
}

body.light-theme .plane-editor-container {
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eaeaea;
    --text-primary: #333333;
    --text-muted: #666666;
    --text-dark: #000000;
}

/* Estilos específicos para el modo editor fantasma */
.ghost-editor-active .plane-editor-editor-container {
    pointer-events: auto;
    backdrop-filter: none;
}

.ghost-editor-active .plane-editor-lyrics-display {
    pointer-events: none;
}

/* Cursor personalizado */
.custom-cursor {
    position: absolute;
    width: 2px;
    height: 1.4em;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 15;
    display: block;
    animation: cursor-blink 1s infinite;
    transform-origin: center;
}

@keyframes cursor-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Ancho fijo para modales en escritorio */
@media (min-width: 769px) {
    .plane-modal-content {
        max-width: 500px !important;
    }
}

/* Estilos para botón de perfil */
#plane-editor-profile-btn {
    background-color: var(--accent-5-intense, #6be4e4);
    color: var(--bg-primary, #000);
}

#plane-editor-profile-btn:hover {
    background-color: var(--accent-5-muted, #5bd4d4);
    box-shadow: 0 4px 12px rgba(107, 228, 228, 0.4);
    transform: translateY(-2px);
}

.plane-profile-btn {
    background-color: var(--accent-5-intense, #6be4e4);
    color: var(--bg-primary, #000);
}

.plane-profile-btn:hover {
    background-color: var(--accent-5-muted, #5bd4d4);
    color: var(--bg-primary, #000);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 228, 228, 0.4);
}

/* Estilos para el nuevo popup de compartir */
.plane-share-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.plane-share-option-btn {
    flex: 1;
    padding: 12px 20px;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.plane-share-option-btn:hover {
    background-color: var(--accent-6-intense);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.plane-share-option-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.plane-share-option-btn .dashicons {
    font-size: 18px;
}

#plane-share-link-section {
    margin-top: 20px;
}

#plane-share-link-section p {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.plane-primary-btn {
    background-color: var(--accent-6-intense);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.plane-primary-btn:hover {
    background-color: var(--accent-6-muted);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.plane-primary-btn .dashicons {
    font-size: 20px;
}

/* Botón de descarga de imagen mejorado */
.plane-export-btn {
    background-color: var(--accent-2-intense);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.plane-export-btn:hover {
    background-color: var(--accent-2-muted);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.plane-export-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.plane-export-btn .dashicons-download::before {
    content: "\f316";
}

/* Responsive para el nuevo popup */
@media (max-width: 768px) {
    .plane-share-buttons {
        flex-direction: column;
    }
    
    .plane-share-option-btn {
        width: 100%;
    }
}

/* Fix para pestañas móviles - eliminar espacio inferior */
@media (max-width: 768px) {
    /* Ajuste general para navegación inferior móvil */
    body {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* Eliminar espacio de pestañas inferiores */
    .mobile-nav, 
    .bottom-nav, 
    .tab-nav, 
    nav[class*="bottom"], 
    nav[class*="mobile"],
    div[class*="bottom-nav"],
    div[class*="mobile-nav"],
    div[class*="tab-nav"],
    .tabs-mobile,
    .mobile-tabs,
    .bottom-tabs,
    .app-tabs,
    .app-navigation {
        bottom: 0 !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Fix específico para contenedores de navegación */
    .mobile-navigation,
    .bottom-navigation,
    .tab-navigation,
    .nav-tabs-mobile,
    .navigation-tabs,
    .app-nav-tabs {
        position: fixed !important;
        bottom: 0 !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Asegurar que las pestañas estén pegadas al fondo */
    nav:last-child,
    .nav:last-child,
    div[class*="nav"]:last-of-type,
    footer nav,
    footer .nav,
    footer .tabs {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        bottom: 0 !important;
    }
    
    /* Eliminar espacios en contenedores padre */
    #page,
    #content,
    .site-content,
    .content-area,
    main,
    .wrapper,
    .container,
    .main-container {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* Fix para elementos con position fixed al bottom */
    [style*="position: fixed"][style*="bottom"],
    [style*="position:fixed"][style*="bottom"],
    .fixed-bottom,
    [class*="fixed-bottom"] {
        bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* Fix adicional para pestañas con texto específico */
    a:contains("rhymake"),
    a:contains("mis letras"),
    a:contains("recursos"), 
    a:contains("soporte"),
    [href*="rhymake"],
    [href*="letras"],
    [href*="recursos"],
    [href*="soporte"] {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Forzar altura completa sin espacios */
    html,
    body {
        height: 100% !important;
        min-height: 100% !important;
    }
    
    /* Eliminar padding/margin de footer */
    footer,
    .footer,
    #footer,
    .site-footer {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
}
