body {
    font-family: "Hind Siliguri", system-ui, -apple-system, sans-serif;
}

.hidden {
    display: none !important;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border-radius: 8px;
    border: 1px solid;
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.panel {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.06);
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.wrap-header {
    flex-wrap: wrap;
}

.panel-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 3px;
}

input[type="text"],
input[type="url"],
input[type="date"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13.5px;
    background: #fff;
    color: #0f172a;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn-small {
    padding: 5px 10px;
    font-size: 12.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #2563eb);
    color: #fff;
}
.btn-primary:hover {
    filter: brightness(1.05);
}

.btn-secondary {
    background: #1e293b;
    color: #fff;
}
.btn-secondary:hover {
    background: #0f172a;
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #0d9488);
    color: #fff;
}
.btn-success:hover {
    filter: brightness(1.05);
}

.btn-danger {
    background: #ef4444;
    color: #fff;
}

.btn-outline {
    background: #fff;
    color: #334155;
    border-color: #cbd5e1;
}
.btn-outline:hover {
    background: #f8fafc;
}

.chip-btn {
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    color: #4338ca;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.chip-btn:hover {
    background: #4f46e5;
    color: #fff;
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 0;
}

.checkbox-inline input {
    width: auto;
}

.status-banner {
    position: sticky;
    top: 56px;
    z-index: 50;
    max-width: 1248px;
    margin: 8px auto 0;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 10px 24px -6px rgba(15, 23, 42, 0.16);
}
.status-banner.info { background: #eef2ff; color: #3730a3; border: 1px solid #c7d2fe; }
.status-banner.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.status-banner.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.status-banner.warning { background: #fffbeb; color: #92400e; border: 1px solid #fcd34d; }

.inline-warning {
    margin-top: 4px;
    padding: 6px 9px;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
    border-radius: 6px;
    font-size: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    background: #f1f5f9;
    color: #334155;
}
.badge-info { background: #e0e7ff; color: #3730a3; }
.badge-verified { background: #d1fae5; color: #065f46; }
.badge-unverified { background: #fef3c7; color: #92400e; }
.badge-inactive { background: #fae8ff; color: #701a75; }

.entry-item {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    transition: all 0.14s ease;
}
.entry-item:hover {
    border-color: #a5b4fc;
}
.entry-item.selected {
    border-color: #818cf8;
    border-left: 4px solid #4f46e5;
    background: #f5f7ff;
}
.entry-item.trashed {
    opacity: 0.75;
    background: #fff5f5;
}
.entry-check input {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    accent-color: #4f46e5;
    cursor: pointer;
}
.entry-body { flex: 1; min-width: 0; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-bottom: 4px; }
.entry-title { margin: 0 0 2px; font-size: 14px; font-weight: 700; color: #0f172a; }
.entry-details { font-size: 12px; color: #64748b; display: flex; flex-wrap: wrap; gap: 10px; }
.entry-url { font-size: 12px; word-break: break-all; }
.entry-url a { color: #2563eb; text-decoration: none; }
.entry-url a:hover { text-decoration: underline; }
.entry-notes { margin: 4px 0 0; padding: 4px 8px; background: #f8fafc; border-left: 2px solid #6366f1; font-size: 12px; }
.entry-actions { display: flex; flex-direction: column; gap: 4px; }

.category-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    padding: 6px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}
.category-row input[type="text"] {
    flex: 1;
    min-width: 110px;
    padding: 4px 7px;
    font-size: 12.5px;
}

.perm-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.user-card-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 9px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}
.user-card-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.review-box {
    padding: 9px 11px;
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    border-radius: 10px;
}
.review-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 8px;
    background: #fff;
    border-radius: 7px;
}
.review-row-title {
    flex: 1;
    font-size: 12.5px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.review-row select {
    width: auto;
    max-width: 170px;
    padding: 4px 6px;
    font-size: 12px;
}

.report-editor {
    min-height: 320px;
    font-size: 13.5px;
    line-height: 1.6;
    padding: 12px;
    background: #fcfdff;
}

.saved-report-chip {
    padding: 4px 9px;
    border: 1px solid #c7d2fe;
    border-radius: 7px;
    background: #eef2ff;
    color: #3730a3;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}
.saved-report-chip:hover {
    background: #4f46e5;
    color: #fff;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 100;
}
.modal-content {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.help-text {
    font-size: 12px;
    color: #64748b;
}
