/* ============================================================
   Sudo Knowledge Portal — Main Stylesheet
   ============================================================ */

:root {
    --primary: #1a56db;
    --primary-dark: #1e40af;
    --primary-light: #dbeafe;
    --secondary: #0e7c7b;
    --accent: #f59e0b;
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --info: #3b82f6;
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --text: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --sidebar-bg: #0f172a;
    --sidebar-text: #cbd5e1;
    --sidebar-hover: #1e293b;
    --sidebar-active: #1a56db;
    --sidebar-width: 260px;
    --topbar-height: 64px;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.05);
    --shadow-lg: 0 10px 15px rgba(0,0,0,.08), 0 4px 6px rgba(0,0,0,.04);
    --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0e7c7b 100%);
}

.login-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.login-brand { position: relative; z-index: 1; text-align: center; max-width: 420px; }
.login-brand-logo { width: 80px; height: 80px; background: rgba(255,255,255,.1); border-radius: 20px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; border: 1px solid rgba(255,255,255,.15); backdrop-filter: blur(4px); }
.login-brand-logo svg { width: 44px; height: 44px; color: #fff; }
.login-brand h1 { font-size: 2rem; font-weight: 700; color: #fff; margin-bottom: .5rem; letter-spacing: -0.02em; }
.login-brand p { color: rgba(255,255,255,.65); font-size: .95rem; line-height: 1.7; }
.login-features { margin-top: 2.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; text-align: left; }
.login-feature-item { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-sm); padding: .85rem 1rem; backdrop-filter: blur(4px); }
.login-feature-item svg { width: 18px; height: 18px; color: #60a5fa; margin-bottom: .4rem; }
.login-feature-item span { display: block; color: rgba(255,255,255,.85); font-size: .82rem; font-weight: 500; }

.login-right {
    width: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    background: var(--bg-card);
}

.login-form-wrap { width: 100%; max-width: 380px; }
.login-form-wrap h2 { font-size: 1.6rem; font-weight: 700; color: var(--text); margin-bottom: .4rem; }
.login-form-wrap p { color: var(--text-muted); font-size: .9rem; margin-bottom: 2rem; }

/* ============================================================
   APP LAYOUT
   ============================================================ */
.app-layout { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    position: fixed;
    top: 0; left: 0; bottom: 0;
    overflow-y: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition);
}

.sidebar-brand {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
    display: flex;
    align-items: center;
    gap: .75rem;
}

.sidebar-brand-icon { width: 38px; height: 38px; background: var(--primary); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sidebar-brand-icon svg { width: 22px; height: 22px; color: #fff; }
.sidebar-brand-logo { height: 30px; width: auto; object-fit: contain; flex-shrink: 0; }
.sidebar-brand-name { font-size: .9rem; font-weight: 700; color: #fff; line-height: 1.2; }
.sidebar-brand-sub { font-size: .72rem; color: var(--text-light); font-weight: 400; }

.sidebar-nav { flex: 1; padding: 1rem 0; }
.sidebar-section { padding: 0 1rem .5rem; margin-top: .75rem; }
.sidebar-section-label { font-size: .68rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: .08em; padding: 0 .5rem .5rem; }
.sidebar-item { display: flex; align-items: center; gap: .75rem; padding: .6rem 1rem; border-radius: var(--radius-sm); color: var(--sidebar-text); text-decoration: none; font-size: .88rem; font-weight: 500; transition: all var(--transition); margin: .1rem 0; }
.sidebar-item svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .8; }
.sidebar-item:hover { background: var(--sidebar-hover); color: #fff; }
.sidebar-item:hover svg { opacity: 1; }
.sidebar-item.active { background: var(--sidebar-active); color: #fff; box-shadow: 0 2px 8px rgba(26,86,219,.4); }
.sidebar-item.active svg { opacity: 1; }
.sidebar-badge { margin-left: auto; background: var(--danger); color: #fff; font-size: .68rem; font-weight: 700; padding: .15rem .45rem; border-radius: 999px; min-width: 20px; text-align: center; }

.sidebar-user { padding: 1rem 1.5rem; border-top: 1px solid rgba(255,255,255,.07); display: flex; align-items: center; gap: .75rem; }
.sidebar-user-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-size: .83rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: .72rem; color: var(--text-light); text-transform: capitalize; }
.sidebar-logout { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); background: rgba(255,255,255,.08); color: var(--text-light); border: none; cursor: pointer; transition: all var(--transition); }
.sidebar-logout:hover { background: var(--danger); color: #fff; }
.sidebar-logout svg { width: 15px; height: 15px; }

.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.topbar {
    height: var(--topbar-height);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 50;
    gap: 1rem;
}

.topbar-toggle { display: none; background: none; border: none; color: var(--text-muted); cursor: pointer; padding: .35rem; border-radius: var(--radius-sm); }
.topbar-toggle:hover { background: var(--bg); color: var(--text); }
.topbar-toggle svg { width: 22px; height: 22px; }

.topbar-search { flex: 1; max-width: 480px; }
.topbar-search-form { position: relative; }
.topbar-search-icon { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.topbar-search-icon svg { width: 18px; height: 18px; }
.topbar-search-input { width: 100%; padding: .55rem .75rem .55rem 2.4rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: .9rem; background: var(--bg); color: var(--text); transition: all var(--transition); outline: none; }
.topbar-search-input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(26,86,219,.1); }
.topbar-search-input::placeholder { color: var(--text-light); }

.topbar-actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.topbar-btn { display: flex; align-items: center; gap: .4rem; padding: .5rem 1rem; border-radius: var(--radius); font-size: .85rem; font-weight: 500; text-decoration: none; transition: all var(--transition); border: none; cursor: pointer; }
.topbar-btn-primary { background: var(--primary); color: #fff; }
.topbar-btn-primary:hover { background: var(--primary-dark); color: #fff; }
.topbar-btn svg { width: 16px; height: 16px; }

.page-content { padding: 1.5rem; flex: 1; }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header { margin-bottom: 1.5rem; display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.page-header-text { flex: 1; }
.page-title { font-size: 1.5rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.page-subtitle { color: var(--text-muted); font-size: .9rem; margin-top: .2rem; }
.page-header-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.breadcrumb { display: flex; align-items: center; gap: .35rem; font-size: .82rem; color: var(--text-muted); margin-bottom: .4rem; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--text-light); }

/* ============================================================
   CARDS
   ============================================================ */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-header { padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.card-title { font-size: 1rem; font-weight: 600; color: var(--text); }
.card-body { padding: 1.25rem; }
.card-footer { padding: 1rem 1.25rem; border-top: 1px solid var(--border); background: var(--bg); border-radius: 0 0 var(--radius) var(--radius); }

/* ============================================================
   STAT CARDS
   ============================================================ */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: 1rem; }
.stat-icon { width: 48px; height: 48px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon svg { width: 24px; height: 24px; }
.stat-icon-blue { background: #dbeafe; color: var(--primary); }
.stat-icon-green { background: #dcfce7; color: var(--success); }
.stat-icon-amber { background: #fef3c7; color: var(--accent); }
.stat-icon-red { background: #fee2e2; color: var(--danger); }
.stat-icon-purple { background: #ede9fe; color: #7c3aed; }
.stat-value { font-size: 1.75rem; font-weight: 700; color: var(--text); line-height: 1; }
.stat-label { font-size: .8rem; color: var(--text-muted); margin-top: .2rem; }

/* ============================================================
   DOCUMENT GRID
   ============================================================ */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.doc-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all var(--transition); cursor: pointer; text-decoration: none; color: inherit; display: block; }
.doc-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--primary); color: inherit; }
.doc-card-preview { aspect-ratio: 3/4; background: var(--bg); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.doc-card-preview img { width: 100%; height: 100%; object-fit: contain; }
.doc-card-icon { width: 64px; height: 64px; }
.doc-card-status { position: absolute; top: .5rem; right: .5rem; }
.doc-card-body { padding: .85rem; }
.doc-card-type { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: .15rem .5rem; border-radius: 999px; margin-bottom: .4rem; }
.doc-card-title { font-size: .9rem; font-weight: 600; color: var(--text); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.doc-card-meta { display: flex; align-items: center; gap: .5rem; margin-top: .5rem; flex-wrap: wrap; }
.doc-card-meta-item { font-size: .75rem; color: var(--text-muted); display: flex; align-items: center; gap: .25rem; }
.doc-card-meta-item svg { width: 12px; height: 12px; }
.doc-card-tags { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: .5rem; }

/* ============================================================
   FILE TYPE BADGES
   ============================================================ */
.ft-pdf { background: #fee2e2; color: #dc2626; }
.ft-word { background: #dbeafe; color: #1d4ed8; }
.ft-excel { background: #dcfce7; color: #15803d; }
.ft-powerpoint { background: #ffedd5; color: #c2410c; }
.ft-image { background: #fdf4ff; color: #9333ea; }
.ft-text { background: #f0fdf4; color: #166534; }
.ft-generic { background: #f1f5f9; color: #475569; }

/* ============================================================
   TAGS
   ============================================================ */
.tag { display: inline-flex; align-items: center; gap: .25rem; padding: .2rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 500; white-space: nowrap; }
.tag-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

/* ============================================================
   STATUS BADGES
   ============================================================ */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.badge svg { width: 12px; height: 12px; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-published { background: #dcfce7; color: #166534; }
.badge-approved { background: #d1fae5; color: #065f46; }
.badge-rejected { background: #fee2e2; color: #991b1b; }
.badge-admin { background: #dbeafe; color: #1e40af; }
.badge-contributor { background: #ede9fe; color: #6d28d9; }
.badge-viewer { background: #f1f5f9; color: #475569; }
.badge-active { background: #dcfce7; color: #166534; }
.badge-inactive { background: #fee2e2; color: #991b1b; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 1.1rem; }
.form-label { display: block; font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: .4rem; }
.form-label .required { color: var(--danger); margin-left: .2rem; }
.form-control { width: 100%; padding: .6rem .85rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .9rem; color: var(--text); background: var(--bg-card); transition: all var(--transition); outline: none; font-family: inherit; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,86,219,.1); }
.form-control.is-invalid { border-color: var(--danger); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(239,68,68,.1); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right .75rem center; background-size: 16px; padding-right: 2.5rem; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint { font-size: .8rem; color: var(--text-muted); margin-top: .3rem; }
.form-error { font-size: .8rem; color: var(--danger); margin-top: .3rem; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: .5rem .75rem; padding: .5rem 0; }
.checkbox-item { display: flex; align-items: center; gap: .4rem; font-size: .88rem; cursor: pointer; }
.checkbox-item input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--primary); cursor: pointer; }

.form-check { display: flex; align-items: center; gap: .5rem; cursor: pointer; }
.form-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.form-check-label { font-size: .9rem; color: var(--text); cursor: pointer; }

/* File upload */
.file-upload-zone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 2rem; text-align: center; background: var(--bg); transition: all var(--transition); cursor: pointer; }
.file-upload-zone:hover, .file-upload-zone.drag-over { border-color: var(--primary); background: var(--primary-light); }
.file-upload-icon svg { width: 40px; height: 40px; color: var(--text-light); margin-bottom: .75rem; }
.file-upload-text { font-size: .9rem; color: var(--text-muted); }
.file-upload-text strong { color: var(--primary); }
.file-upload-hint { font-size: .8rem; color: var(--text-light); margin-top: .3rem; }
.file-upload-selected { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; background: var(--primary-light); border-radius: var(--radius-sm); margin-top: .75rem; }
.file-upload-selected svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }
.file-upload-selected-name { font-size: .88rem; font-weight: 500; color: var(--primary-dark); flex: 1; }
.file-upload-selected-size { font-size: .8rem; color: var(--text-muted); }

/* Tag select */
.tag-select-wrap { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .75rem; max-height: 220px; overflow-y: auto; background: var(--bg-card); display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .1rem; }
.tag-option { display: flex; align-items: center; gap: .5rem; padding: .3rem .4rem; border-radius: var(--radius-sm); cursor: pointer; transition: background var(--transition); }
.tag-option:hover { background: var(--bg); }
.tag-option input { accent-color: var(--primary); }
.tag-option-label { font-size: .85rem; color: var(--text); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .575rem 1.1rem; border-radius: var(--radius-sm); font-size: .88rem; font-weight: 600; text-decoration: none; transition: all var(--transition); border: 1px solid transparent; cursor: pointer; line-height: 1.4; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-secondary { background: var(--bg); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--border); color: var(--text); }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success:hover { background: #059669; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #dc2626; color: #fff; }
.btn-warning { background: var(--warning); color: #fff; border-color: var(--warning); }
.btn-warning:hover { background: #d97706; color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: .35rem .75rem; font-size: .8rem; }
.btn-lg { padding: .75rem 1.5rem; font-size: .95rem; }
.btn-icon { padding: .5rem; border-radius: var(--radius-sm); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--bg); color: var(--text); border-color: transparent; }

/* ============================================================
   ALERTS / FLASH
   ============================================================ */
.alert { display: flex; align-items: flex-start; gap: .75rem; padding: .9rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid; margin-bottom: 1rem; font-size: .88rem; }
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: .05rem; }
.alert-success { background: #f0fdf4; border-color: #86efac; color: #166534; }
.alert-success svg { color: var(--success); }
.alert-error, .alert-danger { background: #fff1f2; border-color: #fecaca; color: #991b1b; }
.alert-error svg, .alert-danger svg { color: var(--danger); }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-warning svg { color: var(--warning); }
.alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.alert-info svg { color: var(--info); }
.alert-dismiss { margin-left: auto; background: none; border: none; cursor: pointer; opacity: .6; color: inherit; padding: .1rem; }
.alert-dismiss:hover { opacity: 1; }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { background: var(--bg); font-weight: 600; color: var(--text-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; padding: .75rem 1rem; text-align: left; border-bottom: 2px solid var(--border); white-space: nowrap; }
.table td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: var(--bg); }
.table-actions { display: flex; align-items: center; gap: .4rem; }
.table-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.table-user { display: flex; align-items: center; gap: .65rem; }

/* ============================================================
   DOCUMENT VIEWER / SHOW PAGE
   ============================================================ */
.doc-viewer-layout { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; }
.doc-viewer { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; min-height: 600px; }
.doc-viewer-toolbar { display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; background: var(--bg); border-bottom: 1px solid var(--border); }
.doc-viewer-toolbar-title { flex: 1; font-size: .88rem; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-viewer-embed { width: 100%; height: 680px; border: none; display: block; }
.doc-viewer-md { padding: 1.5rem 2rem; font-size: .95rem; line-height: 1.8; max-width: 720px; margin: 0 auto; }
.doc-viewer-md h1, .doc-viewer-md h2, .doc-viewer-md h3 { margin: 1.2em 0 .6em; color: var(--text); }
.doc-viewer-md p { margin-bottom: 1em; }
.doc-viewer-md code { background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: .1em .4em; font-size: .88em; }
.doc-viewer-md pre { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; overflow-x: auto; margin-bottom: 1em; }
.doc-viewer-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 400px; padding: 2rem; text-align: center; color: var(--text-muted); }
.doc-viewer-placeholder-icon { width: 80px; height: 80px; margin-bottom: 1.25rem; }
.doc-viewer-placeholder h3 { font-size: 1.1rem; color: var(--text); margin-bottom: .5rem; }
.office-viewer-wrap { position: relative; }
.office-viewer-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--bg-card); gap: .75rem; color: var(--text-muted); font-size: .9rem; z-index: 1; pointer-events: none; }
.office-viewer-spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.doc-viewer-docx { background: #fff; }
.doc-viewer-xlsx { background: #fff; }
.doc-viewer-loading-msg { display: flex; align-items: center; justify-content: center; height: 200px; color: var(--text-muted); font-size: .9rem; }
.doc-viewer-load-error { padding: 1.5rem; text-align: center; color: var(--text-muted); font-size: .9rem; }
.url-expiry-notice { display: none; align-items: center; gap: .6rem; padding: .5rem .85rem; border-radius: var(--radius-sm); font-size: .84rem; margin-bottom: .75rem; }
.url-expiry-notice.expiring { display: flex; background: #fefce8; border: 1px solid #fde047; color: #854d0e; }
.url-expiry-notice.expired  { display: flex; background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.url-expiry-notice svg { flex-shrink: 0; width: 16px; height: 16px; }
.url-expiry-notice-msg { flex: 1; }
.url-expiry-notice.expiring .url-expiry-refresh { background: #ca8a04; border-color: #ca8a04; color: #fff; }
.url-expiry-notice.expiring .url-expiry-refresh:hover { background: #a16207; border-color: #a16207; color: #fff; }
.url-expiry-notice.expired  .url-expiry-refresh { background: var(--danger); border-color: var(--danger); color: #fff; }
.url-expiry-notice.expired  .url-expiry-refresh:hover { background: #dc2626; border-color: #dc2626; color: #fff; }

.doc-sidebar-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; margin-bottom: 1rem; }
.doc-thumb-card { padding: 0; overflow: hidden; }
.doc-thumb-img { width: 100%; display: block; border-radius: var(--radius); }
.doc-thumb-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1rem; min-height: 160px; gap: .6rem; }
.doc-thumb-placeholder-icon { width: 64px; height: 80px; }
.doc-thumb-placeholder-label { font-size: .78rem; color: var(--text-muted); }
.doc-sidebar-card h3 { font-size: .88rem; font-weight: 600; color: var(--text); margin-bottom: .85rem; }
.doc-meta-row { display: flex; gap: .5rem; margin-bottom: .6rem; font-size: .85rem; }
.doc-meta-label { color: var(--text-muted); font-weight: 500; min-width: 100px; }
.doc-meta-value { color: var(--text); flex: 1; }

/* Versions timeline */
.version-list { list-style: none; }
.version-item { display: flex; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.version-item:last-child { border-bottom: none; }
.version-badge { width: 28px; height: 28px; background: var(--primary-light); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; flex-shrink: 0; }
.version-info { flex: 1; font-size: .82rem; }
.version-num { font-weight: 600; color: var(--text); }
.version-meta { color: var(--text-muted); font-size: .78rem; }

/* ============================================================
   COLLECTION CARDS
   ============================================================ */
.collection-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
@media (max-width: 1300px) { .collection-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1000px) { .collection-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px)  { .collection-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .collection-grid { grid-template-columns: 1fr; } }

.col-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow var(--transition), transform var(--transition); }
.col-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.col-card-cover-link { display: block; text-decoration: none; }
.col-card-cover { background: #1B3A6B; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; overflow: hidden; transition: opacity var(--transition); }
.col-card-cover-link:hover .col-card-cover { opacity: .92; }
.col-card-cover img { width: 52px; height: 52px; object-fit: contain; opacity: .95; }
.col-card.col-card-create { text-decoration: none; color: inherit; }
.col-card.col-card-create:hover .col-card-create-cover { background: #D9EDFB; }

.col-card-create-cover { background: #EBF5FE; aspect-ratio: 16/9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .65rem; cursor: pointer; }
.col-card-create-plus { width: 38px; height: 38px; background: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.10); }
.col-card-create-plus svg { width: 20px; height: 20px; color: #1a56db; }
.col-card-create-text { font-size: .8rem; font-weight: 600; color: #1a56db; }

.col-card-footer { display: flex; align-items: center; padding: .6rem .75rem; gap: .4rem; border-top: 1px solid var(--border); }
.col-card-title { flex: 1; font-weight: 600; font-size: .82rem; color: var(--text); line-height: 1.3; }

.col-card-menu-wrap { position: relative; flex-shrink: 0; }
.col-card-menu-btn { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 6px; border: none; background: transparent; cursor: pointer; color: var(--text-muted); transition: background var(--transition); }
.col-card-menu-btn:hover { background: var(--bg); color: var(--text); }
.col-card-menu-dropdown { position: absolute; right: 0; top: calc(100% + 4px); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); min-width: 140px; z-index: 100; display: none; }
.col-card-menu-dropdown.open { display: block; }
.col-card-menu-item { display: flex; align-items: center; gap: .6rem; padding: .55rem .85rem; font-size: .85rem; color: var(--text); text-decoration: none; cursor: pointer; border: none; background: transparent; width: 100%; text-align: left; transition: background var(--transition); }
.col-card-menu-item:hover { background: var(--bg); color: var(--text); }
.col-card-menu-item svg { width: 15px; height: 15px; flex-shrink: 0; }
.col-card-menu-item.danger { color: var(--danger, #ef4444); }
.col-card-menu-item.danger:hover { background: #fef2f2; }

/* legacy aliases kept for show.blade.php */
.collection-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all var(--transition); text-decoration: none; color: inherit; display: block; }
.collection-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); color: inherit; }
.collection-card-body { padding: .85rem 1rem; }
.collection-card-title { font-weight: 600; font-size: .95rem; color: var(--text); margin-bottom: .3rem; }
.collection-card-meta { font-size: .8rem; color: var(--text-muted); display: flex; align-items: center; gap: .5rem; }
.collection-featured-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-header { background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%); border-radius: var(--radius); padding: 2rem; margin-bottom: 1.5rem; color: #fff; }
.search-header h1 { font-size: 1.4rem; font-weight: 700; margin-bottom: .25rem; }
.search-header p { opacity: .8; font-size: .9rem; }
.search-bar { display: flex; gap: .75rem; margin-top: 1rem; }
.search-bar-input { flex: 1; padding: .7rem 1rem; border-radius: var(--radius-sm); border: none; font-size: .95rem; outline: none; color: var(--text); }
.search-bar-btn { padding: .7rem 1.5rem; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; font-size: .9rem; transition: all var(--transition); }
.search-bar-btn:hover { background: rgba(255,255,255,.25); }
.search-filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
.filter-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .75rem; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; font-size: .8rem; color: #fff; cursor: pointer; transition: all var(--transition); text-decoration: none; }
.filter-chip:hover, .filter-chip.active { background: rgba(255,255,255,.3); color: #fff; }

.search-layout { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; }
.search-sidebar { }
.search-sidebar-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.search-sidebar-title { font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: .75rem; }
.tag-filter-list { display: flex; flex-direction: column; gap: .3rem; }
.tag-filter-item { display: flex; align-items: center; gap: .5rem; padding: .3rem .4rem; border-radius: var(--radius-sm); cursor: pointer; transition: background var(--transition); text-decoration: none; color: var(--text); font-size: .85rem; }
.tag-filter-item:hover { background: var(--bg); color: var(--text); }
.tag-filter-item.active { background: var(--primary-light); }
.tag-filter-count { margin-left: auto; font-size: .75rem; color: var(--text-muted); background: var(--bg); padding: .05rem .4rem; border-radius: 999px; }

/* ============================================================
   REVIEW QUEUE
   ============================================================ */
.review-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; display: flex; gap: 1rem; margin-bottom: 1rem; }
.review-card-thumb { width: 80px; height: 100px; background: var(--bg); border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); }
.review-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.review-card-thumb svg { width: 32px; height: 32px; color: var(--text-light); }
.review-card-info { flex: 1; }
.review-card-title { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: .25rem; }
.review-card-meta { font-size: .82rem; color: var(--text-muted); margin-bottom: .6rem; }
.review-card-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-wrap { margin-top: 1.5rem; display: flex; justify-content: center; }
.pagination { display: flex; list-style: none; gap: .3rem; }
.page-item .page-link { display: flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 .6rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .85rem; color: var(--text); text-decoration: none; transition: all var(--transition); background: var(--bg-card); }
.page-item .page-link:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.page-item.active .page-link { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-item.disabled .page-link { opacity: .5; cursor: not-allowed; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem 1.5rem; text-align: center; color: var(--text-muted); }
.empty-state-icon { width: 72px; height: 72px; background: var(--bg); border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.empty-state-icon svg { width: 32px; height: 32px; color: var(--text-light); }
.empty-state h3 { font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: .4rem; }
.empty-state p { font-size: .9rem; max-width: 360px; }
.empty-state .btn { margin-top: 1.25rem; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; pointer-events: none; transition: opacity var(--transition); }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: var(--bg-card); border-radius: var(--radius); max-width: 520px; width: 100%; box-shadow: var(--shadow-lg); transform: translateY(20px); transition: transform var(--transition); }
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header { padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-size: 1rem; font-weight: 600; color: var(--text); }
.modal-close { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: .25rem; border-radius: var(--radius-sm); transition: all var(--transition); }
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-close svg { width: 20px; height: 20px; }
.modal-body { padding: 1.25rem; }
.modal-footer { padding: 1rem 1.25rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: .75rem; }

/* ============================================================
   ADMIN SIDEBAR EXTRA
   ============================================================ */
.admin-badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: var(--accent); color: #fff; padding: .15rem .5rem; border-radius: 999px; margin-left: .4rem; }
.badge-super-admin { display: inline-flex; align-items: center; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: linear-gradient(90deg,#1e3a5f,#1a56db); color: #fff; padding: .15rem .55rem; border-radius: 999px; margin-left: .4rem; vertical-align: middle; }

/* ============================================================
   FEATURED COLLECTION CARDS (Dashboard)
   ============================================================ */
.fc-section { margin-bottom: 1.75rem; }
.fc-section-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.fc-section-title { display: flex; align-items: center; gap: .5rem; font-size: 1.1rem; font-weight: 700; color: var(--text); }
.fc-section-title svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

.fc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.25rem; }

.fc-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.fc-card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0,0,0,.12); color: inherit; }

.fc-card-cover { position: relative; height: 175px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.fc-cover-1 { background: linear-gradient(135deg,#1e3a5f 0%,#1a56db 100%); }
.fc-cover-2 { background: linear-gradient(135deg,#064e3b 0%,#10b981 100%); }
.fc-cover-3 { background: linear-gradient(135deg,#4c1d95 0%,#8b5cf6 100%); }
.fc-cover-4 { background: linear-gradient(135deg,#7c2d12 0%,#f97316 100%); }
.fc-cover-5 { background: linear-gradient(135deg,#0c4a6e 0%,#38bdf8 100%); }
.fc-cover-6 { background: linear-gradient(135deg,#881337 0%,#f43f5e 100%); }

.fc-cover-icon { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.fc-cover-icon svg { width: 64px; height: 64px; color: rgba(255,255,255,.22); }

.fc-mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; width: 100%; height: 100%; }
.fc-mosaic-cell { overflow: hidden; background: rgba(255,255,255,.06); }
.fc-mosaic-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fc-mosaic-cell:first-child { grid-row: 1 / 3; }

.fc-badge { position: absolute; top: .65rem; left: .65rem; background: rgba(245,158,11,.92); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 999px; display: flex; align-items: center; gap: .25rem; backdrop-filter: blur(4px); }
.fc-badge svg { width: 10px; height: 10px; }

.fc-card-body { padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.fc-card-title { font-size: .97rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.fc-card-desc { font-size: .82rem; color: var(--text-muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fc-card-ft { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .65rem; border-top: 1px solid var(--border); }
.fc-card-count { display: flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--text-muted); }
.fc-card-count svg { width: 14px; height: 14px; flex-shrink: 0; }
.fc-card-cta { display: flex; align-items: center; gap: .25rem; font-size: .78rem; font-weight: 600; color: var(--primary); }
.fc-card-cta svg { width: 13px; height: 13px; }

/* ============================================================
   DOCUMENT METADATA FIELDS
   ============================================================ */
.meta-section-title { font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .75rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.tech-checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .3rem .5rem; margin-top: .35rem; }
.tech-option { display: flex; align-items: center; gap: .45rem; font-size: .82rem; color: var(--text); padding: .25rem .4rem; border-radius: var(--radius-sm); cursor: pointer; user-select: none; transition: background var(--transition); }
.tech-option:hover { background: var(--bg); }
.tech-option input { accent-color: var(--primary); flex-shrink: 0; }
.keywords-hint { font-size: .8rem; color: var(--text-muted); margin-top: .3rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .doc-viewer-layout { grid-template-columns: 1fr; }
    .search-layout { grid-template-columns: 200px 1fr; }
}

@media (max-width: 1024px) {
    .login-left { display: none; }
    .login-right { width: 100%; }
    .search-layout { grid-template-columns: 1fr; }
    .search-sidebar { display: none; }
}

@media (max-width: 768px) {
    :root { --sidebar-width: 0px; }
    .sidebar { transform: translateX(-260px); }
    .sidebar.open { transform: translateX(0); width: 260px; }
    .main-content { margin-left: 0; }
    .topbar-toggle { display: flex; }
    .page-content { padding: 1rem; }
    .doc-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .topbar-search { max-width: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .collection-featured-grid { grid-template-columns: 1fr; }
    .fc-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .doc-grid { grid-template-columns: repeat(2, 1fr); }
    .page-header { flex-direction: column; }
    .page-header-actions { width: 100%; }
    .login-right { padding: 1.5rem; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-muted { color: var(--text-muted); }
.text-sm { font-size: .85rem; }
.text-xs { font-size: .78rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.w-full { width: 100%; }
.min-w-0 { min-width: 0; }

/* Sidebar overlay for mobile */
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 99; }
.sidebar.open ~ .sidebar-overlay, body.sidebar-open .sidebar-overlay { display: block; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============================================================
   Notifications Bell (topbar)
   ============================================================ */
.topbar-notif-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-sm); color: var(--text-muted); transition: background .15s, color .15s; }
.topbar-notif-btn:hover { background: var(--border); color: var(--text); }
.topbar-notif-btn svg { width: 20px; height: 20px; }
.topbar-notif-badge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--danger); color: #fff; font-size: .68rem; font-weight: 700; line-height: 16px; text-align: center; }

/* ============================================================
   Notifications List Page
   ============================================================ */
.notif-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); transition: background .15s; }
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg); }
.notif-item-unread { background: #eff6ff; }
.notif-item-unread:hover { background: #dbeafe; }
.notif-icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.notif-icon svg { width: 18px; height: 18px; }
.notif-body { flex: 1; min-width: 0; }
.notif-message { font-size: .9rem; color: var(--text); margin-bottom: .25rem; }
.notif-meta { display: flex; align-items: center; gap: .5rem; }
.notif-actions { flex-shrink: 0; }

/* ============================================================
   Review Modal — Share Section
   ============================================================ */
.modal-lg { max-width: 680px; }
.review-share-section { border-top: 1px solid var(--border); padding-top: 1rem; margin-top: .5rem; }
.review-share-title { font-weight: 600; font-size: .95rem; margin-bottom: .25rem; }
.review-share-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.review-share-col { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .75rem; }
.checkbox-group-col { flex-direction: column; gap: .35rem; }
.review-users-list { max-height: 180px; overflow-y: auto; }

@media (max-width: 600px) {
    .review-share-columns { grid-template-columns: 1fr; }
}
