/* ============================================
   Estilos: Notas de Campaña
   ============================================ */

.notas-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
    min-height: 500px;
}

/* Sidebar */
.notas-sidebar {
    display: flex;
    flex-direction: column;
}

.notas-sidebar input,
.notas-sidebar select {
    width: 100%;
}

.notas-lista {
    list-style: none;
    flex: 1;
    overflow-y: auto;
    max-height: 500px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.notas-item {
    padding: 0.6rem 0.75rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.notas-item:hover {
    border-color: var(--color-text-muted);
    background: var(--color-bg-card-hover);
}

.notas-item-activa {
    border-color: var(--color-primary);
    background: #1a2a1a;
}

.notas-item-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.2rem;
}

.notas-item-cat {
    font-size: 0.9rem;
}

.notas-item-titulo {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--color-text-heading);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notas-pin {
    font-size: 0.75rem;
}

.notas-item-meta {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    margin-bottom: 0.2rem;
}

.notas-item-preview {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notas-vacio {
    text-align: center;
    padding: 1.5rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* Editor */
.notas-editor {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.notas-editor-header {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--color-border);
}

.notas-editor-titulo-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.notas-editor-cat {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.notas-editor-titulo-input {
    flex: 1;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-text-heading);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 0.25rem 0.5rem;
    transition: border-color 0.2s;
}

.notas-editor-titulo-input:hover,
.notas-editor-titulo-input:focus {
    border-color: var(--color-border);
    background: var(--color-bg-input);
    outline: none;
}

.notas-editor-meta {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.notas-editor-acciones {
    display: flex;
    gap: 0.5rem;
}

.notas-editor-contenido {
    flex: 1;
    min-height: 350px;
    padding: 1.2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg-input);
    border: none;
    resize: none;
}

.notas-editor-contenido:focus {
    outline: none;
    background: #0f0f0f;
}

.notas-editor-contenido::placeholder {
    color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .notas-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .notas-lista {
        max-height: 250px;
    }

    .notas-editor-contenido {
        min-height: 250px;
    }
}
