/* =========================================================
   PAGE HEADER
   ========================================================= */

.nt-main-header {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.75rem;
}

.nt-page-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.nt-page-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

/* TOP NAV BUTTONS */

.nt-top-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nt-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #fbbf24;
    background: transparent;
    color: #0f172a;
    cursor: pointer;
    font-size: 1.2rem;   /* controls icon size */
}

.nt-nav-btn:hover {
    background: #fbbf24;
    color: #0f172a;
}

.nt-nav-btn i {
    display: inline-block;
}

/* =========================================================
   CARD CONTAINERS
   ========================================================= */

.nt-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}

/* =========================================================
   COLLAPSIBLE SECTIONS
   ========================================================= */

.nt-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.nt-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0;
}

.nt-card-title-gold {
    color: #fbbf24;
}

.nt-card-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 16px;
}

/* Chevron toggle (unfilled) */
.nt-section-toggle {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nt-section-toggle i {
    font-size: 1rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.nt-section-header:hover .nt-section-toggle i {
    color: #fbbf24;
}

/* Collapsed / Expanded */
.nt-section-body {
    margin-top: 12px;
}

.nt-section-collapsed .nt-section-body {
    display: none;
}

.nt-section-expanded .nt-section-body {
    display: block;
}

.nt-section-collapsed .nt-section-toggle i {
    transform: rotate(0deg);
}

.nt-section-expanded .nt-section-toggle i {
    transform: rotate(90deg);
}

/* =========================================================
   UNIFIED BUTTON STYLE
   ========================================================= */

.nt-btn-primary,
.nt-btn-outline,
.nt-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #fbbf24;
    background: transparent;
    color: #0f172a;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.nt-btn-primary:hover,
.nt-btn-outline:hover,
.nt-nav-btn:hover {
    background: #fbbf24;
    color: #0f172a;
}

/* =========================================================
   INPUTS
   ========================================================= */

.form-control:focus {
    border-color: #fbbf24;
    box-shadow: 0 0 0 0.25rem rgba(251, 191, 36, 0.25);
}

/* =========================================================
   NOTES LIST
   ========================================================= */

.nt-notes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nt-note-card {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 12px 14px;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.nt-note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.nt-note-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.nt-note-meta {
    font-size: 0.85rem;
    color: #64748b;
}

.nt-note-preview {
    font-size: 0.9rem;
    color: #1e293b;
    margin-top: 6px;
    margin-bottom: 8px;
}

/* Note chevron toggle */
.nt-note-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px 0;
}

.nt-note-toggle:hover {
    color: #fbbf24;
}

.nt-note-toggle i {
    display: inline-block;
    transform-origin: center;
    transition: transform 0.25s ease;
}

.nt-note-card.collapsed .nt-note-toggle i {
    transform: rotate(0deg);
}

.nt-note-card.expanded .nt-note-toggle i {
    transform: rotate(90deg);
}

/* Note details */
.nt-note-details {
    font-size: 0.9rem;
    color: #1e293b;
    margin-top: 6px;
    display: none;
}

.nt-note-card.expanded .nt-note-details {
    display: block;
}

/* Note actions */
.nt-note-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 8px;
}

/* =========================================================
   EMPTY STATE
   ========================================================= */

.nt-empty-state {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    border: 1px dashed #e2e8f0;
    background: #f9fafb;
    color: #64748b;
    font-size: 0.95rem;
}

/* =========================================================
   NOTE COUNT
   ========================================================= */

.nt-note-count {
    font-size: 0.85rem;
    color: #64748b;
}

/* =========================================================
   INFO ICON TOOLTIP
   ========================================================= */

.nt-info-icon {
    color: #64748b;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
}

.nt-info-icon:hover {
    color: #fbbf24;
}

.nt-info-icon[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 24px;
    left: 0;
    background: #898a8b;
    color: #fbbf24;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    width: 260px;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 767.98px) {
    .nt-main-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .nt-top-nav {
        justify-content: flex-start;
    }

    .nt-page-title {
        font-size: 1.4rem;
    }
}

/* MARKDOWN RENDERING */
.nt-markdown {
    font-size: 0.95rem;
    color: #1e293b;
    line-height: 1.5;
}

.nt-markdown h1,
.nt-markdown h2,
.nt-markdown h3 {
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #0f172a;
}

.nt-markdown ul,
.nt-markdown ol {
    margin-left: 1.2rem;
    margin-bottom: 0.75rem;
}

.nt-markdown li {
    margin-bottom: 0.25rem;
}

.nt-markdown code {
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.nt-markdown pre {
    background: #f1f5f9;
    padding: 10px;
    border-radius: 6px;
    overflow-x: auto;
}

.nt-markdown a {
    color: #fbbf24;
    text-decoration: underline;
}

/* Search helper */
.nt-search-help {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 6px;
}

/* Gold input focus */
.form-control:focus {
    border-color: #fbbf24 !important;
    box-shadow: 0 0 0 0.25rem rgba(251, 191, 36, 0.25) !important;
}


