/* ============================================================
   NOTICE BOARD STYLES (notice.css)
   ============================================================ */

/* ===== BODY ===== */
body {
    background: #f8fafc;
    font-family: 'Inter', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #334155;
    margin: 0;
    padding: 0;
    display: block;
}

.nb-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    padding: 40px;
}

/* ===== SECTION LABEL ===== */
.nb-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #0d9488;
    background: #ccfbf1;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.nb-section-label .line {
    display: none;
}

/* ===== HEADER ===== */
.nb-header {
    margin-bottom: 24px;
}

.nb-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.nb-header h2 .accent {
    color: #0d9488;
    background: none;
    -webkit-text-fill-color: initial;
}

.nb-header p {
    font-size: 0.95rem;
    color: #64748b;
    margin-top: 4px;
}

/* ===== FILTER BAR ===== */
.nb-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.nb-controls-left,
.nb-controls-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nb-controls-left label,
.nb-controls-right label {
    font-weight: 500;
    font-size: 0.875rem;
    color: #475569;
}

.nb-controls select {
    padding: 6px 32px 6px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nb-controls select:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* ===== TABLE ===== */
.nb-table-scroll {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.nb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    min-width: 600px;
    text-align: left;
}

.nb-table thead {
    background: #f1f5f9;
}

.nb-table th {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
}

.nb-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    vertical-align: middle;
}

.nb-table tbody tr {
    transition: background-color 0.15s ease;
}

.nb-table tbody tr:hover {
    background: #f8fafc;
}

.nb-table tbody tr:last-child td {
    border-bottom: none;
}

/* SL column */
.nb-table td:first-child {
    font-weight: 500;
    color: #64748b;
    width: 60px;
    text-align: center;
}

/* Date column */
.nb-table td:nth-child(2) {
    font-weight: 500;
    color: #0f172a;
    white-space: nowrap;
}

/* Category badge */
.nb-category-badge {
    display: inline-block;
    background: #f1f5f9;
    color: #334155;
    font-weight: 500;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    text-transform: capitalize;
}

/* Title column */
.nb-table td:nth-child(4) {
    font-weight: 500;
    color: #0f172a;
}

/* ===== DOWNLOAD BUTTON ===== */
.nb-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: #ffffff;
    color: #0d9488;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nb-download-btn:hover {
    background: #0d9488;
    color: #ffffff;
    border-color: #0d9488;
}

.nb-download-btn .nb-download-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ===== PAGINATION ===== */
.nb-pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.nb-pagination-info {
    font-size: 0.875rem;
    color: #64748b;
}

.nb-pagination-info strong {
    color: #0f172a;
    font-weight: 600;
}

.nb-pagination {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.nb-pagination button {
    padding: 6px 12px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    min-width: 36px;
}

.nb-pagination button:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.nb-pagination button.active {
    background: #0d9488;
    color: #ffffff;
    border-color: #0d9488;
}

.nb-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8fafc;
}

/* ============================================================
   INLINE PDF PREVIEW
   ============================================================ */
.nb-action-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nb-view-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 6px;
    background: #eef2ff;
    color: #1e5af5;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
    font-size: 14px;
    text-decoration: none;
}

.nb-view-btn:hover {
    background: #1e5af5;
    color: #fff;
}

.nb-preview-row {
    background: #f8fafc;
}

.nb-preview-row td {
    padding: 0 !important;
    border-bottom: 1px solid #e2e8f0;
}

.nb-preview-container {
    padding: 16px;
    background: #ffffff;
    border-radius: 12px;
    margin: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.nb-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.nb-preview-header strong {
    font-size: 15px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nb-preview-header strong i {
    color: #dc2626;
}

.nb-preview-actions {
    display: flex;
    gap: 8px;
}

.nb-preview-download,
.nb-preview-close {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    transition: all .2s ease;
}

.nb-preview-download {
    background: #1e5af5;
    color: #fff;
    border-color: #1e5af5;
}

.nb-preview-download:hover {
    background: #1648d0;
    border-color: #1648d0;
}

.nb-preview-close {
    background: #fff;
    color: #64748b;
}

.nb-preview-close:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.nb-preview-iframe {
    width: 100%;
    height: 70vh;
    border: none;
    border-radius: 8px;
    background: #f1f5f9;
}

/* ============================================================
   RESPONSIVE – All breakpoints at the end
   ============================================================ */

/* ---------- Mobile (max-width: 768px) ---------- */
@media (max-width: 768px) {
    .nb-wrapper {
        padding: 24px 16px;
    }
    .nb-header h2 {
        font-size: 1.4rem;
    }
    .nb-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .nb-pagination-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

/* ---------- Small Mobile (max-width: 600px) ---------- */
@media (max-width: 600px) {
    .nb-preview-container {
        margin: 6px;
        padding: 10px;
    }
    .nb-preview-iframe {
        height: 60vh;
    }
    .nb-preview-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .nb-preview-actions {
        width: 100%;
        flex-wrap: wrap;
    }
}