* { box-sizing: border-box; }

:root {
    /* Pure Light Theme Only */
    --np-primary: #2563eb;
    --np-primary-soft: rgba(37, 99, 235, 0.05);
    --np-bg-body: #f8fafc;
    --np-bg-card: #ffffff;
    --np-bg-sidebar: #ffffff;
    --np-text-main: #0f172a;
    --np-text-muted: #64748b;
    --np-border: #e2e8f0;
    --np-radius: 8px;
    --np-transition: all 0.15s ease;
}

body {
    background-color: var(--np-bg-body) !important;
    color: var(--np-text-main) !important;
    margin: 0;
    font-family: Inter, system-ui, -apple-system, sans-serif;
}

.np-sidebar {
    width: 260px;
    background-color: var(--np-bg-sidebar);
    border-right: 1px solid var(--np-border);
    display: flex;
    flex-direction: column;
}

.np-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: var(--np-bg-card);
}

.np-btn, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none !important;
    background-color: var(--np-primary);
    color: white;
}

.np-btn-ghost {
    background: transparent;
    color: var(--np-text-muted);
}

.np-btn-ghost:hover {
    background: var(--np-primary-soft);
    color: var(--np-primary);
}

.np-quota-bar {
    height: 4px;
    background-color: var(--np-border);
    border-radius: 2px;
    overflow: hidden;
}

.np-note-list {
    flex: 1;
    padding: 8px;
    overflow-y: auto;
}

.note-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid transparent;
    background: var(--np-bg-card);
    color: var(--np-text-main);
    cursor: pointer;
    transition: var(--np-transition);
    font: inherit;
}

.note-item:hover { background: #f1f5f9; }
.note-item.active { background: #eff6ff; border-color: var(--np-primary); }

.note-title {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--np-text-main);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.note-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
    color: #94a3b8;
    font-size: 0.72rem;
}

.note-meta span:last-child {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.np-empty-list {
    text-align: center;
    padding: 40px 18px;
    color: #64748b;
    font-size: 0.9rem;
}

.np-empty-state {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    flex-direction: column;
    padding: 40px;
    text-align: center;
}

.np-empty-state h3 {
    color: #475569;
    margin: 0 0 10px;
}

.np-empty-state p {
    max-width: 300px;
    font-size: 0.9rem;
    margin: 0;
}

.np-empty-icon {
    width: 80px;
    height: 80px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 2.5rem;
    color: #cbd5e1;
}

/* RTL Support */
.rtl {
    direction: rtl;
    text-align: right;
    font-family: 'Noto Sans Arabic', Arial, sans-serif;
}

@media (max-width: 560px) {
    .np-note-list {
        padding: 10px;
    }

    .note-item {
        padding: 14px;
        margin-bottom: 10px;
    }
}
