/* Editor HTML Simple - Estilos */

.html-editor {
    border: 2px solid #003366;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    font-family: Arial, sans-serif;
}

.html-editor-toolbar {
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    border-bottom: 1px solid #ccc;
    padding: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.toolbar-group {
    display: flex;
    gap: 4px;
    align-items: center;
}

.toolbar-separator {
    width: 1px;
    height: 24px;
    background: #ccc;
}

.toolbar-btn {
    background: white;
    border: 1px solid #003366;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    color: #003366;
    transition: all 0.2s;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toolbar-btn:hover {
    background: #e6f2ff;
    border-color: #0066cc;
    transform: translateY(-1px);
}

.toolbar-btn:active {
    background: #cce5ff;
    transform: translateY(0);
}

.toolbar-select {
    background: white;
    border: 1px solid #003366;
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 13px;
    cursor: pointer;
    color: #003366;
    height: 32px;
}

.toolbar-select:hover {
    border-color: #0066cc;
    background: #f8f8f8;
}

.toolbar-select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 4px rgba(0, 102, 204, 0.3);
}

.toolbar-color {
    width: 40px;
    height: 32px;
    border: 1px solid #003366;
    border-radius: 4px;
    cursor: pointer;
    background: white;
    padding: 2px;
}

.toolbar-color:hover {
    border-color: #0066cc;
}

.html-editor-content {
    padding: 15px;
    min-height: 200px;
    max-height: 500px;
    overflow-y: auto;
    background: white;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.html-editor-content:focus {
    outline: none;
}

.html-editor-content p {
    margin: 0 0 10px 0;
}

.html-editor-content ul,
.html-editor-content ol {
    margin: 0 0 10px 20px;
    padding-left: 20px;
}

.html-editor-content li {
    margin-bottom: 5px;
}

.html-editor-footer {
    background: #f5f5f5;
    border-top: 1px solid #ccc;
    padding: 8px 15px;
    display: flex;
    justify-content: flex-end;
}

.char-count {
    font-size: 12px;
    color: #666;
    font-weight: bold;
}

/* Botón flotante de comentarios */
.comment-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066cc, #003366);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 15000;
    transition: all 0.3s;
}

.comment-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.comment-float-btn img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

/* Modal de comentarios */
.comment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 20000;
    align-items: center;
    justify-content: center;
}

.comment-modal.active {
    display: flex;
}

.comment-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.comment-modal-header {
    background: linear-gradient(135deg, #003366, #0066cc);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-modal-header h2 {
    margin: 0;
    font-size: 24px;
}

.comment-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.comment-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.comment-modal-body {
    padding: 25px;
}

.comment-form-group {
    margin-bottom: 20px;
}

.comment-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #003366;
    font-size: 14px;
}

.comment-form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.comment-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.comment-btn-primary {
    background: linear-gradient(135deg, #006600, #00aa00);
    color: white;
}

.comment-btn-primary:hover {
    background: linear-gradient(135deg, #008800, #00cc00);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.comment-btn-primary:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.comment-btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ccc;
}

.comment-btn-secondary:hover {
    background: #e8e8e8;
}

.comment-success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: none;
}

.comment-success-message.show {
    display: block;
}

.comment-error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: none;
}

.comment-error-message.show {
    display: block;
}
