/**
 * assets/css/chat_page/notes.css
 * AbraCollab Notes & Notecards — BrightSaaS Design System Styling
 * Full Dark Mode & High Contrast Compatibility
 */

/* ── 1. ASIDE SIDEBAR (Column 1) ─────────────────────────────────── */
.notes_management_module {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

body.dark_mode .notes_management_module {
    background: #0b0f19 !important;
    color: #e2e8f0 !important;
}

body.light_mode .notes_management_module {
    background: #ffffff !important;
    color: #334155 !important;
}

.notes_sidebar_view {
    display: flex;
    flex-direction: column;
    height: calc(100% - 60px);
    overflow-y: auto;
    padding: 16px 14px;
}

body.dark_mode .notes_sidebar_view {
    background: #0b0f19 !important;
}

body.light_mode .notes_sidebar_view {
    background: #ffffff !important;
}

.notes_sidebar_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 0 4px;
}

.notes_header_title_wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notes_header_icon {
    font-size: 22px;
    color: #6366f1;
}

.notes_view_title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

body.dark_mode .notes_view_title {
    color: #ffffff !important;
}

body.light_mode .notes_view_title {
    color: #0f172a !important;
}

.notes_view_actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.notes_btn_icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.dark_mode .notes_btn_icon {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #cbd5e1 !important;
}

body.dark_mode .notes_btn_icon:hover {
    background: rgba(99, 102, 241, 0.25) !important;
    color: #ffffff !important;
    border-color: #6366f1 !important;
}

body.light_mode .notes_btn_icon {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}

body.light_mode .notes_btn_icon:hover {
    background: rgba(99, 102, 241, 0.1) !important;
    color: #4338ca !important;
    border-color: #6366f1 !important;
}

/* Quick Search Input (Sidebar) */
.notes_quick_search_wrap {
    position: relative;
    margin-bottom: 14px;
}

.notes_search_icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 13px;
    pointer-events: none;
}

.notes_quick_search_input {
    width: 100%;
    border-radius: 8px;
    padding: 8px 12px 8px 34px;
    height: 38px;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

body.dark_mode .notes_quick_search_input {
    background: #151d30 !important;
    border: 1px solid #1e293b !important;
    color: #ffffff !important;
}

body.dark_mode .notes_quick_search_input::placeholder {
    color: #64748b !important;
}

body.dark_mode .notes_quick_search_input:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3) !important;
    background: #1b253d !important;
}

body.light_mode .notes_quick_search_input {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

body.light_mode .notes_quick_search_input::placeholder {
    color: #94a3b8 !important;
}

body.light_mode .notes_quick_search_input:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15) !important;
    background: #ffffff !important;
}

.notes_search_clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

/* Navigation Lists & Items */
.notes_nav_list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.notes_nav_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.18s ease;
    margin-bottom: 2px;
    font-size: 13.5px;
    user-select: none;
}

body.dark_mode .notes_nav_item {
    color: #cbd5e1 !important;
}

body.dark_mode .notes_nav_item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
}

body.dark_mode .notes_nav_item.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.2)) !important;
    border: 1px solid rgba(99, 102, 241, 0.4) !important;
    color: #ffffff !important;
    font-weight: 600;
}

body.light_mode .notes_nav_item {
    color: #334155 !important;
}

body.light_mode .notes_nav_item:hover {
    background: rgba(99, 102, 241, 0.08) !important;
    color: #4338ca !important;
}

body.light_mode .notes_nav_item.active {
    background: rgba(99, 102, 241, 0.12) !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    color: #4338ca !important;
    font-weight: 600;
}

.notes_nav_main,
.notes_nav_item > span:first-child {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.notes_nav_icon {
    font-size: 15px;
    width: 20px;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    flex-shrink: 0;
}

.notes_nav_item.active .notes_nav_icon {
    color: #818cf8 !important;
}

.notes_nav_label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notes_count_badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
}

body.dark_mode .notes_count_badge {
    background: #1e293b !important;
    color: #94a3b8 !important;
}

body.dark_mode .notes_nav_item.active .notes_count_badge {
    background: #6366f1 !important;
    color: #ffffff !important;
}

body.light_mode .notes_count_badge {
    background: #e2e8f0 !important;
    color: #64748b !important;
}

body.light_mode .notes_nav_item.active .notes_count_badge {
    background: #6366f1 !important;
    color: #ffffff !important;
}

/* Sections */
.notes_section_block {
    margin-top: 14px;
    padding-top: 14px;
}

body.dark_mode .notes_section_block {
    border-top: 1px solid #1e293b !important;
}

body.light_mode .notes_section_block {
    border-top: 1px solid #e2e8f0 !important;
}

.notes_section_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 0 4px;
}

.notes_section_title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b !important;
}

.notes_section_add_btn {
    background: rgba(99, 102, 241, 0.15) !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    color: #a5b4fc !important;
    cursor: pointer;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.notes_section_add_btn:hover {
    background: rgba(99, 102, 241, 0.3) !important;
    border-color: rgba(99, 102, 241, 0.6) !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.notes_section_add_btn i {
    font-size: 11px;
}

/* Inline New Folder Form */
.notes_new_folder_form {
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
}

body.dark_mode .notes_new_folder_form {
    background: #151d30 !important;
    border: 1px solid #1e293b !important;
}

body.light_mode .notes_new_folder_form {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

.notes_new_folder_input {
    width: 100%;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 13px;
    margin-bottom: 8px;
    outline: none;
}

body.dark_mode .notes_new_folder_input {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    color: #ffffff !important;
}

body.light_mode .notes_new_folder_input {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

.notes_folder_color_pickers {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.notes_color_dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.15s ease;
}

.notes_color_dot.selected {
    border-color: #ffffff;
    transform: scale(1.25);
}

.notes_new_folder_actions {
    display: flex;
    gap: 6px;
}

.notes_btn_sm {
    background: #6366f1;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.notes_btn_ghost {
    background: transparent;
}

body.dark_mode .notes_btn_ghost {
    border: 1px solid #334155 !important;
    color: #94a3b8;
}

body.light_mode .notes_btn_ghost {
    border: 1px solid #cbd5e1 !important;
    color: #64748b;
}

.notes_folder_dot {
    width: 10px;
    height: 10px;
    min-width: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    margin: 0 5px;
}

/* Tags Cloud */
.notes_tags_cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 0;
}

.notes_tag_chip {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

body.dark_mode .notes_tag_chip {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #cbd5e1 !important;
}

body.dark_mode .notes_tag_chip:hover {
    background: rgba(99, 102, 241, 0.2) !important;
    color: #ffffff !important;
    border-color: #6366f1 !important;
}

body.dark_mode .notes_tag_chip.active {
    background: rgba(99, 102, 241, 0.35) !important;
    color: #ffffff !important;
    border-color: #818cf8 !important;
    font-weight: 600;
}

body.light_mode .notes_tag_chip {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}

body.light_mode .notes_tag_chip:hover {
    background: rgba(99, 102, 241, 0.1) !important;
    color: #4338ca !important;
    border-color: #6366f1 !important;
}

body.light_mode .notes_tag_chip.active {
    background: rgba(99, 102, 241, 0.15) !important;
    color: #4338ca !important;
    border-color: #6366f1 !important;
    font-weight: 600;
}

.notes_tag_chip:hover {
    background: rgba(99, 102, 241, 0.2) !important;
    color: #ffffff !important;
    border-color: #6366f1 !important;
}

.notes_tag_chip.active {
    background: rgba(99, 102, 241, 0.35) !important;
    color: #ffffff !important;
    border-color: #818cf8 !important;
    font-weight: 600;
}

.notes_tag_count {
    opacity: 0.6;
    font-size: 10px;
}


/* ── 2. MIDDLE VIEW (Column 2: Grid & Editor) ─────────────────────── */
.notes_middle_view {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    background-color: #0b0f19 !important;
    color: #f1f5f9 !important;
    position: relative;
    overflow: hidden;
}

.notes_view_panel {
    display: none;
    flex-direction: column;
    height: 100%;
    width: 100%;
    background: #0b0f19 !important;
}

.notes_view_panel.active {
    display: flex;
}

/* Topbar */
.notes_topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: #0f172a !important;
    border-bottom: 1px solid #1e293b !important;
    gap: 16px;
    flex-wrap: wrap;
}

.notes_topbar_left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notes_grid_back_btn {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #cbd5e1 !important;
    width: 32px;
    height: 32px;
    padding: 0 !important;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notes_grid_back_btn:hover {
    background: rgba(99, 102, 241, 0.2) !important;
    border-color: #6366f1 !important;
    color: #ffffff !important;
}

.notes_grid_back_btn i {
    font-size: 14px;
    line-height: 1;
}

.notes_current_view_title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff !important;
    letter-spacing: -0.02em;
}

.notes_view_count_badge {
    background: #6366f1 !important;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 700;
    min-width: 24px;
    height: 24px;
    line-height: 24px;
    padding: 0 5px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.notes_topbar_center {
    flex: 1;
    max-width: 440px;
    min-width: 200px;
}

.notes_search_box {
    position: relative;
    width: 100%;
}

.notes_search_box > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
}

.notes_search_input {
    width: 100%;
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    border-radius: 24px;
    padding: 9px 36px 9px 38px;
    color: #ffffff !important;
    font-size: 13.5px;
    outline: none;
    transition: all 0.2s ease;
}

.notes_search_input::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

.notes_search_input:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3) !important;
    background: #1b253d !important;
}

.notes_search_clear_btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
}

.notes_topbar_right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Sort Dropdown */
.notes_sort_select {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    border-radius: 20px;
    padding: 7px 32px 7px 14px !important;
    color: #f8fafc !important;
    font-size: 13px;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 14px !important;
}

.notes_sort_select option {
    background: #0f172a !important;
    color: #ffffff !important;
    padding: 8px 12px;
}

/* Active Filter Banner */
.notes_active_filter_banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(99, 102, 241, 0.18) !important;
    border-bottom: 1px solid rgba(99, 102, 241, 0.3) !important;
    padding: 8px 24px;
    color: #e0e7ff;
    font-size: 13px;
}

.filter_banner_clear {
    background: transparent;
    border: none;
    color: #a5b4fc;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.filter_banner_clear:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Notecards Grid Container */
.notes_cards_container {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: #0b0f19 !important;
}

.notes_cards_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

/* Notecard Card */
.notecard_item {
    background: #151d30 !important;
    border: 1px solid #1e293b !important;
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    min-height: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.notecard_item:hover {
    transform: translateY(-3px);
    border-color: #6366f1 !important;
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.5), 0 0 16px -2px rgba(99, 102, 241, 0.25) !important;
    background: #1b253d !important;
}

.notecard_top_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.notecard_folder_badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #cbd5e1 !important;
    background: #1e293b !important;
    padding: 3px 9px;
    border-radius: 10px;
    border: 1px solid #334155;
}

.notecard_folder_badge .folder_dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.notecard_actions_wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}

.notecard_fav_btn {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 15px;
    cursor: pointer;
    padding: 2px;
    transition: all 0.15s ease;
}

.notecard_fav_btn.is_favorite {
    color: #f59e0b;
}

.notecard_fav_btn:hover {
    color: #f59e0b;
    transform: scale(1.15);
}

.notecard_title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 8px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notecard_snippet {
    font-size: 13px;
    color: #94a3b8 !important;
    line-height: 1.5;
    margin-bottom: 14px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.notecard_snippet.notecard_url_snippet {
    margin-bottom: 10px;
    flex: 0 0 auto;
    display: block;
    -webkit-line-clamp: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notecard_url_link {
    color: #818cf8 !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.15s ease, text-decoration 0.15s ease;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notecard_url_link:hover {
    color: #a5b4fc !important;
    text-decoration: underline !important;
}

.notecard_preview_wrap {
    width: 100%;
    margin-bottom: 14px;
    border-radius: 12px;
    overflow: hidden;
    background: #0b0f19;
    border: 1px solid #1e293b;
    aspect-ratio: 16 / 10;
    max-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.notecard_preview_link {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
}

.notecard_preview_thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), filter 0.28s ease;
}

.notecard_preview_wrap:hover .notecard_preview_thumb {
    transform: scale(1.04);
    filter: brightness(1.08);
}

.notecard_tags_row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
}

.notecard_tag_pill {
    font-size: 11px;
    font-weight: 500;
    color: #a5b4fc !important;
    background: rgba(99, 102, 241, 0.18) !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    padding: 2px 8px;
    border-radius: 8px;
}

.notecard_footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #1e293b !important;
    font-size: 11.5px;
    color: #64748b;
}

.notecard_badges {
    display: flex;
    align-items: center;
    gap: 6px;
}

.notecard_pub_badge {
    background: rgba(16, 185, 129, 0.18) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ── Saved Articles Custom Notecard (Folder "Saved Articles" ONLY) ── */
.notecard_item.notecard_saved_article_card {
    background: #141727 !important;
    border: 1.5px solid #3b4169 !important;
    border-radius: 18px !important;
    padding: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease, box-shadow 0.22s ease !important;
}

.notecard_item.notecard_saved_article_card:hover {
    transform: translateY(-3px) !important;
    border-color: #6366f1 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.3) !important;
    background: #181c30 !important;
}

.notecard_saved_article_badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0 !important;
    background: rgba(255, 255, 255, 0.08) !important;
    padding: 5px 14px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    letter-spacing: 0.01em;
}

.notecard_saved_article_badge i {
    font-size: 14px;
    color: #cbd5e1;
}

.notecard_saved_article_card .notecard_fav_btn {
    font-size: 19px;
    color: #717d9a;
}

.notecard_saved_article_card .notecard_fav_btn:hover,
.notecard_saved_article_card .notecard_fav_btn.is_favorite {
    color: #f59e0b;
}

.notecard_saved_article_title {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff !important;
    margin-top: 10px;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notecard_saved_article_snippet {
    font-size: 14px;
    color: #8c97b2 !important;
    margin-bottom: 14px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notecard_saved_article_cover_wrap {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
    background: #101322;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notecard_saved_article_cover_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.notecard_saved_article_card:hover .notecard_saved_article_cover_img {
    transform: scale(1.02);
}

.notecard_saved_article_footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: auto;
    padding-top: 0 !important;
    border-top: none !important;
}

.notecard_saved_article_date {
    font-size: 13px;
    font-weight: 500;
    color: #717c99 !important;
}

/* Empty State */
.notes_empty_state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    max-width: 440px;
    margin: 40px auto;
}

.empty_icon_wrap {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.15) !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #818cf8;
    margin-bottom: 18px;
}

.notes_empty_state h3 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 8px;
}

.notes_empty_state p {
    font-size: 13.5px;
    color: #94a3b8 !important;
    line-height: 1.5;
    margin-bottom: 20px;
}


/* ── 3. NOTECARD EDITOR WORKSPACE ───────────────────────────────── */
.notes_editor_panel {
    background: #0b0f19 !important;
}

.notes_editor_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: #0f172a !important;
    border-bottom: 1px solid #1e293b !important;
    gap: 14px;
    flex-wrap: wrap;
}

.editor_header_left, .editor_header_right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notes_editor_back_btn {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #cbd5e1 !important;
    width: 32px;
    height: 32px;
    padding: 0 !important;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notes_editor_back_btn:hover {
    background: rgba(99, 102, 241, 0.2) !important;
    border-color: #6366f1 !important;
    color: #ffffff !important;
}

.notes_editor_back_btn i {
    font-size: 14px;
    line-height: 1;
}

.notes_folder_selector_wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    border-radius: 8px;
    padding: 5px 12px;
}

.notes_sel_folder_icon {
    color: #818cf8;
    font-size: 14px;
}

.notes_folder_select {
    background: transparent !important;
    border: none !important;
    color: #f8fafc !important;
    font-size: 13px;
    font-weight: 500;
    outline: none;
    cursor: pointer;
}

.notes_folder_select option {
    background: #0f172a !important;
    color: #ffffff !important;
    padding: 6px 10px;
}

/* Auto-save Status */
.notes_autosave_status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
}

.save_indicator_dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    transition: background 0.2s ease;
}

.notes_autosave_status.saving .save_indicator_dot {
    background: #f59e0b;
    animation: pulse 1s infinite;
}

.notes_autosave_status.saving .save_indicator_text {
    color: #f59e0b;
}

/* AI Button & Dropdown */
.notes_ai_menu_wrap {
    position: relative;
}

.notes_ai_btn {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.3)) !important;
    border: 1px solid rgba(168, 85, 247, 0.5) !important;
    color: #e9d5ff !important;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notes_ai_btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.5), rgba(168, 85, 247, 0.5)) !important;
    border-color: #c084fc !important;
    color: #ffffff !important;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.35);
}

.notes_ai_dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 260px;
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
    z-index: 100;
    overflow: hidden;
}

.ai_dropdown_header {
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #c084fc;
    border-bottom: 1px solid #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai_dropdown_items {
    list-style: none;
    padding: 6px 0;
    margin: 0;
}

.ai_dropdown_items li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.ai_dropdown_items li:hover {
    background: rgba(168, 85, 247, 0.2) !important;
}

.ai_dropdown_items li i {
    font-size: 16px;
    color: #c084fc;
    margin-top: 2px;
}

.ai_dropdown_items li div strong {
    display: block;
    font-size: 13px;
    color: #ffffff;
}

.ai_dropdown_items li div span {
    display: block;
    font-size: 11px;
    color: #94a3b8;
}

.notes_editor_btn {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.notes_editor_btn:hover {
    background: #334155 !important;
    color: #ffffff !important;
}

.notes_editor_favorite_btn.is_favorite {
    color: #f59e0b !important;
}

/* More Dropdown */
.notes_more_menu_wrap {
    position: relative;
}

.notes_more_dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 200px;
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
    z-index: 100;
    padding: 6px 0;
}

.notes_more_dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.notes_more_dropdown li {
    padding: 8px 14px;
    font-size: 13px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.notes_more_dropdown li:hover {
    background: #1e293b !important;
    color: #ffffff !important;
}

.notes_more_dropdown li.divider {
    height: 1px;
    background: #1e293b !important;
    padding: 0;
    margin: 4px 0;
}

/* Editor Canvas */
.notes_editor_canvas {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 30px 48px;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    background: #0b0f19 !important;
}

.notes_editor_title_input {
    width: 100%;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    font-size: 28px;
    font-weight: 800;
    color: #ffffff !important;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    padding: 0;
}

.notes_editor_title_input::placeholder {
    color: #475569 !important;
}

/* Tags Bar inside Editor */
.notes_editor_tags_bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #1e293b !important;
}

.notes_tags_icon {
    color: #64748b;
    font-size: 13px;
}

.notes_editor_tags_chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.editor_tag_pill {
    background: rgba(99, 102, 241, 0.2) !important;
    border: 1px solid rgba(99, 102, 241, 0.4) !important;
    color: #c7d2fe !important;
    font-size: 12px;
    padding: 3px 9px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.editor_tag_remove {
    cursor: pointer;
    font-size: 13px;
    color: #a5b4fc;
}

.editor_tag_remove:hover {
    color: #f43f5e;
}

.notes_editor_tag_input_wrap {
    display: inline-flex;
}

.notes_editor_new_tag_input {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #cbd5e1 !important;
    font-size: 12.5px;
    width: 90px;
}

.notes_editor_new_tag_input:focus {
    color: #ffffff !important;
    width: 120px;
}

/* Formatting Toolbar */
.notes_formatting_toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #151d30 !important;
    border: 1px solid #1e293b !important;
    border-radius: 10px;
    padding: 5px 8px;
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.notes_formatting_toolbar button {
    background: transparent !important;
    border: none !important;
    color: #cbd5e1 !important;
    font-size: 14px;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.15s ease;
}

.notes_formatting_toolbar button:hover {
    background: #1e293b !important;
    color: #ffffff !important;
}

.toolbar_sep {
    width: 1px;
    height: 18px;
    background: #1e293b !important;
    margin: 0 4px;
}

/* Content Editable Area */
.notes_editor_content {
    min-height: 340px;
    color: #f1f5f9 !important;
    font-size: 15px;
    line-height: 1.7;
    outline: none;
    word-break: break-word;
    overflow-wrap: break-word;
    display: flow-root !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    position: relative;
}

.notes_editor_content::after {
    content: "";
    display: table;
    clear: both;
}

.notes_editor_content * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.notes_editor_content div,
.notes_editor_content section,
.notes_editor_content article,
.notes_editor_content main,
.notes_editor_content aside,
.notes_editor_content header,
.notes_editor_content footer {
    float: none !important;
    width: auto !important;
    max-width: 100% !important;
}

.notes_editor_content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    display: block;
    margin: 14px 0;
}

.notes_editor_content figure {
    max-width: 100% !important;
    margin: 14px 0;
    float: none !important;
}

.notes_editor_content table {
    max-width: 100% !important;
    width: 100% !important;
    border-collapse: collapse;
    margin: 14px 0;
    overflow-x: auto;
    display: block;
}

.notes_editor_content iframe,
.notes_editor_content video {
    max-width: 100% !important;
}

.notes_editor_content:empty:before {
    content: attr(data-placeholder);
    color: #475569 !important;
    cursor: text;
}

.notes_editor_content h2 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff !important;
    margin: 20px 0 10px 0;
}

.notes_editor_content h3 {
    font-size: 17px;
    font-weight: 600;
    color: #f8fafc !important;
    margin: 16px 0 8px 0;
}

.notes_editor_content p {
    margin-bottom: 12px;
}

.notes_editor_content ul, .notes_editor_content ol {
    margin: 0 0 14px 24px;
}

.notes_editor_content blockquote {
    border-left: 3px solid #6366f1 !important;
    padding-left: 14px;
    color: #94a3b8 !important;
    font-style: italic;
    margin: 14px 0;
}

.notes_editor_content pre {
    background: #0f172a !important;
    border: 1px solid #1e293b !important;
    border-radius: 8px;
    padding: 12px 16px;
    color: #38bdf8 !important;
    font-family: monospace;
    font-size: 13.5px;
    overflow-x: auto;
    margin: 14px 0;
}

.notes_editor_content a {
    color: #38bdf8 !important;
    text-decoration: underline;
}

/* Checklist items in content */
.notes_checklist_item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.notes_checklist_item input[type="checkbox"] {
    margin-top: 4px;
    accent-color: #6366f1;
}

.notes_checklist_item.checked span {
    text-decoration: line-through;
    color: #64748b;
}

/* Linked Tasks Section */
.notes_linked_tasks_section {
    clear: both !important;
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid #1e293b !important;
}

.linked_tasks_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.linked_tasks_title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.linked_task_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #151d30 !important;
    border: 1px solid #1e293b !important;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.linked_task_item:hover {
    background: #1b253d !important;
    border-color: #6366f1 !important;
}

.linked_task_info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.linked_task_status_pill {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 6px;
    color: #ffffff !important;
}


/* ── 4. AI MODAL / DRAWER ───────────────────────────────────────── */
.notes_ai_modal_overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
}

.notes_ai_modal_card {
    background: #0f172a !important;
    border: 1px solid rgba(168, 85, 247, 0.4) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(168, 85, 247, 0.2);
    border-radius: 18px;
    width: 100%;
    max-width: 580px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ai_modal_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #1e293b !important;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15)) !important;
}

.ai_modal_title_wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #c084fc;
    font-size: 16px;
    font-weight: 700;
}

.ai_modal_close_btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}

.ai_modal_body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    background: #0f172a !important;
}

/* Loading */
.ai_modal_loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.ai_spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(168, 85, 247, 0.2);
    border-top-color: #c084fc;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

.ai_loading_msg {
    color: #cbd5e1;
    font-size: 14px;
}

/* Text Result */
.ai_result_preview_box {
    background: #151d30 !important;
    border: 1px solid #1e293b !important;
    border-radius: 12px;
    padding: 16px;
    color: #f1f5f9 !important;
    font-size: 14px;
    line-height: 1.6;
    max-height: 320px;
    overflow-y: auto;
    white-space: pre-wrap;
    margin-bottom: 16px;
}

.ai_modal_actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 14px;
}

/* Tasks Extraction */
.ai_tasks_intro, .ai_ask_intro {
    font-size: 13.5px;
    color: #cbd5e1 !important;
    margin-bottom: 14px;
    line-height: 1.5;
}

.ai_tasks_checklist_container {
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.ai_extracted_task_row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #151d30 !important;
    border: 1px solid #1e293b !important;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 6px;
}

.ai_extracted_task_row input[type="checkbox"] {
    accent-color: #6366f1;
    width: 16px;
    height: 16px;
}

.ai_extracted_task_title {
    flex: 1;
    font-size: 13.5px;
    color: #f1f5f9;
}

.ai_task_prio_badge {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
}

.ai_task_prio_badge.prio_high, .ai_task_prio_badge.prio_urgent {
    background: rgba(244, 63, 94, 0.25) !important;
    color: #fda4af !important;
}

.ai_task_prio_badge.prio_medium {
    background: rgba(245, 158, 11, 0.25) !important;
    color: #fde68a !important;
}

.ai_task_prio_badge.prio_low {
    background: rgba(16, 185, 129, 0.25) !important;
    color: #6ee7b7 !important;
}

.ai_user_prompt_input {
    width: 100%;
    background: #151d30 !important;
    border: 1px solid #334155 !important;
    border-radius: 10px;
    padding: 12px;
    color: #ffffff !important;
    font-size: 14px;
    outline: none;
    resize: vertical;
    margin-bottom: 14px;
}

.ai_user_prompt_input:focus {
    border-color: #c084fc !important;
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.3) !important;
}


/* ── 5. RESPONSIVE BREAKPOINTS ───────────────────────────────────── */
@media (max-width: 768px) {
    .notes_topbar {
        padding: 12px 16px;
    }
    .notes_cards_container {
        padding: 14px;
    }
    .notes_cards_grid {
        grid-template-columns: 1fr;
    }
    .notes_editor_canvas {
        padding: 20px 16px;
    }
    .notes_editor_title_input {
        font-size: 22px;
    }
}

/* ── 6. NOTECARD IN CHAT STREAM ──────────────────────────────────── */
.main .chatbox > .contents > .chat_messages > ul > li > div > .right > .files > div > ul > li > .note-chat-card,
.note-chat-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    background: #151d30 !important;
    border: 1px solid #1e293b !important;
    border-radius: 12px;
    cursor: pointer;
    min-width: 260px;
    max-width: 400px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.note-chat-card:hover {
    border-color: #6366f1 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25), 0 0 12px rgba(99, 102, 241, 0.15) !important;
    background: #192238 !important;
}

.note-chat-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.note-chat-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #818cf8 !important;
    background: rgba(99, 102, 241, 0.15) !important;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.note-chat-perm-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
}

.note-chat-perm-badge.perm-view {
    color: #94a3b8 !important;
    background: rgba(148, 163, 184, 0.12) !important;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.note-chat-perm-badge.perm-comment {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.14) !important;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.note-chat-perm-badge.perm-collab {
    color: #34d399 !important;
    background: rgba(52, 211, 153, 0.14) !important;
    border: 1px solid rgba(52, 211, 153, 0.25);
}

.note-chat-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #f8fafc !important;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.note-chat-snippet {
    font-size: 12.5px;
    color: #94a3b8 !important;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.note-chat-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
    color: #64748b;
}

.note-chat-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: #cbd5e1 !important;
}

.note-author-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.note-chat-tags {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.note-chat-tag {
    font-size: 10.5px;
    color: #a5b4fc !important;
    background: rgba(99, 102, 241, 0.12) !important;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.note-chat-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #64748b;
}

/* ── 7. PERMISSION NOTICE BANNER ─────────────────────────────────── */
.notes_permission_banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(99, 102, 241, 0.12) !important;
    border: 1px solid rgba(99, 102, 241, 0.25) !important;
    border-radius: 10px;
    color: #cbd5e1 !important;
    font-size: 13px;
    margin-bottom: 16px;
}

.notes_permission_banner i {
    font-size: 16px;
    color: #818cf8;
}

.notes_permission_banner strong {
    color: #ffffff;
}

/* ── 8. NOTECARD COMMENTS & DISCUSSION ───────────────────────────── */
.notes_comments_section {
    clear: both !important;
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #1e293b;
}

.notes_comments_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.notes_comments_title {
    font-size: 15px;
    font-weight: 700;
    color: #f8fafc !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.notes_comments_title i {
    color: #6366f1;
    font-size: 17px;
}

.notes_comments_list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.notes_comment_item {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: #111827 !important;
    border: 1px solid #1e293b !important;
    border-radius: 12px;
    transition: border-color 0.2s ease;
}

.notes_comment_item:hover {
    border-color: #334155 !important;
}

.notes_comment_avatar_wrap {
    flex-shrink: 0;
}

.notes_comment_avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #334155;
}

.notes_comment_body {
    flex: 1;
    min-width: 0;
}

.notes_comment_top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.notes_comment_author {
    font-size: 13.5px;
    font-weight: 700;
    color: #f1f5f9 !important;
}

.notes_comment_meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.notes_comment_time {
    font-size: 11.5px;
    color: #64748b;
}

.notes_comment_delete_btn {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 13px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.notes_comment_delete_btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.notes_comment_text {
    font-size: 13px;
    color: #cbd5e1 !important;
    line-height: 1.5;
    word-break: break-word;
}

.notes_no_comments {
    text-align: center;
    padding: 28px 16px;
    color: #64748b;
    font-size: 13px;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 10px;
    border: 1px dashed #1e293b;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.notes_no_comments i {
    font-size: 24px;
    color: #475569;
}

/* New Comment Input Box */
.notes_comment_input_box {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #111827 !important;
    border: 1px solid #1e293b !important;
    border-radius: 12px;
}

.notes_comment_author_avatar {
    flex-shrink: 0;
}

.notes_my_avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #334155;
}

.notes_comment_input_wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notes_new_comment_textarea {
    width: 100%;
    background: #0b0f19 !important;
    border: 1px solid #1e293b !important;
    border-radius: 8px;
    padding: 10px 14px;
    color: #f8fafc !important;
    font-size: 13.5px;
    outline: none;
    resize: vertical;
    min-height: 54px;
    transition: all 0.2s ease;
}

.notes_new_comment_textarea:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2) !important;
}

.notes_comment_input_actions {
    display: flex;
    justify-content: flex-end;
}

.notes_submit_comment_btn {
    font-size: 12.5px !important;
    padding: 6px 18px !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.notes_comments_disabled_notice {
    padding: 12px 16px;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid #1e293b;
    border-radius: 8px;
    color: #94a3b8;
    font-size: 12.5px;
    text-align: center;
}


