/* ==========================================================================
   Notes Manager Styles
   ========================================================================== */

/* Layout */
.notes-manager-container {
    padding: 20px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.notes-manager-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Table */
.notes-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border-radius: 6px;
    overflow: hidden;
    font-size: 15px;
}

.notes-table th,
.notes-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.notes-table th {
    background: #f8f9fa;
    color: #555;
    font-weight: 600;
    white-space: nowrap;
    font-size: 13px;
}

.notes-table th.checkbox-col,
.notes-table td.checkbox-col {
    width: 40px;
}

.notes-table tbody tr:hover {
    background: #f8f9fa;
}

.notes-table tbody tr.selected {
    background: #e3f2fd;
}

.notes-table tbody tr:last-child td {
    border-bottom: none;
}


/* Title cell with importance icon - only clickable in Notes Manager */
.notes-manager-container .note-title-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.notes-manager-container .note-title-cell:hover .note-topic {
    text-decoration: underline;
}

/* In other contexts (NotesView), no click behavior */
.card .note-title-cell {
    display: block;
    cursor: default;
}

.card .note-title-cell:hover .note-topic {
    text-decoration: none;
}

.note-topic {
    font-weight: 500;
    color: #1976d2;
}

/* Importance icon in title */
.note-importance-icon {
    font-size: 12px;
    flex-shrink: 0;
}

.note-importance-icon.warning {
    color: #ff9800;
}

.note-importance-icon.mostimportant {
    color: #f44336;
}

/* Module badge */
.note-module {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* All modules same neutral color */
.note-module {
    background: #f5f5f5;
    color: #555;
}

.note-paragraph {
    font-size: 14px;
    color: #666;
}

.note-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    white-space: nowrap;
}

.note-category i {
    font-size: 13px;
    color: #666;
}

.note-scope {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

.note-product {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

/* Checkboxes */
.select-all-checkbox,
.note-checkbox {
    width: 15px;
    height: 15px;
    cursor: pointer;
    margin: 0;
    vertical-align: middle;
}

/* Buttons - matches btn-add-note from notes-styles.css */
.btn-new-note {
    background-color: #f8f9fa;
    border: 1px solid #6c757d;
    color: #495057;
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-new-note:hover {
    background-color: #e2e6ea;
    border-color: #495057;
    color: #212529;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.btn-new-note i {
    font-size: 12px;
    color: #1565C0;
}

.btn-bulk-delete {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 4px;
    cursor: pointer;
    display: none;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-bulk-delete:hover {
    background: #c82333;
}

.btn-bulk-delete.visible {
    display: inline-flex;
}

.btn-bulk-delete i {
    font-size: 13px;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
    display: block;
}

.empty-state h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: #333;
}

.empty-state p {
    margin: 0;
    color: #666;
}

/* Table filters */
.table-filters {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.filter-group select {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    min-width: 140px;
}

.filter-group select:focus {
    outline: none;
    border-color: #1976d2;
}

.filter-count {
    font-size: 14px;
    color: #888;
    margin-left: auto;
}

/* Filter info banner */
.filter-info {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.filter-info i {
    color: #1976d2;
    font-size: 14px;
}

.filter-info span {
    color: #1565c0;
}

.filter-info strong {
    font-weight: 600;
}
