/* ===== CONTENT LIST ===== */
.content-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 720px;
    margin: 0 auto;
}

/* ===== TABS ===== */
.tabs-wrap {
    max-width: 720px;
    margin: 0 auto 20px;
}

.tabs {
    display: flex;
    gap: 6px;
    background: var(--surface-2, #f3f4f6);
    padding: 4px;
    border-radius: 10px;
    width: fit-content;
}

.tab {
    padding: 7px 18px;
    border-radius: 7px;
    border: none;
    background: transparent;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted, #6b7280);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.tab.active {
    background: #fff;
    color: var(--blue, #3b82f6);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* ===== CONTENT CARD ===== */
.content-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--surface, #fff);
    border: 1.5px solid var(--border, #e5e7eb);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
    animation: fadeUp 0.3s ease both;
}

.content-card:hover {
    border-color: var(--blue, #3b82f6);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.10);
    transform: translateY(-2px);
}

.content-card.is-playing {
    border-color: var(--blue, #3b82f6);
    background: var(--blue-light, #eff6ff);
}

/* Type icon circle */
.content-type-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-video {
    background: #eff6ff;
    color: #3b82f6;
}

.icon-pdf {
    background: #fef2f2;
    color: #ef4444;
}

.content-info {
    flex: 1;
    min-width: 0;
}

.content-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text, #111827);
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.content-type-label {
    font-size: 0.78rem;
    color: var(--text-muted, #6b7280);
    margin: 0;
}

.content-action {
    flex-shrink: 0;
    color: var(--text-muted, #9ca3af);
}

/* ===== VIDEO PLAYER ===== */
.player-wrap {
    max-width: 720px;
    margin: 0 auto 24px;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #1f2937;
    border-bottom: none;
    gap: 8px;
    flex-wrap: wrap;
}

.player-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    flex: 1;
}

.player-close {
    flex-shrink: 0;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    color: #ffffff;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: background 0.15s;
}

.player-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.player-wrap.hidden {
    display: none;
}

.player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--surface, #fff);
    border-bottom: 1px solid var(--border, #e5e7eb);
}

.player-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text, #111827);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.player-close {
    flex-shrink: 0;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-muted, #6b7280);
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.player-close:hover {
    color: var(--text, #111827);
}

.player-iframe-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.player-iframe-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== SKELETON ===== */
.content-skeleton {
    height: 72px;
    border-radius: 12px;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}

.no-results {
    text-align: center;
    color: var(--text-muted, #6b7280);
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.no-results.hidden {
    display: none;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== NOTES SECTION ===== */
.notes-wrap {
    max-width: 720px;
    margin: 0 auto 32px;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    animation: fadeUp 0.3s ease both;
}

.notes-wrap.hidden {
    display: none;
}

.notes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    gap: 12px;
    flex-wrap: wrap;
}

.notes-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notes-title svg {
    flex-shrink: 0;
}

.notes-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.notes-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.notes-btn svg {
    flex-shrink: 0;
}

.notes-btn-primary {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

.notes-btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

.notes-btn-primary:active {
    transform: translateY(0);
}

.notes-btn-secondary {
    background: #ffffff;
    color: #6b7280;
    border-color: #e5e7eb;
}

.notes-btn-secondary:hover {
    background: #f3f4f6;
    color: #111827;
    border-color: #d1d5db;
}

.notes-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.toolbar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 6px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.toolbar-btn svg {
    pointer-events: none;
}

.toolbar-btn:hover {
    background: #f3f4f6;
    color: #111827;
    border-color: #e5e7eb;
}

.toolbar-btn:active,
.toolbar-btn.active {
    background: #eff6ff;
    color: #3b82f6;
    border-color: #bfdbfe;
}

.toolbar-divider {
    width: 1px;
    height: 24px;
    background: #e5e7eb;
    margin: 0 6px;
    flex-shrink: 0;
}

.notes-editor {
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #111827;
    outline: none;
    background: #ffffff;
}

.notes-editor:empty:before {
    content: attr(placeholder);
    color: #9ca3af;
    pointer-events: none;
    font-style: italic;
}

.notes-editor:focus {
    background: #fafbfc;
}

.notes-editor b,
.notes-editor strong {
    font-weight: 600;
    color: #1f2937;
}

.notes-editor i,
.notes-editor em {
    font-style: italic;
}

.notes-editor u {
    text-decoration: underline;
}

.notes-editor ul,
.notes-editor ol {
    margin: 10px 0;
    padding-left: 28px;
}

.notes-editor li {
    margin: 6px 0;
}

.notes-editor p {
    margin: 8px 0;
}

.notes-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 12px 20px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.notes-auto-save {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #6b7280;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.notes-auto-save svg {
    color: #10b981;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .notes-header {
        flex-direction: column;
        align-items: stretch;
    }

    .notes-actions {
        width: 100%;
    }

    .notes-btn {
        flex: 1;
    }

    .notes-toolbar {
        padding: 10px 12px;
    }

    .notes-editor {
        padding: 16px;
        font-size: 0.9rem;
    }
}

.notes-collapsible {
    transition: max-height 0.35s ease, opacity 0.3s ease;
    max-height: 600px;
    opacity: 1;
    overflow: hidden;
}

.notes-collapsible.collapsed {
    max-height: 0;
    opacity: 0;
}

.notes-wrap.minimized .notes-header {
    border-bottom: none;
}

#minimizeNotes svg {
    transition: transform 0.3s ease;
}

.notes-wrap.minimized #minimizeNotes svg {
    transform: rotate(180deg);
}

#minimizeNotes {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Search input focus */
#contentSearch:focus {
    border-color: var(--blue, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

/* No results - search specific */
.no-results-search {
    text-align: center;
    color: var(--text-muted, #6b7280);
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.no-results-search strong {
    color: var(--text, #111827);
    font-size: 0.95rem;
}

.no-results-search span {
    font-size: 0.83rem;
}

@media (max-width: 768px) {

    input,
    textarea,
    select {
        font-size: 16px !important;
    }
}

.note-card-body ol,
.note-card-body ul {
    padding-left: 24px;
    margin: 8px 0;
}

.note-card-body li {
    margin: 4px 0;
    font-size: 0.88rem;
    line-height: 1.7;
    color: #374151;
}

.note-card-body strong,
.note-card-body b {
    font-weight: 600;
    color: #111827;
}

.note-card-body p {
    margin: 6px 0;
}

.note-card-body ol {
    list-style-type: decimal;
}

.note-card-body ul {
    list-style-type: disc;
}