/* ================================================
   pengumuman.css
   Halaman Pengumuman Hasil Seleksi
   Lokasi: public/assets/thisstyle/pengumuman.css
   ================================================ */

   body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
}

/* ── Background wrapper ── */
.search-wrapper,
.result-page {
    min-height: 100vh;
    background-image: url('https://smpn1pagaralam.sch.id/assets/upload/image/WhatsApp-Image-2025-11-08-at-09.45.46.jpeg');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    position: relative;
}

.search-wrapper::before,
.result-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 25, 60, 0.72) 0%,
        rgba(15, 40, 90, 0.60) 50%,
        rgba(5, 20, 50, 0.75) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.search-wrapper > *,
.result-page > * {
    position: relative;
    z-index: 1;
}

/* ════════════════════════════════
   KOTAK PENCARIAN
════════════════════════════════ */
.search-box {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 3rem 3.5rem;
    width: 100%;
    max-width: 820px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.15);
}

@media (max-width: 600px) {
    .search-box { padding: 2rem 1.5rem; }
}

.brand-bar {
    background: linear-gradient(90deg, #1a56db 0%, #0ea5e9 100%);
    border-radius: 12px;
    padding: 1.1rem 1.5rem;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}

.brand-bar .brand-sub {
    font-size: .8rem;
    font-weight: 400;
    opacity: .85;
    margin-left: auto;
}

.search-label {
    font-size: .95rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: .4rem;
}

.search-hint {
    font-size: .82rem;
    color: #64748b;
    margin-bottom: 1.25rem;
}

.input-nisn {
    font-size: 1.2rem !important;
    letter-spacing: 2px;
    height: 58px !important;
    border-radius: 10px !important;
    border: 1.5px solid #cbd5e1 !important;
    background: #fff !important;
}

.input-nisn:focus {
    border-color: #1a56db !important;
    box-shadow: 0 0 0 4px rgba(26, 86, 219, .12) !important;
}

.btn-cari {
    background: linear-gradient(90deg, #1a56db, #0ea5e9);
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 10px;
    height: 58px;
    letter-spacing: .3px;
    white-space: nowrap;
}

.btn-cari:hover {
    opacity: .88;
    color: #fff;
}

/* ════════════════════════════════
   4 QUICK-LINK BUTTONS
════════════════════════════════ */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
    margin-top: 1.75rem;
}

@media (min-width: 500px) {
    .quick-grid { grid-template-columns: repeat(4, 1fr); }
}

.btn-quick {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: 1rem .5rem;
    background: #f0f6ff;
    border: 1.5px solid #bfdbfe;
    border-radius: 12px;
    color: #1e40af;
    font-size: .76rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
}

.btn-quick:hover {
    background: #dbeafe;
    border-color: #1a56db;
    color: #1a56db;
}

.btn-quick .bicon {
    font-size: 1.6rem;
    line-height: 1;
    color: #1a56db;
}

/* ════════════════════════════════
   SECTION DOWNLOAD DOKUMEN
════════════════════════════════ */
.doc-section {
    margin-top: 2rem;
    background: #f0f6ff;
    border: 1.5px solid #bfdbfe;
    border-radius: 14px;
    padding: 1.35rem 1.6rem;
}

.doc-section-title {
    font-size: .8rem;
    font-weight: 700;
    color: #1e3a8a;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: .9rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.doc-list {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.doc-item {
    display: flex;
    align-items: center;
    gap: .85rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: .75rem 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.doc-item:hover {
    border-color: #1a56db;
    background: #eff6ff;
}

.doc-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.di-pdf   { background: #fee2e2; color: #dc2626; }
.di-word  { background: #dbeafe; color: #1d4ed8; }
.di-xlsx  { background: #dcfce7; color: #16a34a; }
.di-badge { background: #f3e8ff; color: #7c3aed; }

.doc-info { flex: 1; min-width: 0; }

.doc-name {
    font-size: .8rem;
    font-weight: 600;
    color: #1e293b;
}

.doc-meta {
    font-size: .68rem;
    color: #94a3b8;
    margin-top: 1px;
}

.btn-doc-dl {
    background: #1a56db;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: .3rem .75rem;
    font-size: .7rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: background .15s;
}

.btn-doc-dl:hover {
    background: #1447b5;
    color: #fff;
}

.dl-toast-search {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: .6rem .9rem;
    font-size: .76rem;
    color: #15803d;
    display: none;
    margin-top: .75rem;
}

/* ════════════════════════════════
   CARD HASIL SELEKSI
════════════════════════════════ */
.result-page {
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.result-card-wrap {
    width: 100%;
    max-width: 660px;
}

/* ── Header: latar terang + garis aksen kiri berwarna ── */
.rc-header {
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .1);
    border-bottom: none;
}

.rc-header::before {
    content: '';
    display: block;
    width: 6px;
    flex-shrink: 0;
}

.rc-header.lulus::before    { background: #16a34a; }
.rc-header.tidak::before    { background: #dc2626; }
.rc-header.cadangan::before { background: #d97706; }

.rc-header-inner {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1.2rem .85rem 1rem;
    background: #f8fafc;
    gap: 1rem;
}

.rc-header h2 {
    font-size: .82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 0;
    line-height: 1.4;
}

.rc-header.lulus    h2 { color: #14532d; }
.rc-header.tidak    h2 { color: #7f1d1d; }
.rc-header.cadangan h2 { color: #78350f; }

/* ── Logo pill ── */
.logo-pill {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: .3rem .8rem;
    font-weight: 700;
    font-size: .75rem;
    color: #475569;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: .4px;
}

/* ── Body kartu: putih bersih ── */
.rc-body {
    background: #ffffff;
    border-radius: 0 0 4px 4px;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-top: none;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .18);
    overflow: hidden;
}

/* ── Blok identitas ── */
.rc-id-block {
    padding: 1.4rem 1.5rem 1.1rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.rc-accent-bar {
    width: 3px;
    border-radius: 2px;
    flex-shrink: 0;
    margin-top: 4px;
    align-self: stretch;
    background: #94a3b8; /* fallback — diubah via JS */
}

.rc-id-text { flex: 1; }

.nisn-noreg {
    font-size: .67rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: .25rem;
    font-weight: 500;
}

.student-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.15;
    margin-bottom: .1rem;
    letter-spacing: -.3px;
}

.rc-prodi {
    font-size: .85rem;
    color: #334155;
    font-weight: 600;
}

.rc-univ {
    font-size: .76rem;
    color: #64748b;
    margin-top: 2px;
}

/* ── Grid info ── */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #f1f5f9;
}

.info-grid > div {
    padding: .9rem 1.5rem;
    border-right: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.info-grid > div:nth-child(even) {
    border-right: none;
}

.info-lbl {
    font-size: .62rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .55px;
    font-weight: 600;
    margin-bottom: 3px;
}

.info-val {
    font-size: .88rem;
    font-weight: 600;
    color: #1e293b;
}

/* ── Notice box ── */
.notice-box {
    margin: 1.1rem 1.5rem;
    border-radius: 6px;
    padding: .85rem 1rem;
    font-size: .78rem;
    line-height: 1.6;
}

.notice-default  { background: #f8fafc; border: 1px solid #e2e8f0; color: #334155; }
.notice-lulus    { background: #f0fdf4; border: 1px solid #bbf7d0; color: #14532d; }
.notice-tidak    { background: #fef2f2; border: 1px solid #fecaca; color: #7f1d1d; }
.notice-cadangan { background: #fffbeb; border: 1px solid #fde68a; color: #78350f; }

.notice-box strong {
    font-size: .8rem;
    display: block;
    margin-bottom: 3px;
    font-weight: 700;
}

.notice-box a {
    color: #1a56db;
    font-weight: 600;
    word-break: break-all;
}

/* ── Footer note ── */
.footer-note {
    font-size: .68rem;
    color: #94a3b8;
    line-height: 1.7;
    margin: 0 1.5rem;
    padding: .9rem 0;
    border-top: 1px solid #f1f5f9;
    white-space: pre-line;
}

/* ── Tombol aksi ── */
.btn-sec {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: .78rem;
    font-weight: 500;
    border-radius: 6px;
    padding: .45rem 1rem;
    transition: background .15s, border-color .15s, color .15s;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.btn-sec:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #1e293b;
}

.rc-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .85rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

/* ════════════════════════════════
   PRINT
════════════════════════════════ */
@media print {
    .search-wrapper,
    .result-page {
        background-image: none !important;
        background: #fff !important;
        min-height: unset;
    }
    .search-wrapper::before,
    .result-page::before { display: none !important; }
    #viewCari  { display: none !important; }
    #viewHasil { display: block !important; padding: 0; }
    .no-print  { display: none !important; }
    .rc-body   { box-shadow: none; border: 1px solid #cbd5e1; }
    
    @page {
        size: A4;
        margin: 10mm;
    }

    .btn-sec {
        display: none !important;
    }
}