/* ========================================================
   [GLOBAL PRIMARY STYLING - SAPU BERSIH BACKGROUND]
   ======================================================== */
html, 
body, 
html body,
body.sign-in, 
body.blankon,
body.page-header-fixed,
#sign-wrapper, 
.sign-wrapper, 
.sign-in, 
.sign-body,
.wrapper, 
.wrap, 
#page-content, 
.page-content,
.body-content,
section {
    background-color: #eef2f6 !important;
    background-image: none !important;
    box-shadow: none !important;
}

body::before, 
body::after, 
#sign-wrapper::before, 
#sign-wrapper::after {
    display: none !important;
    background: none !important;
}

/* ========================================================
   [YII2 DEFAULT STYLING]
   ======================================================== */
.wrap { min-height: 100%; height: auto; margin: 0 auto -60px; padding: 0 0 60px; }
.wrap > .container { padding: 70px 15px 20px; }
.footer { height: 60px; background-color: #f5f5f5; border-top: 1px solid #ddd; padding-top: 20px; }
.jumbotron { text-align: center; background-color: transparent; }
.jumbotron .btn { font-size: 21px; padding: 14px 24px; }
.not-set { color: #c55; font-style: italic; }

a.asc:after, a.desc:after { position: relative; top: 1px; display: inline-block; font-family: 'Glyphicons Halflings'; font-style: normal; font-weight: normal; line-height: 1; padding-left: 5px; }
a.asc:after { content: "\e151"; }
a.desc:after { content: "\e152"; }
.sort-numerical a.asc:after { content: "\e153"; }
.sort-numerical a.desc:after { content: "\e154"; }
.sort-ordinal a.asc:after { content: "\e155"; }
.sort-ordinal a.desc:after { content: "\e156"; }

.grid-view th { white-space: nowrap; }
.hint-block { display: block; margin-top: 5px; color: #999; }
.error-summary { color: #a94442; background: #fdf7f7; border-left: 3px solid #eed3d7; padding: 10px 20px; margin: 0 0 15px 0; }
.nav li > form > button.logout { padding: 15px; border: none; }
@media(max-width:767px) { .nav li > form > button.logout { display:block; text-align: left; width: 100%; padding: 10px 15px; } }
.nav > li > form > button.logout:focus, .nav > li > form > button.logout:hover { text-decoration: none; }
.nav > li > form > button.logout:focus { outline: none; }

/* ========================================================
   [HALAMAN SIGNUP / REGISTRASI KHUSUS]
   ======================================================== */
.signup-page-container { padding: 40px 15px; display: flex; align-items: flex-start; justify-content: center; min-height: 80vh; }
.modern-signup-card { background: #ffffff; width: 100%; max-width: 550px; border-radius: 16px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08); padding: 40px; margin: 0 auto; position: relative; z-index: 10; }
.signup-header { text-align: center; margin-bottom: 25px; }
.signup-header h3 { font-size: 24px; font-weight: 800; color: #1e293b; margin-top: 0; margin-bottom: 10px; }
.signup-header p { color: #64748b; font-size: 14px; }
.modern-accordion details summary::-webkit-details-marker { display: none; }
.modern-accordion details[open] summary .fa-chevron-down { transform: rotate(180deg); transition: transform 0.3s; }
.modern-signup-card .form-group { margin-bottom: 20px; }
.modern-signup-card label.control-label { font-weight: 700; color: #475569; font-size: 13px; margin-bottom: 8px; display: block; text-align: left; }
.modern-signup-card .form-control { border-radius: 8px; padding: 10px 15px; height: auto; border: 1px solid #cbd5e1; font-size: 14px; color: #334155; box-shadow: none; transition: all 0.3s ease; }
.modern-signup-card .form-control:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); }
.modern-signup-card .select2-container--krajee .select2-selection--single { border-radius: 8px !important; height: 42px !important; border: 1px solid #cbd5e1 !important; padding: 6px 12px !important; }
.modern-signup-card .select2-container--krajee .select2-selection--single .select2-selection__arrow { height: 40px !important; }
.modern-signup-card .hasDatepicker { border-radius: 8px !important; padding: 10px 15px !important; border: 1px solid #cbd5e1 !important; width: 100%; box-sizing: border-box; }
.math-captcha-box { background-color: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px; padding: 15px; text-align: center; margin-top: 10px; margin-bottom: 25px; }
.btn-signup { width: 100%; padding: 14px; border-radius: 8px; font-size: 16px; font-weight: 700; letter-spacing: 0.5px; background-color: #2563eb; color: #ffffff; border: none; transition: background-color 0.3s ease, transform 0.1s ease; }
.btn-signup:hover { background-color: #1d4ed8; color: #ffffff; box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2); }
.btn-signup:active { transform: translateY(2px); }
.login-link { text-align: center; margin-top: 25px; font-size: 14px; color: #64748b; }
.login-link a { color: #2563eb; font-weight: 700; text-decoration: none; }
.login-link a:hover { text-decoration: underline; }
@media (max-width: 767px) { .modern-signup-card { padding: 25px 20px; } }

/* ========================================================
   [HALAMAN CEK STATUS KELULUSAN]
   ======================================================== */
.cek-page-container { padding: 40px 15px; display: flex; align-items: flex-start; justify-content: center; min-height: 70vh; }
.cek-modern-card { background-color: #ffffff; width: 100%; max-width: 750px; border-radius: 16px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08); overflow: hidden; border: none; margin: 0 auto; }
.cek-header-modern { padding: 45px 30px 25px 30px; text-align: center; }
.cek-header-modern h3 { margin: 10px 0; font-weight: 800; font-size: 24px; color: #1e293b; }
.cek-search-box { background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 12px; padding: 20px; margin: 0 30px 25px 30px; }
.flex-search-form { display: flex; gap: 10px; align-items: center; }
.flex-grow { flex-grow: 1; margin-bottom: 0 !important; }
.search-input-modern { height: 48px !important; border-radius: 8px !important; font-size: 15px !important; font-weight: 700 !important; text-align: center; border: 1px solid #cbd5e1 !important; }
.search-input-modern:focus { border-color: #0ea5e9 !important; box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15) !important; }
.cek-btn-search { height: 48px; background: #0ea5e9; color: white; border-radius: 8px; padding: 0 25px; font-weight: 800; font-size: 14px; border: none; transition: all 0.3s ease; }
.cek-btn-search:hover { background: #0284c7; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(14, 165, 233, 0.2); color: white; }
.cek-result-body { padding: 0 30px 30px 30px; }
.cek-status-banner { text-align: center; padding: 20px; border-radius: 12px; margin-bottom: 25px; }
.cek-status-lulus { background-color: #dcfce7; border: 1px solid #bbf7d0; color: #166534; }
.cek-status-tidak { background-color: #fee2e2; border: 1px solid #fecaca; color: #991b1b; }
.cek-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 25px; }
.cek-info-item { background: #f8fafc; padding: 15px; border-radius: 10px; border: 1px solid #e2e8f0; }
.cek-info-label { font-size: 11px; color: #64748b; font-weight: 700; text-transform: uppercase; margin-bottom: 4px;}
.cek-info-value { font-size: 14px; color: #1e293b; font-weight: 800; }
.cek-footer { background: #f1f5f9; padding: 15px; text-align: center; font-size: 12px; color: #94a3b8; border-top: 1px solid #e2e8f0; }

/* ========================================================
   [HALAMAN LANDING PAGE (BERANDA)]
   ======================================================== */
.body-content { padding-top: 20px; background-color: transparent !important; }

/* 1. Modern Ticker */
.modern-ticker-wrap { width: 100%; overflow: hidden; background: linear-gradient(135deg, #0d47a1, #1976d2); color: #ffffff; padding: 12px 20px; border-radius: 12px; box-shadow: 0 4px 15px rgba(13, 71, 161, 0.2); margin-bottom: 25px; display: flex; align-items: center; }
.modern-ticker-move { display: inline-block; white-space: nowrap; animation: ticker 25s linear infinite; font-weight: 500; letter-spacing: 0.5px; }
.modern-ticker-move:hover { animation-play-state: paused; }
@keyframes ticker { 0% { transform: translateX(100vw); } 100% { transform: translateX(-100%); } }

/* 2. Base Modern Card */
.modern-card { background-color: #ffffff; border-radius: 12px; box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08); margin-bottom: 24px; overflow: hidden; border: none; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.modern-card-header { background: linear-gradient(135deg, #e0f2fe 0%, #f8fafc 100%); padding: 18px 20px; border-bottom: 2px solid #bae6fd; display: flex; justify-content: space-between; align-items: center; }
.modern-card-header h3, .modern-card-header h4 { margin: 0; font-size: 15px; font-weight: 700; color: #0369a1; text-transform: uppercase; letter-spacing: 0.5px; }
.modern-card-body { padding: 20px; }

/* 3. Pengumuman List */
.modern-media { display: flex; align-items: flex-start; gap: 15px; padding-bottom: 15px; margin-bottom: 15px; border-bottom: 1px dashed #e2e8f0; }
.modern-media:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.modern-media img { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; background: #f1f5f9; padding: 5px; }
.modern-media-body h4 { margin: 0 0 5px 0; font-size: 15px; line-height: 1.3; }
.modern-media-body a { color: #0f172a; text-decoration: none; font-weight: 600; }
.modern-media-body a:hover { color: #2563eb; }
.modern-media-body p { color: #64748b; font-size: 13px; margin: 0; line-height: 1.5; }

/* 4. Jalur Pendaftaran Card */
.jalur-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.jalur-card { display: flex; flex-direction: column; height: 100%; position: relative; }
.jalur-card:hover { transform: translateY(-8px); box-shadow: 0 12px 30px rgba(59, 130, 246, 0.15); }
.jalur-img { width: 100%; height: 230px; object-fit: cover; border-bottom: 1px solid #f0f4f8; }

/* Pita Miring (Ribbon) */
.modern-ribbon { position: absolute; top: -5px; right: -5px; width: 110px; height: 110px; overflow: hidden; z-index: 10; }
.modern-ribbon span { position: absolute; display: block; width: 160px; padding: 8px 0; color: #fff; font-weight: bold; font-size: 13px; text-transform: uppercase; text-align: center; left: -15px; top: 22px; transform: rotate(45deg); box-shadow: 0 4px 6px rgba(0,0,0,0.1); letter-spacing: 1px; }
.ribbon-buka span { background: #7cb342; }
.ribbon-tutup span { background: #94a3b8; }

.jalur-details { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.jalur-title { margin: 0 0 10px 0; font-size: 16px; font-weight: 700; color: #1e293b; padding-right: 20px; }
.jalur-meta { font-size: 12px; color: #64748b; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #f1f5f9; display: flex; justify-content: space-between; }
.btn-jalur { display: block; text-align: center; padding: 10px 15px; border-radius: 8px; font-weight: 600; text-decoration: none; transition: all 0.3s ease; margin-top: 15px; }
.btn-daftar { background-color: #2563eb; color: #fff; }
.btn-daftar:hover { background-color: #1d4ed8; color: #fff; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); }
.btn-tutup { background-color: #e2e8f0; color: #64748b; cursor: not-allowed; }

/* 5. Modern Accordion */
.modern-accordion { margin-bottom: 10px; background: #f8fafc; border-radius: 8px; border: 1px solid #e2e8f0; overflow: hidden; flex-grow: 1; }
.modern-accordion summary { padding: 12px 15px; font-size: 13px; font-weight: 600; color: #334155; cursor: pointer; list-style: none; position: relative; user-select: none; transition: background-color 0.2s ease; }
.modern-accordion summary::-webkit-details-marker { display: none; }
.modern-accordion summary:hover { background-color: #f1f5f9; }
.modern-accordion summary::after { content: '\f107'; font-family: 'FontAwesome'; position: absolute; right: 15px; top: 50%; transform: translateY(-50%); transition: transform 0.3s ease; }
.modern-accordion[open] summary::after { transform: translateY(-50%) rotate(180deg); }
.modern-accordion .accordion-content { padding: 15px; border-top: 1px solid #e2e8f0; font-size: 13px; color: #475569; background: #ffffff; line-height: 1.6; }

/* 6. Quick Links Sidebar */
.quick-link-btn { display: flex; align-items: center; width: 100%; padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 14px; margin-bottom: 10px; transition: transform 0.2s, box-shadow 0.2s; text-decoration: none; }
.quick-link-btn i { margin-right: 12px; font-size: 18px; }
.quick-link-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); color: inherit; }

/* 7. Sidebar List */
.sidebar-list { list-style: none; margin: 0; padding: 0; }
.sidebar-list li { border-bottom: 1px solid #f1f5f9; }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a { display: flex; align-items: center; padding: 12px 20px; text-decoration: none; color: #475569; font-size: 13px; font-weight: 600; border-left: 3px solid transparent; transition: all 0.3s ease; }
.sidebar-list a:hover { background-color: #eff6ff; padding-left: 25px; color: #2563eb; border-left: 3px solid #2563eb; }
.contact-icon-box { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; background-color: #e0f2fe; color: #0284c7; border-radius: 50%; margin-right: 12px; font-size: 14px; transition: all 0.3s ease; }
.sidebar-list a:hover .contact-icon-box { background-color: #0284c7; color: #fff; }

@media (max-width: 767px) {
    .jalur-grid { grid-template-columns: 1fr; }
    .modern-media { flex-direction: column; align-items: flex-start; }
}
/* ========================================================
   [HALAMAN BACA BERITA / SINGLE POST / KONTEN]
   ======================================================== */
.modern-content-card {
    background: #ffffff; 
    border-radius: 16px; 
    padding: 35px; 
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04); 
    border: 1px solid #f8fafc; 
    margin-bottom: 30px;
}

.modern-content-card img { 
    max-width: 100%; 
    height: auto; 
    border-radius: 8px; 
}

.modern-content-card p { 
    line-height: 1.7; 
    color: #334155; 
    font-size: 14.5px; 
}

.modern-content-card h1, 
.modern-content-card h2, 
.modern-content-card h3 { 
    color: #0f172a; 
    font-weight: 800; 
    margin-top: 0; 
}

/* SIDEBAR CARDS */
.modern-sidebar-card {
    background: #ffffff; 
    border-radius: 16px; 
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04); 
    border: 1px solid #f8fafc; 
    overflow: hidden; 
    margin-bottom: 25px;
}

.sidebar-header {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%); 
    padding: 20px 25px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    color: white;
}

.sidebar-header h3 { 
    margin: 0; 
    font-size: 15px; 
    font-weight: 800; 
    letter-spacing: 0.5px; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

.sidebar-header .social-icons a { 
    color: white; 
    background: rgba(255,255,255,0.2); 
    width: 28px; 
    height: 28px; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
    margin-left: 5px; 
    transition: all 0.3s; 
}

.sidebar-header .social-icons a:hover { 
    background: white; 
    color: #0284c7; 
    transform: translateY(-2px); 
}

/* List Kontak Sidebar */
.modern-contact-list { list-style: none; padding: 0; margin: 0; }
.modern-contact-list li { border-bottom: 1px dashed #e2e8f0; }
.modern-contact-list li:last-child { border-bottom: none; }
.modern-contact-list a {
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 15px 25px; 
    color: #475569; 
    font-weight: 600; 
    font-size: 13.5px; 
    text-decoration: none !important; 
    transition: all 0.3s;
}
.modern-contact-list a i { color: #0ea5e9; font-size: 18px; width: 24px; text-align: center; }
.modern-contact-list a:hover { background: #f0f9ff; color: #0284c7; padding-left: 30px; }

/* Link Eksternal Sidebar */
.sidebar-body { padding: 25px; }
.modern-link-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.modern-link-tags li { display: block; width: 100%; }
.modern-link-tags a {
    display: flex; 
    align-items: center; 
    gap: 10px; 
    background: #f1f5f9; 
    color: #475569; 
    padding: 12px 18px; 
    border-radius: 10px; 
    font-weight: 700; 
    font-size: 13px; 
    text-decoration: none !important; 
    transition: all 0.3s; 
    border: 1px solid #e2e8f0;
}
.modern-link-tags a i { color: #0ea5e9; font-size: 16px; }
.modern-link-tags a:hover { 
    background: #0ea5e9; 
    color: white; 
    border-color: #0ea5e9; 
    transform: translateY(-2px); 
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.2); 
}
.modern-link-tags a:hover i { color: white; }

/* ========================================================
   [HALAMAN LOGIN]
   ======================================================== */
.modern-login-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 10px 15px;
    min-height: 70vh;
}

.modern-login-card {
    background: #ffffff;
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.modern-login-card .sign-header {
    text-align: center;
    margin-bottom: 25px;
}

.modern-login-card .sign-header h3 {
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
    margin-top: 0;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.modern-login-card .form-group {
    margin-bottom: 20px;
}

.modern-login-card label.control-label {
    font-weight: 700;
    color: #475569;
    font-size: 13px;
    margin-bottom: 8px;
    display: block;
    text-align: left;
}

.modern-login-card .form-control {
    border-radius: 8px;
    padding: 12px 15px;
    height: auto;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    box-shadow: none;
    transition: all 0.3s ease;
}

.modern-login-card .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.modern-login-card .btn-login {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    transition: all 0.3s ease;
}

.modern-login-card .btn-login:hover {
    background-color: #1d4ed8;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}
/* Memberikan jarak (padding) di dalam area form agar tidak mepet ke tepi */
.modern-login-card .sign-body {
    padding: 10px 35px 30px 35px !important; 
}

/* Mencegah Bootstrap menarik input secara paksa ke pinggir luar */
.modern-login-card .form-group {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Memastikan tombol juga sejajar rapi */
.modern-login-card .btn-login {
    width: 100%;
    margin-top: 10px;
}

/* ========================================================
   [MODERN DATA TABLE / GRIDVIEW YII2]
   ======================================================== */
.modern-data-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    border: 1px solid #f8fafc;
    overflow: hidden;
    margin-bottom: 30px;
}

.modern-data-header {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    padding: 20px 25px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modern-data-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.modern-data-body {
    padding: 25px;
}

.modern-summary-badge {
    display: inline-block;
    background: #f0fdf4;
    color: #166534;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 20px;
    border: 1px solid #bbf7d0;
}

/* Merombak Tabel Bawaan Bootstrap/Yii2 */
.modern-grid-view .table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin-bottom: 0;
    border: none;
}

.modern-grid-view .table thead th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    padding: 15px;
    border-bottom: 2px solid #e2e8f0;
    border-top: none;
    white-space: nowrap;
}

.modern-grid-view .table tbody td {
    padding: 15px;
    vertical-align: middle;
    color: #334155;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
    border-top: none;
}

.modern-grid-view .table tbody tr:last-child td {
    border-bottom: none;
}

.modern-grid-view .table tbody tr:hover td {
    background-color: #f0f9ff; /* Efek highlight biru sangat muda saat baris disorot mouse */
}

/* Merombak Summary & Pagination Yii2 */
.modern-grid-view .summary {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 15px;
    font-weight: 600;
}

.modern-grid-view .pagination > li > a,
.modern-grid-view .pagination > li > span {
    border-radius: 6px;
    margin: 0 4px;
    color: #0ea5e9;
    border: 1px solid #e2e8f0;
    font-weight: 600;
}

.modern-grid-view .pagination > .active > a {
    background-color: #0ea5e9;
    border-color: #0ea5e9;
    color: white;
}