#semester-select,
.choices__inner,
.choices__list--single {
    text-align: center;
}

.choices[data-type*="select-one"] .choices__inner {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px !important;
}

.prestasi-choices .choices__placeholder {
    opacity: 1 !important;
    color: #111827 !important;
}

.prestasi-choices .choices__list--single {
    width: 100%;
    padding: 0 !important;
}

/* Khusus Pendaftaran — abu-abu placeholder */
.pendaftaran-choices .choices__placeholder {
    opacity: 1 !important;
    color: #9ca3af !important;
}

/* Prevent text wrapping in compact Choices.js dropdowns */
.choices__list--single .choices__item,
.choices__list--single .choices__placeholder {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.875rem;
}

/* Choices.js dropdown with icon on the left */
.choices-with-icon > div:first-child {
    z-index: 2;
    pointer-events: none;
}
.choices-with-icon .choices__inner {
    padding-left: 2.75rem !important;
    text-align: left !important;
}
.choices-with-icon .choices__list--single {
    text-align: left;
}
.choices-with-icon .choices__input {
    padding-left: 0 !important;
}

.choices__list--dropdown .choices__item {
    text-align: center;
}
select.form-input option[value=""] {
    text-align: center;
}
/* ========== WELCOME PAGE CUSTOM STYLES MOVED FROM welcome.blade.php ========== */
:root {
    --emerald-deep: #064E3B;
    --emerald-light: #059669;
    --gold-warm: #D97706;
    --gold-soft: #F59E0B;
    --alabaster: #FDFBF7;
}
html, body, * {
    -ms-overflow-style: none !important; /* IE and Edge */
    scrollbar-width: none !important; /* Firefox */
}
html::-webkit-scrollbar, body::-webkit-scrollbar, *::-webkit-scrollbar {
    display: none !important;
}
/* Hide native select arrow for all browsers, and force custom icon */
select.hide-native-arrow,
select.hide-native-arrow:focus {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background: none !important;
    box-shadow: none !important;
    border-radius: 1.25rem;
}
select.hide-native-arrow::-ms-expand {
    display: none;
}
/* Hide native arrow for Firefox */
select.hide-native-arrow:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #000;
}
/* Choices.js custom style for clean, proportional dropdown */

/* Choices.js custom style for clean, proportional dropdown */
.choices {
    width: 100%;
    font-size: 0.97rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin-bottom: 0;
}
.choices__inner {
    background: #FAFBFC !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 1rem !important;
    min-height: 52px !important;
    height: 52px !important;
    padding: 0.875rem 1.25rem !important;
    box-shadow: none !important;
    transition: border-color 0.2s;
    display: flex;
    align-items: center;
    font-size: 0.97rem !important;
    line-height: 1.5 !important;
}
.choices__inner:focus, .choices__inner.is-focused {
    border-color: #059669;
    background: #fff;
}
.choices__list--dropdown, .choices__list[aria-expanded] {
    border-radius: 1rem !important;
    box-shadow: 0 8px 24px -8px #064e3b22;
    border: 1.5px solid #e5e7eb;
    margin-top: 0.2rem;
    font-size: 0.97rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    z-index: 100;
    overflow: hidden;
}
.choices__item--selectable {
    padding: 0.6rem 1.25rem;
    border-radius: 0.7rem;
    transition: background 0.15s;
}
.choices__item--selectable.is-highlighted {
    background: #f0fdf4;
    color: #059669;
}
.choices__placeholder {
    color: #000000 !important;
    opacity: 1 !important;
}
.choices[data-type*=select-one] .choices__inner::after {
    border-color: #059669 transparent transparent transparent;
    margin-top: -3px;
}
.choices__input {
    font-size: 0.97rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    padding: 0.3rem 0.5rem;
}
/* Premium Button Enhancement */
.btn-premium {
    background: linear-gradient(135deg, var(--emerald-deep), var(--emerald-light));
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 1.25rem;
    font-weight: 700;
    box-shadow: 0 15px 30px -10px rgba(6, 78, 59, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -10px rgba(6, 78, 59, 0.4);
}
.btn-premium::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: 0.6s;
}
.btn-premium:hover::after {
    left: 100%;
}
.premium-card{
    background: #ffffff;
    border-radius: 3rem;
    padding: 3rem;
    border: 1px solid rgba(6, 78, 59, 0.05);
    box-shadow: 0 10px 40px -15px rgba(0, 0, 0, 0.05);
    transition: all 0.5s ease;
}
.premium-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -20px rgba(6, 78, 59, 0.1);
    border-color: rgba(6, 78, 59, 0.15);
}
.text-gradient {
    background: linear-gradient(135deg, var(--emerald-deep), var(--gold-warm));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.gold-border {
    border-left: 5px solid var(--gold-warm);
    padding-left: 1.5rem;
}
.form-input {
    width: 100%;
    background: #F9FAFB;
    border: 2px solid transparent;
    padding: 1.25rem 1.5rem;
    border-radius: 1.25rem;
    outline: none;
    transition: 0.3s;
}
.form-input:focus {
    border-color: var(--emerald-deep);
    background: white;
    box-shadow: 0 0 0 5px rgba(6, 78, 59, 0.05);
}
.gallery-item {
    position: relative;
    border-radius: 2.5rem;
    overflow: hidden;
    height: 350px;
    cursor: pointer;
}
.gallery-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 78, 59, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s ease;
}
.gallery-item:hover .gallery-content {
    opacity: 1;
    transform: translateY(0);
}
/* Custom Scrollbar for form expansion */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
/*
|--------------------------------------------------------------
| Custom Styles for Beasiswa Masjid Web
|--------------------------------------------------------------
| Gabungan dari style custom yang sebelumnya inline di setiap form.
| Silakan gunakan class yang dibutuhkan di setiap form.
*/

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--alabaster);
    color: #1F2937;
    overflow-x: hidden;
    scroll-behavior: smooth;
}
.font-playfair {
    font-family: 'Playfair Display', serif;
}
.form-input {
    width: 100%;
    background: #FAFBFC;
    border: 2px solid #e5e7eb;
    padding: 0.875rem 1.25rem;
    border-radius: 1rem;
    outline: none;
    transition: all 0.3s ease;
    font-size: 0.97rem;
    color: #1f2937;
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 52px;
    height: 52px;
    line-height: 1.5;
}
.form-input:focus {
    border-color: #059669;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
    background: #fff;
}
.form-input:hover {
    border-color: #d1d5db;
}
.section-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #064E3B;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #ecfdf5;
}
.form-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}
.form-card:hover {
    box-shadow: 0 8px 30px rgba(5, 150, 105, 0.06);
}
.label-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.5rem;
    display: block;
}
.label-hint {
    font-size: 0.65rem;
    color: #9ca3af;
    font-weight: 500;
    margin-left: 0.25rem;
}
/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Islamic background pattern */
.islamic-bg {
    background-color: var(--alabaster);
    background-image:
        radial-gradient(var(--emerald-deep) 0.5px, transparent 0.5px),
        radial-gradient(var(--emerald-deep) 0.5px, var(--alabaster) 0.5px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    opacity: 0.05;
    position: fixed;
    inset: 0;
    z-index: -1;
}
/* Card and highlight styles */
.step-card {
    background: white;
    border-radius: 2rem;
    padding: 2rem;
    border: 1px solid rgba(6, 78, 59, 0.06);
    box-shadow: 0 8px 30px -10px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
}
.highlight-box {
    background: linear-gradient(135deg, #fef9c3 60%, #f0fdf4 100%);
    border-radius: 2rem;
    padding: 2rem;
    border: 1.5px solid #fde68a;
    box-shadow: 0 8px 30px -10px #f59e0b22;
    transition: all 0.4s ease;
}
.highlight-box .text-cta-title {
    color: #92400e;
    font-weight: 800;
    letter-spacing: 0.01em;
}
.highlight-box .cta-btn-main {
    background: linear-gradient(90deg, #f59e0b 60%, #059669 100%);
    color: #fff !important;
    border: none;
    font-weight: 800;
    box-shadow: 0 4px 16px -4px #f59e0b44;
    transition: all 0.2s;
}
.highlight-box .cta-btn-main:hover {
    background: linear-gradient(90deg, #059669 60%, #f59e0b 100%);
    color: #fff !important;
    box-shadow: 0 8px 24px -6px #05966944;
}
.highlight-box .cta-btn-secondary {
    background: rgba(255,255,255,0.2);
    color: #92400e !important;
    border: 1.5px solid #fde68a;
    font-weight: 700;
    transition: all 0.2s;
}
.highlight-box .cta-btn-secondary:hover {
    background: #fef9c3;
    color: #92400e !important;
}
.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px -15px rgba(6, 78, 59, 0.12);
    border-color: rgba(6, 78, 59, 0.15);
}
.berkas-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid #F3F4F6;
}
.berkas-item:last-child {
    border-bottom: none;
}
/* Table and print styles for cetak */
body.print-preview-mode {
    background-color: #525659;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    margin: 0;
    font-family: Arial, sans-serif;
    min-height: 100vh;
}
body.print-preview-mode .print-btn {
    position: fixed;
    top: 20px;
    right: 30px;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
body.print-preview-mode .page-break {
    background: white;
    width: 210mm;
    min-height: 297mm;
    padding: 2.5cm 2cm 2cm 2.5cm;
    margin-bottom: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    box-sizing: border-box;
    page-break-after: always;
    position: relative;
}

@page {
    size: A4;
    margin: 0; /* Margin 0 removes the browser headers and footers */
}
@media print {
    body.print-preview-mode {
        background-color: white;
        padding: 0;
        display: block;
    }
    body.print-preview-mode .page-break {
        width: auto;
        min-height: auto;
        padding: 2.5cm 2cm 2cm 2.5cm; /* Maintain padding instead of page margin */
        margin-bottom: 0;
        box-shadow: none;
    }
    .print-btn {
        display: none !important;
    }
    .hide-on-print {
        display: none !important;
    }
}
.page-break { page-break-after: always; }
.text-center { text-align: center; }
.font-bold { font-weight: bold; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
table { width: 100%; border-collapse: collapse; }
.table-data td { padding: 4px 0; vertical-align: top; }
.col-label { width: 33%; }
.col-colon { width: 3%; text-align: center; }
.col-value { width: 64%; }
.table-pendidikan td { padding: 4px 0; vertical-align: top; }
.col-pendidikan-label { width: 22%; }
.col-pendidikan-colon { width: 3%; text-align: center; }
.col-pendidikan-value { width: 35%; }
.col-pendidikan-lulus { width: 40%; }
.table-aktivitas td { padding: 4px 0; vertical-align: top; }
.col-aktivitas-no { width: 48%; }
.col-aktivitas-jabatan { width: 52%; }
.signature-box { float: right; width: 50%; text-align: center; margin-top: 40px; }
/* Admin layout overrides */
.sidebar-active {
    background: linear-gradient(to right, #064E3B, #059669);
    color: white !important;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.glass-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
}
.text-xs { font-size: 0.85rem !important; }
.text-sm { font-size: 1rem !important; }
th { font-size: 0.9rem !important; }
td { font-size: 1.05rem !important; }

/* Navbar glass effect fix: make background solid on scroll */
.glass-nav, .nav-scrolled {
    background: rgba(255,255,255,0.98) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(6, 78, 59, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== PRESTASI ROW ANIMATIONS ========== */
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(8px); }
}

/* Prestasi bukti upload styling */
.prestasi-bukti-input {
    font-size: 0.625rem;
    color: #9ca3af;
    width: 100%;
    cursor: pointer;
}
.prestasi-bukti-input::file-selector-button {
    margin-right: 0.375rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.375rem;
    border: none;
    font-size: 0.5625rem;
    font-weight: 700;
    background: #e5e7eb;
    color: #4b5563;
    cursor: pointer;
    transition: background 0.2s;
}
.prestasi-bukti-input:hover::file-selector-button {
    background: #d1fae5;
    color: #065f46;
}

/* Choices.js inside prestasi rows - compact styling */
.prestasi-row .choices {
    margin-bottom: 0;
}

/* Force dropdowns to expand dynamically based on selected content */
.prestasi-row .choices__list--single,
.aktivitas-row .choices__list--single {
    width: max-content !important;
    min-width: 100%;
}
.prestasi-row .choices__list--single .choices__item,
.aktivitas-row .choices__list--single .choices__item {
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
}
.prestasi-row .choices.is-open {
    z-index: 100 !important;
}
.prestasi-row:has(.choices.is-open) {
    position: relative;
    z-index: 50;
}
.prestasi-row .choices__inner {
    min-height: 44px !important;
    height: 44px !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 0.75rem !important;
    font-size: 0.875rem !important;
}
.prestasi-row .choices__list--dropdown {
    font-size: 0.875rem;
}
.prestasi-row .choices__item--selectable {
    padding: 0.5rem 0.75rem;
}
.prestasi-row .prestasi-nama {
    min-height: 44px !important;
    height: 44px !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 0.75rem !important;
    font-size: 0.875rem !important;
}
