/**
 * SIKKHALAY STUDENT PORTAL — NOTICES & CIRCULARS SYSTEM STYLES
 * High-performance, responsive styling for Institute, Coaching & Tuition notices
 */

/* ==========================================================================
   1. HERO HUB BANNER & AFFILIATION BAR
   ========================================================================== */
.notices-hero-banner {
    background: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #4338CA 100%);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    color: #FFFFFF;
    box-shadow: 0 10px 25px -5px rgba(49, 46, 129, 0.35);
    position: relative;
    overflow: hidden;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.notices-hero-banner::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(99, 102, 241, 0) 70%);
    pointer-events: none;
}

.notices-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.notices-hero-left {
    max-width: 650px;
}

.notices-hero-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.notices-hero-title i {
    color: #FBBF24;
}

.notices-hero-subtitle {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 14px 0;
    line-height: 1.5;
}

.notices-hero-affiliations {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-affil-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

.hero-affil-chip i {
    font-size: 10px;
}

.notices-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-hero-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 700;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-hero-action:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

/* ==========================================================================
   2. KPI METRICS CARDS
   ========================================================================== */
.notices-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.notice-kpi-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.notice-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-primary);
}

.notice-kpi-info {
    display: flex;
    flex-direction: column;
}

.notice-kpi-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
}

.notice-kpi-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.notice-kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.kpi-icon-total {
    background: rgba(99, 102, 241, 0.12);
    color: #4F46E5;
}

.kpi-icon-urgent {
    background: rgba(239, 68, 68, 0.12);
    color: #DC2626;
    animation: pulseAlert 2.5s infinite ease-in-out;
}

.kpi-icon-inst {
    background: rgba(37, 99, 235, 0.12);
    color: #2563EB;
}

.kpi-icon-coach {
    background: rgba(217, 119, 6, 0.12);
    color: #D97706;
}

.kpi-icon-tuition {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

/* ==========================================================================
   3. STREAM TABS & FILTER TOOLBAR
   ========================================================================== */
.notices-channel-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    padding: 6px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.channel-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.channel-tab-btn:hover {
    color: var(--text-main);
    background: var(--bg-surface-hover, rgba(0, 0, 0, 0.04));
}

.channel-tab-btn.active {
    color: #FFFFFF;
    background: var(--brand-primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.channel-tab-btn .tab-badge {
    padding: 2px 7px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
}

.channel-tab-btn.active .tab-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}

/* Secondary Filter & Search Toolbar */
.notices-filter-bar {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notices-toolbar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.notice-search-box {
    position: relative;
    flex: 1;
    min-width: 260px;
}

.notice-search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
}

.notice-search-input {
    width: 100%;
    padding: 9px 36px 9px 38px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-main);
    color: var(--text-main);
    font-size: 13px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.notice-search-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.search-clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 12px;
    display: none;
}

.notices-toolbar-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-sort-select {
    padding: 8px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    color: var(--text-main);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.notice-view-toggle {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.view-toggle-btn {
    padding: 7px 11px;
    background: var(--bg-main);
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 12px;
    transition: all 0.15s ease;
}

.view-toggle-btn.active {
    background: var(--brand-primary);
    color: #FFFFFF;
}

/* Category Filter Pills */
.notice-category-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.notice-category-pills::-webkit-scrollbar {
    display: none;
}

.cat-pill-btn {
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.cat-pill-btn:hover {
    color: var(--text-main);
    border-color: var(--text-muted);
}

.cat-pill-btn.active {
    background: #1E293B;
    color: #FFFFFF;
    border-color: #1E293B;
}

[data-theme="dark"] .cat-pill-btn.active {
    background: #38BDF8;
    color: #0F172A;
    border-color: #38BDF8;
}

/* ==========================================================================
   4. NOTICE CARDS GRID & LIST VIEW
   ========================================================================== */
.notices-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.notices-container.list-mode {
    grid-template-columns: 1fr;
    gap: 12px;
}

.notice-item-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.notice-item-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-primary);
}

/* Urgent Styling Accent */
.notice-item-card.is-urgent {
    border-left: 4px solid #EF4444;
    background: linear-gradient(to right, rgba(239, 68, 68, 0.035), var(--bg-surface) 35%);
}

[data-theme="dark"] .notice-item-card.is-urgent {
    border-left: 4px solid #F87171;
    background: linear-gradient(to right, rgba(239, 68, 68, 0.08), var(--bg-surface) 40%);
}

/* Unread Notification Pulse Dot */
.notice-unread-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-primary);
    display: inline-block;
    box-shadow: 0 0 6px var(--brand-primary);
    margin-right: 4px;
}

/* Card Header Section */
.notice-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.notice-badges-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.notice-bookmark-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 15px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.15s ease, transform 0.15s ease;
}

.notice-bookmark-btn:hover {
    transform: scale(1.15);
}

.notice-bookmark-btn.bookmarked {
    color: #F59E0B !important;
}

/* Card Content Section */
.notice-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.notice-card-meta i {
    font-size: 10px;
}

.notice-card-title {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 8px 0;
    line-height: 1.4;
    cursor: pointer;
    transition: color 0.15s ease;
}

.notice-card-title:hover {
    color: var(--brand-primary);
}

.notice-card-body {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
    flex-grow: 1;
}

/* Attachment Indicator Strip */
.notice-attachment-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    color: #DC2626;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.2);
    margin-bottom: 14px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.notice-attachment-tag:hover {
    background: rgba(220, 38, 38, 0.16);
}

/* Target & Validity Meta */
.notice-validity-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    padding: 6px 0;
    border-top: 1px dashed var(--border-color);
    margin-bottom: 12px;
}

/* Card Action Footer */
.notice-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: auto;
}

.btn-notice-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.btn-notice-primary {
    background: var(--brand-primary);
    color: #FFFFFF;
}

.btn-notice-primary:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.btn-notice-secondary {
    background: var(--bg-main);
    color: var(--text-main);
    border-color: var(--border-color);
}

.btn-notice-secondary:hover {
    background: var(--bg-surface-hover, rgba(0, 0, 0, 0.04));
    border-color: var(--text-muted);
}

.notice-footer-icon-btn {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

.notice-footer-icon-btn:hover {
    color: var(--text-main);
    border-color: var(--text-muted);
}

/* List Mode Overrides */
.notices-container.list-mode .notice-item-card {
    flex-direction: row;
    align-items: center;
    padding: 12px 18px;
}

.notices-container.list-mode .notice-left-block {
    flex: 1;
    min-width: 0;
    margin-right: 16px;
}

.notices-container.list-mode .notice-card-footer {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
    flex-shrink: 0;
}

.notices-container.list-mode .notice-card-body {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

/* ==========================================================================
   5. OFFICIAL CIRCULAR MEMO MODAL & PRINT VIEW
   ========================================================================== */
.memo-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.memo-modal-backdrop.active {
    display: flex;
    opacity: 1;
}

.memo-modal-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    transform: scale(0.96);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.memo-modal-backdrop.active .memo-modal-container {
    transform: scale(1);
}

.memo-modal-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface);
}

.memo-modal-body {
    padding: 24px;
    overflow-y: auto;
    font-family: var(--font-main, 'Plus Jakarta Sans', sans-serif);
}

/* Official Government / Institution Memorandum Sheet */
.official-memo-sheet {
    background: #FFFFFF;
    color: #0F172A;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    padding: 30px;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .official-memo-sheet {
    background: #1E293B;
    color: #F8FAFC;
    border-color: #334155;
}

.memo-letterhead {
    text-align: center;
    border-bottom: 2px solid #E2E8F0;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

[data-theme="dark"] .memo-letterhead {
    border-bottom-color: #475569;
}

.memo-institution-name {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--brand-primary);
    margin: 0 0 4px 0;
}

.memo-tagline {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748B;
    letter-spacing: 0.5px;
    margin: 0 0 10px 0;
}

.memo-headline-pill {
    display: inline-block;
    background: #0F172A;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 14px;
    border-radius: 4px;
    letter-spacing: 1px;
}

[data-theme="dark"] .memo-headline-pill {
    background: #38BDF8;
    color: #0F172A;
}

.memo-meta-table {
    width: 100%;
    margin-bottom: 18px;
    font-size: 12px;
}

.memo-meta-table td {
    padding: 3px 0;
}

.memo-title-banner {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.45;
}

.memo-content-box {
    font-size: 13.5px;
    line-height: 1.75;
    white-space: pre-line;
    margin-bottom: 24px;
}

.memo-signature-block {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
    border-top: 1px dashed #CBD5E1;
    padding-top: 14px;
}

.memo-signature-inner {
    text-align: center;
    min-width: 180px;
}

.memo-signature-title {
    font-size: 12px;
    font-weight: 800;
}

.memo-signature-dept {
    font-size: 11px;
    color: #64748B;
}

.memo-modal-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface);
}

/* Empty / No Results State */
.notices-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-surface);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
    grid-column: 1 / -1;
}

.notices-empty-state i {
    font-size: 42px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.notices-empty-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.notices-empty-desc {
    font-size: 13px;
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto 16px auto;
}

/* ==========================================================================
   5A. DYNAMIC AFFILIATIONS & SUB-FILTER BAR
   ========================================================================== */
.hero-affil-chip {
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.hero-affil-chip:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.hero-affil-chip.active {
    background: #FFFFFF;
    color: #1E1B4B;
    border-color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.4);
}

.notices-subfilter-bar {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: thin;
    animation: fadeInSubFilter 0.25s ease;
}

@keyframes fadeInSubFilter {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.notices-subfilter-bar.active {
    display: flex;
}

.subfilter-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 4px;
}

.subfilter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    background: var(--bg-main);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.subfilter-chip:hover {
    color: var(--text-main);
    border-color: var(--brand-primary);
    background: rgba(37, 99, 235, 0.05);
}

.subfilter-chip.active {
    background: var(--brand-primary);
    color: #FFFFFF;
    border-color: var(--brand-primary);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* ==========================================================================
   5B. LAZY LOAD ENGINE, SKELETONS & PROGRESS
   ========================================================================== */
.notices-feed-wrapper {
    position: relative;
    width: 100%;
}

.lazy-load-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px 16px 40px 16px;
    width: 100%;
}

.lazy-sentinel {
    height: 20px;
    width: 100%;
    pointer-events: none;
    opacity: 0;
}

.lazy-loading-spinner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 9999px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    animation: fadeIn 0.2s ease;
}

.lazy-loading-spinner i {
    color: var(--brand-primary);
    font-size: 16px;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 800;
    color: var(--text-main);
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-load-more:hover {
    background: var(--bg-surface-hover, #F8FAFC);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-load-more:active {
    transform: translateY(0);
}

.btn-load-more .badge-count {
    padding: 2px 7px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 800;
    background: rgba(37, 99, 235, 0.1);
    color: var(--brand-primary);
}

.end-of-feed-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #059669;
    font-size: 12px;
    font-weight: 700;
}

[data-theme="dark"] .end-of-feed-notice {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
}

/* Feed Progress Header */
.feed-progress-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding: 0 4px;
}

.feed-progress-indicator {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    width: 120px;
}

.feed-progress-fill {
    height: 100%;
    background: var(--brand-primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* Skeleton Loading Cards */
.notice-skeleton-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    pointer-events: none;
}

.skeleton-bone {
    border-radius: 6px;
    background: linear-gradient(90deg, var(--border-color) 25%, var(--bg-surface-hover, rgba(0,0,0,0.06)) 50%, var(--border-color) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

[data-theme="dark"] .skeleton-bone {
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 75%);
    background-size: 200% 100%;
}

/* Stream Channel Badges */
.fee-type-badge, .notice-stream-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.fee-type-institute {
    background: rgba(59, 130, 246, 0.12);
    color: #2563EB;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

[data-theme="dark"] .fee-type-institute {
    background: rgba(59, 130, 246, 0.22);
    color: #93C5FD;
    border-color: rgba(59, 130, 246, 0.4);
}

.fee-type-coaching {
    background: rgba(217, 119, 6, 0.12);
    color: #D97706;
    border: 1px solid rgba(217, 119, 6, 0.25);
}

[data-theme="dark"] .fee-type-coaching {
    background: rgba(217, 119, 6, 0.22);
    color: #FCD34D;
    border-color: rgba(217, 119, 6, 0.4);
}

.fee-type-tuition {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

[data-theme="dark"] .fee-type-tuition {
    background: rgba(16, 185, 129, 0.22);
    color: #6EE7B7;
    border-color: rgba(16, 185, 129, 0.4);
}

/* Live Search Highlight */
.search-highlight {
    background: #FEF08A;
    color: #854D0E;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 700;
}

[data-theme="dark"] .search-highlight {
    background: #854D0E;
    color: #FEF08A;
}

@media print {
    body * {
        visibility: hidden;
    }
    .official-memo-sheet, .official-memo-sheet * {
        visibility: visible;
    }
    .official-memo-sheet {
        position: absolute;
        left: 0;
        top: 0;
        width: 100% !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        color: #000000 !important;
        background: #FFFFFF !important;
    }
    .app-header, .left-desktop-sidebar, .sidebar-backdrop, .notices-hero-banner, .notices-kpi-grid, .notices-channel-tabs, .notices-filter-bar, .memo-modal-header, .memo-modal-footer {
        display: none !important;
    }
}
