.pengumuman-hero-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--front-shadow);
}

.pengumuman-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.pengumuman-stat {
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(31, 162, 166, 0.12);
    background: rgba(255, 255, 255, 0.85);
}

.pengumuman-stat span {
    display: block;
    font-size: 0.85rem;
    color: var(--front-muted);
}

.pengumuman-stat strong {
    font-size: 1.2rem;
    color: var(--front-deep);
}

.pengumuman-highlight {
    margin-top: 1.5rem;
}

.pengumuman-highlight-title {
    font-family: var(--front-font-heading);
    font-size: 1.1rem;
    color: var(--front-deep);
    margin-bottom: 0.8rem;
}

.pengumuman-highlight-grid {
    display: grid;
    gap: 1rem;
}

.pengumuman-highlight-card {
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(31, 42, 68, 0.08);
    background: rgba(255, 255, 255, 0.8);
}

.pengumuman-highlight-date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--front-muted);
}

.pengumuman-highlight-card h4 {
    font-size: 1rem;
    margin: 0.4rem 0;
    color: var(--front-deep);
}

.pengumuman-highlight-card p {
    font-size: 0.9rem;
    color: var(--front-muted);
    margin: 0;
}

.pengumuman-highlight-action {
    margin-top: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--front-primary);
    text-decoration: none;
}

.pengumuman-list {
    padding: 3rem 0 4rem;
}

.pengumuman-search-note {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    padding: 0.75rem 1rem;
    margin: 0 0 1.4rem;
    border-radius: 10px;
    background: rgba(31, 162, 166, 0.08);
    color: var(--front-deep);
    font-size: 0.95rem;
}

.pengumuman-search-note a {
    font-weight: 600;
    color: var(--front-primary);
    text-decoration: none;
}

.pengumuman-search-note a:hover {
    text-decoration: underline;
}

.spm-search-note {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    padding: 0.75rem 1rem;
    margin: 0 0 1.4rem;
    border-radius: 10px;
    background: rgba(31, 162, 166, 0.08);
    color: var(--front-deep);
    font-size: 0.95rem;
}

.spm-search-note a {
    font-weight: 600;
    color: var(--front-primary);
    text-decoration: none;
}

.spm-search-note a:hover {
    text-decoration: underline;
}

.maestro-search-note {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    padding: 0.75rem 1rem;
    margin: 0 0 1.4rem;
    border-radius: 10px;
    background: rgba(31, 162, 166, 0.08);
    color: var(--front-deep);
    font-size: 0.95rem;
}

.maestro-search-note a {
    font-weight: 600;
    color: var(--front-primary);
    text-decoration: none;
}

.maestro-search-note a:hover {
    text-decoration: underline;
}

.pengumuman-table-card {
    background: var(--front-card);
    border-radius: 10px;
    padding: 1.8rem;
    box-shadow: var(--front-shadow);
    border: 1px solid rgba(31, 42, 68, 0.08);
}

.pengumuman-list-header {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
}

.pengumuman-cards {
    display: grid;
    gap: 1rem;
}

.pengumuman-card {
    background: #ffffff;
    border: 1px solid rgba(31, 42, 68, 0.08);
    border-radius: 10px;
    padding: 1.4rem 1.6rem;
    display: grid;
    gap: 1rem;
    box-shadow: 0 10px 30px -42px rgba(31, 42, 68, 0.5);
}

.pengumuman-card-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
}

.pengumuman-card-meta-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.pengumuman-card-date-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--front-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(31, 162, 166, 0.12);
}

.pengumuman-card-badge {
    background: rgba(31, 162, 166, 0.12);
    color: var(--front-primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
}

.pengumuman-card-title {
    font-family: var(--front-font-heading);
    font-size: 1.2rem;
    color: var(--front-deep);
    margin: 0 0 0.35rem;
}

.pengumuman-card-desc {
    color: var(--front-muted);
    margin: 0;
    font-size: 0.95rem;
}

.pengumuman-card-detail {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px dashed rgba(31, 42, 68, 0.12);
    color: var(--front-muted);
    font-size: 0.95rem;
}

.pengumuman-card-detail a {
    color: var(--front-primary);
    font-weight: 600;
    text-decoration: none;
}

.pengumuman-card-detail a:hover {
    text-decoration: underline;
}

.pengumuman-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.pengumuman-file-empty {
    font-size: 0.85rem;
    color: var(--front-muted);
}

.pengumuman-table-head {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
}

.pengumuman-section-title {
    font-family: var(--front-font-heading);
    font-size: 1.4rem;
    color: var(--front-deep);
    margin: 0;
}

.pengumuman-section-sub {
    color: var(--front-muted);
    margin: 0;
}

.pengumuman-file-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    text-decoration: none;
}

.pengumuman-file-link i {
    margin-right: 0.3rem;
}

.pengumuman-empty {
    padding: 2rem;
    text-align: center;
    border-radius: 10px;
    background: rgba(31, 162, 166, 0.06);
    color: var(--front-muted);
}

.pengumuman-pagination {
    margin-top: 1.6rem;
    display: flex;
    justify-content: flex-end;
}

@media (min-width: 992px) {
    .pengumuman-highlight-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pengumuman-card-body {
        padding-right: 1rem;
    }
}

@media (max-width: 767px) {
    .pengumuman-hero-card {
        padding: 1.2rem;
    }

    .pengumuman-table-card {
        padding: 1.2rem;
    }

    .pengumuman-card {
        padding: 1.1rem;
    }
}

[data-bs-theme='dark'] .pengumuman-section-title,
[data-bs-theme='dark'] .pengumuman-highlight-title,
[data-bs-theme='dark'] .pengumuman-card-title {
    color: #e6eef5;
}

[data-bs-theme='dark'] .pengumuman-section-sub,
[data-bs-theme='dark'] .pengumuman-card-desc,
[data-bs-theme='dark'] .pengumuman-highlight-card p,
[data-bs-theme='dark'] .pengumuman-highlight-date,
[data-bs-theme='dark'] .pengumuman-stat span {
    color: #9fb1c7;
}

[data-bs-theme='dark'] .pengumuman-card {
    background: linear-gradient(135deg, rgba(31, 162, 166, 0.18), rgba(18, 26, 36, 0.95));
    border-color: rgba(31, 162, 166, 0.2);
}

[data-bs-theme='dark'] .pengumuman-card-detail {
    border-top-color: rgba(159, 177, 199, 0.18);
    color: #9fb1c7;
}

[data-bs-theme='dark'] .pengumuman-card-date-pill,
[data-bs-theme='dark'] .pengumuman-card-badge {
    background: rgba(31, 162, 166, 0.2);
    color: #bfe7ea;
}

[data-bs-theme='dark'] .pengumuman-hero-card,
[data-bs-theme='dark'] .pengumuman-table-card {
    background: rgba(18, 26, 36, 0.95);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

[data-bs-theme='dark'] .pengumuman-stat,
[data-bs-theme='dark'] .pengumuman-highlight-card {
    background: rgba(18, 26, 36, 0.85);
    border-color: rgba(31, 162, 166, 0.2);
}

[data-bs-theme='dark'] .pengumuman-stat strong {
    color: #e6eef5;
}

[data-bs-theme='dark'] .pengumuman-table th {
    color: rgba(159, 177, 199, 0.8);
}

[data-bs-theme='dark'] .pengumuman-empty {
    background: rgba(31, 162, 166, 0.12);
    color: #9fb1c7;
}

[data-bs-theme='dark'] .pengumuman-search-note {
    background: rgba(31, 162, 166, 0.16);
    color: #e6eef5;
}

[data-bs-theme='dark'] .spm-search-note {
    background: rgba(31, 162, 166, 0.16);
    color: #e6eef5;
}

[data-bs-theme='dark'] .maestro-search-note {
    background: rgba(31, 162, 166, 0.16);
    color: #e6eef5;
}

#pdfPreviewModal .modal-dialog {
    max-width: 1200px;
    margin: 1.5rem auto;
}

.pdf-preview-modal {
    border-radius: 10px;
    overflow: hidden;
    background: var(--bs-paper-bg);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.pdf-preview-header {
    width: 100%;
}

.pdf-preview-heading {
    flex: 1;
    min-width: 0;
}

.pdf-preview-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--bs-heading-color);
    word-break: break-word;
    margin-bottom: 0.35rem;
}

.pdf-preview-header-actions .btn {
    flex-shrink: 0;
}

.pdf-preview-header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.pdf-preview-header-actions .btn-close {
    margin: 0;
}

.pdf-preview-shell {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0 1.5rem;
}

.pdf-preview-toolbar {
    background: var(--bs-gray-100);
    border: 1px solid var(--bs-border-color);
    border-radius: 10px;
    padding: 0.85rem 1.25rem;
    display: none;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    transition: opacity 0.2s ease;
    width: 100%;
}

.pdf-preview-toolbar.show {
    display: flex;
    opacity: 1;
}

.pdf-preview-toolbar .btn-group {
    display: inline-flex;
    gap: 0.35rem;
}

.pdf-preview-toolbar .btn {
    font-size: 0.85rem;
    padding-inline: 0.9rem;
}

.pdf-preview-page-input input {
    width: 72px;
    text-align: center;
}

.pdf-preview-stage {
    position: relative;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.02) 100%);
    border: 1px solid var(--bs-border-color);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pdf-preview-canvas-container {
    width: 100%;
    height: 100%;
    overflow: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.5rem;
}

#pdf-preview-canvas {
    display: block;
    max-width: 100%;
    height: auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.12);
}

.pdf-preview-loading,
.pdf-preview-error {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(248, 249, 250, 0.9) 0%, rgba(255, 255, 255, 0.82) 100%);
    backdrop-filter: blur(3px);
    z-index: 2;
    pointer-events: none;
}

.pdf-preview-loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

.pdf-preview-error {
    color: var(--bs-danger);
}

.pdf-preview-error.show {
    display: flex;
}

.pdf-preview-error-content i {
    font-size: 3rem;
}

.pdf-preview-error-content h5 {
    font-weight: 600;
}

.pdf-page-input {
    width: 60px;
}

html[data-bs-theme="dark"] .pdf-preview-modal {
    border-color: rgba(255, 255, 255, 0.06);
}

html[data-bs-theme="dark"] .pdf-preview-toolbar {
    background: color-mix(in sRGB, var(--bs-base-color) 6%, var(--bs-paper-bg));
}

html[data-bs-theme="dark"] .pdf-preview-stage {
    background: linear-gradient(180deg, rgba(15, 23, 32, 0.6) 0%, rgba(15, 23, 32, 0.35) 100%);
}

html[data-bs-theme="dark"] .pdf-preview-loading,
html[data-bs-theme="dark"] .pdf-preview-error {
    background: linear-gradient(180deg, rgba(16, 24, 35, 0.92) 0%, rgba(18, 26, 36, 0.82) 100%);
}

@media (max-width: 768px) {
    #pdfPreviewModal .modal-dialog {
        max-width: 96vw;
        margin: 0.75rem;
    }

    .pdf-preview-toolbar {
        padding: 0.75rem;
        gap: 0.75rem;
        flex-direction: column;
        align-items: stretch;
    }

    .pdf-preview-toolbar .btn {
        width: 100%;
        padding: 0.45rem 0.75rem;
        font-size: 0.85rem;
    }

    .pdf-preview-canvas-container {
        padding: 1rem;
    }

    .pdf-preview-toolbar .btn-group {
        width: 100%;
        justify-content: center;
    }

    .pdf-preview-page-input {
        width: 100%;
        justify-content: center;
    }

    .pdf-preview-header-actions {
        flex-direction: row;
        justify-content: flex-end;
    }
}

@media (max-width: 576px) {
    .pdf-preview-toolbar .btn {
        width: auto;
    }
}
