/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rubik', sans-serif;
    background-color: #F7F7F7;
    color: #000000;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* App Container */
.app-container {
    width: 100%;
    max-width: 544px;
    background-color: #FFFFFF;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    flex: 1;
    padding: 20px 24px 100px 24px; /* Reduced top padding as it's now below top-nav */
}

/* Top Nav (Search Bar only) */
.top-nav {
    padding: 15px 24px 12px 24px;
    background-color: #FFFFFF;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Search Section */
.search-section {
    margin-bottom: 30px;
}

.search-bar {
    position: relative;
}

.search-bar input {
    width: 100%;
    height: 36px;
    padding: 0 45px 0 20px;
    border-radius: 61px;
    border: 1px solid #C5C5C5;
    font-size: 12px;
    color: #666666;
    outline: none;
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

/* Slider Banner Styles */
.hero-banner-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.hero-banner-track {
    display: flex;
    width: 200%; /* Karena ada 2 gambar, maka lebar track menjadi 200% */
    transition: transform 0.5s ease-in-out;
}

.hero-banner-track img {
    width: 50%; /* Masing-masing gambar mengambil setengah dari total track (sama dengan lebar container) */
    height: auto;
    display: block;
    object-fit: cover;
}

/* Style Indikator Titik (Dots) */
.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #FFFFFF;
    width: 20px; /* Membuat dot aktif berbentuk lonjong memanjang */
    border-radius: 4px;
}

/* Promo Section */
.promo-section {
    margin-bottom: 50px;
    text-align: center;
}

.promo-text {
    margin-bottom: 25px;
}

.promo-text p {
    font-size: 14px;
    line-height: 1.4;
}

.promo-text strong {
    font-weight: 500;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px; /* Reduced gap from 10px to 5px */
    max-width: 400px; /* Optional: limit width to bring them even closer */
    margin: 0 auto; /* Center the grid */
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.category-item img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

.category-item span {
    font-size: 12px;
}

/* Urgent Section */
.urgent-section h2 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
}

.grid-container {
    position: relative; /* Container for absolute button */
}

.fundraiser-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 5px 20px 5px; /* Added top and side padding for shadows */
    margin: 0 -5px; /* Offset side padding to keep alignment */
}

.fundraiser-card {
    width: 224px;
    max-width: 224px;
    flex-shrink: 0;
    background: #FFFFFF;
    box-shadow: 0px 0px 14px -3px rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    overflow: hidden;
}

.fundraiser-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.card-content {
    padding: 10px 15px 15px 15px;
}

.organization {
    font-size: 10px;
    color: #666666;
    margin-bottom: 5px;
}

.fundraiser-card h3 {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 8px; /* Reduced margin to fit progress bar */
    height: 34px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.circle-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background-color: #FFFFFF;
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease; /* Added smooth transition */
    opacity: 1;
    visibility: visible;
}

.circle-btn.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.circle-btn:hover {
    background-color: #F7F7F7;
}

.circle-btn:active {
    transform: translateY(-50%) scale(0.9);
}

.prev-btn {
    left: -10px; /* Position on left side */
}

.next-btn {
    right: -10px; /* Position on right side */
}

.progress-container {
    width: 100%;
    height: 6px;
    background-color: #EEEEEE;
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #007BFF; /* Changed to blue */
    border-radius: 10px;
}

.operational-note {
    background-color: #F4F8FF;
    border: 1px solid #E1EDFF;
    padding: 10px 14px;
    font-size: 13px;
    color: #4B5563;
    border-radius: 8px;
    margin-top: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.operational-note svg {
    margin-top: 2px;
    color: #2B7FE4;
    stroke: #2B7FE4;
    flex-shrink: 0;
}

.operational-note strong {
    color: #1E3A8A;
    font-weight: 600;
}

.stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats .label {
    font-size: 10px;
}

.stats .amount {
    font-size: 12px;
    font-weight: 500;
}

/* Footer Note */
.footer-note {
    text-align: left;
    font-size: 18px;
    font-weight: 500;
    margin-top: 50px;
    color: #000000;
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 544px;
    height: 65px;
    background-color: #FFFFFF;
    border-top: 1px solid #EEEEEE;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #666666;
    transition: color 0.3s ease;
}

.nav-item .lucide {
    width: 22px;
    height: 22px;
    stroke-width: 2;
    transition: transform 0.2s ease, stroke 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
    color: #2B7FE4;
}

.nav-item:hover .lucide,
.nav-item.active .lucide {
    stroke: #2B7FE4;
    transform: scale(1.08);
}

.nav-item span {
    font-size: 10px;
}

/* Detail Page Styles */
.detail-page {
    background-color: #FFFFFF;
}

.detail-header {
    height: 60px;
    background-color: #FFFFFF;
    border-bottom: 1px solid #C5C5C5;
    display: flex;
    align-items: center;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-btn {
    color: #000000;
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.detail-header h1 {
    font-size: 16px;
    font-weight: 500;
    color: #1E1E1E;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detail-content {
    flex: 1;
    padding-bottom: 80px;
}

.program-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.content-padding {
    padding: 20px 30px;
}

.program-info h2 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
}

.raised-amount {
    color: #2B7FE4;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
}

.target-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #000000;
    margin-bottom: 10px;
}

.target-info strong {
    font-weight: 500;
}

.days-left {
    color: #666666;
}

.info-section {
    margin-top: 30px;
}

.info-section h3, 
.story-section h3, 
.prayers-section h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
}

.organizer-card {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 1px solid #C5C5C5;
    border-radius: 6px;
    gap: 20px;
}

.avatar {
    width: 51px;
    height: 51px;
    background-color: #F0F2F5;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;
}

.organizer-card .avatar {
    background-image: url("img/profil.jpg");
    background-size: cover;
}

.organizer-details .name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.organizer-details .status {
    font-size: 14px;
    color: #666666;
}

.story-section {
    margin-top: 30px;
}

.story-section .date {
    font-size: 12px;
    color: #666666;
    margin-bottom: 15px;
}

.story-content {
    position: relative;
    max-height: 150px; /* Menampilkan sekitar 5 baris teks */
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.story-content.expanded {
    max-height: 1000px;
}

.story-content::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none; /* Agar tidak menghalangi klik */
}

.story-content.expanded::after {
    display: none;
}

.story-content p {
    font-size: 16px;
    line-height: 1.4;
    color: #666666;
    margin-bottom: 15px;
}

.story-content p strong {
    color: #000000;
    font-weight: 500;
}

.read-more {
    display: block;
    margin-top: 10px;
    color: #2B7FE4;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

.nav-list {
    margin-top: 30px;
    border-top: 1px solid #C5C5C5;
}

.nav-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #C5C5C5;
    font-size: 16px;
    font-weight: 500;
}

.donor-badge {
    background-color: #E2E8F0;
    color: #4A5568;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    line-height: 1.2;
}

.prayers-section {
    margin-top: 30px;
}

.prayer-card {
    padding: 20px;
    background: #FFFFFF;
    box-shadow: 0px 0px 11px -1px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
}

.prayer-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.avatar.small {
    width: 45px;
    height: 45px;
}

.prayer-info .name {
    font-size: 14px;
    font-weight: 500;
}

.prayer-info .time {
    font-size: 10px;
    color: #666666;
}

.prayer-text {
    font-size: 14px;
    color: #666666;
    line-height: 1.4;
}

.detail-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 544px;
    height: 70px;
    background-color: #FFFFFF;
    border-top: 1px solid #EEEEEE;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    z-index: 100;
}

.donate-btn {
    width: 100%;
    height: 48px;
    background-color: #2B7FE4;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

/* Hide scrollbar for fundraiser-grid */
.fundraiser-grid::-webkit-scrollbar {
    display: none;
}
.fundraiser-grid {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ==========================================================================
   Donation Amount Page Styles (Halaman Input Nominal)
   ========================================================================== */

.donation-amount-page {
    background-color: #FFFFFF;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 18px;
    font-weight: 500;
    color: #000000;
    margin-bottom: 25px;
}

/* Nominal Grid & Cards */
.nominal-section {
    margin-top: 20px;
}

.nominal-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nominal-card {
    display: block;
    cursor: pointer;
}

.nominal-radio {
    display: none; /* Sembunyikan radio button asli */
}

.nominal-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
    padding: 0 25px;
    background-color: #FFFFFF;
    border: 1px solid #C5C5C5;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nominal-card-content .amount-text {
    font-size: 22px;
    font-weight: 500;
    color: #000000;
}

.nominal-card-content .chevron-icon {
    color: #C5C5C5;
    display: flex;
    align-items: center;
}

/* Efek Interaksi ketika kartu nominal dipilih */
.nominal-radio:checked + .nominal-card-content {
    border-color: #2B7FE4;
    background-color: rgba(43, 127, 228, 0.05);
}

.nominal-radio:checked + .nominal-card-content .chevron-icon {
    color: #2B7FE4;
}

/* Custom Nominal Input Area */
.custom-nominal-section {
    margin-top: 40px;
    margin-bottom: 100px;
}

.input-custom-group {
    display: flex;
    align-items: center;
    height: 75px;
    padding: 0 25px;
    background-color: #F4F4F4;
    border: 1px solid #C5C5C5;
    border-radius: 6px;
}

.currency-prefix {
    font-size: 22px;
    font-weight: 500;
    color: #000000;
    margin-right: 5px;
}

.custom-amount-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 22px;
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    color: #000000;
}

/* Menghilangkan spin arrows pada input type number */
.custom-amount-input::-webkit-outer-spin-button,
.custom-amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.custom-amount-input {
    -moz-appearance: textfield;
}

/* Notice Text */
.donation-notice {
    margin-top: 15px;
    font-size: 14px;
    color: #666666;
    line-height: 1.4;
}

.donation-notice strong {
    font-weight: 600;
}

/* Footer Adjustments */
.bg-gray-footer {
    background-color: #F7F7F7 !important;
}

.btn-padding-alt {
    margin: 0 40px; /* Memberikan space padding horizontal pada tombol sesuai raw code */
}

.donate-btn {
    width: 100%;
    height: 48px;
    background-color: #2B7FE4;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Rubik', sans-serif;
    /* Tambahan agar teks di dalam tag <a> presisi di tengah */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* ==========================================================================
   Halaman Form Data Diri (Personal Info Page)
   ========================================================================== */

.personal-info-page {
    background-color: #FFFFFF;
}

/* Mengatur jarak antar input */
.form-group {
    margin-bottom: 20px;
}

/* Style untuk Input Text & Email */
.custom-input {
    width: 100%;
    height: 75px;
    padding: 0 25px;
    background-color: #FFFFFF;
    border: 1px solid #C5C5C5;
    border-radius: 6px;
    font-family: 'Rubik', sans-serif;
    font-size: 18px;
    color: #000000;
    outline: none;
    transition: border-color 0.2s ease;
}

.custom-input::placeholder {
    color: #C5C5C5;
}

.custom-input:focus {
    border-color: #2B7FE4; /* Berubah biru saat di-klik */
}

/* Style untuk Textarea (Doa) */
.custom-textarea {
    width: 100%;
    height: 185px;
    padding: 25px;
    background-color: #FFFFFF;
    border: 1px solid #C5C5C5;
    border-radius: 6px;
    font-family: 'Rubik', sans-serif;
    font-size: 18px;
    color: #000000;
    outline: none;
    resize: none; /* Mencegah user menarik ukuran box agar desain tidak rusak */
    transition: border-color 0.2s ease;
}

.custom-textarea::placeholder {
    color: #C5C5C5;
}

.custom-textarea:focus {
    border-color: #2B7FE4;
}

/* Style untuk Checkbox Anonim */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    cursor: pointer;
    padding: 0 5px;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #2B7FE4; /* Mengubah warna checkbox default menjadi biru */
}

.checkbox-label {
    font-size: 14px;
    color: #666666;
    line-height: 1.4;
}

/* Style untuk Teks Bantuan di bawah input kontak */
.help-text {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
    margin-top: 15px;
    padding-left: 5px;
}

.prayer-support-section {
    margin-bottom: 100px;
}

/* ==========================================================================
   Halaman Instruksi Pembayaran (Payment Instruction Page)
   ========================================================================== */

.payment-instruction-page {
    background-color: #FFFFFF;
}

.qr-section {
    margin-top: 10px;
    margin-bottom: 30px;
}

.qr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.qr-title {
    font-size: 18px;
    font-weight: 500;
    color: #000000;
}

.payment-logo {
    width: 112px;
    height: 31px;
    object-fit: contain;
}

.qr-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-image {
    width: 322px;
    height: 320px;
    border: 1px solid #0A62E3;
    border-radius: 20px;
    background-color: #FFFFFF;
}

.payment-details-section {
    margin-bottom: 35px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 14px;
    color: #666666;
}

.detail-value.value-bold {
    font-weight: 600;
    color: #666666;
}

.total-row {
    border-top: 1px dashed #C5C5C5;
    margin-top: 15px;
    padding-top: 20px;
}

.label-large {
    font-size: 18px;
    color: #666666;
}

.value-large {
    font-size: 18px;
    font-weight: 600;
    color: #666666;
}

.action-group {
    margin-bottom: 45px;
}

.guide-section {
    margin-bottom: 40px;
}

.guide-title {
    font-size: 16px;
    font-weight: 500;
    color: #000000;
    margin-bottom: 15px;
}

.guide-list {
    padding-left: 20px;
    font-size: 16px;
    color: #666666;
    line-height: 1.75;
}

.guide-list li {
    margin-bottom: 10px;
}

.action-group-secondary {
    margin-top: 20px;
    margin-bottom: 50px; /* Jarak aman scroll di paling bawah */
}

/* Style untuk tombol outline sekunder */
.btn-outline {
    width: 100%;
    height: 48px;
    background-color: #FFFFFF;
    color: #2B7FE4;
    border: 1px solid #2B7FE4;
    border-radius: 8px;
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background-color: rgba(43, 127, 228, 0.05);
}

/* Toast Coming Soon */
.coming-soon-toast {
    position: fixed;
    bottom: 85px; /* Sedikit di atas bottom nav */
    left: 50%;
    transform: translate(-50%, 100px);
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.24);
    width: max-content;
    max-width: 90%;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.coming-soon-toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

.coming-soon-toast .toast-icon {
    width: 20px;
    height: 20px;
    stroke: #2B7FE4; /* Menggunakan warna biru utama aplikasi */
    stroke-width: 2.5;
}