/* --- HALAMAN TRANSACTION (FULL PUTIH & COMPACT) --- */

/* TRIK PENTING: Hapus background abu-abu dari container luar tanpa merusak halaman lain */
.transaction-page {
    position: relative;
    z-index: 1;
    background-color: #ffffff !important; /* Paksa background putih */
    margin: 0 !important; /* Hapus margin atas */
    padding-top: 0 !important;
    padding-bottom: 20px;
    min-height: 100vh;
    width: 100%;
}

/* Header - Jarak diperbaiki & Back digeser dengan proper */
.transaction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px; /* Padding normal */
    margin-bottom: 16px;
}
.transaction-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    flex: 1; /* Memaksa teks berada di tengah */
    text-align: center;
}
.back-btn {
    background: none; 
    border: none; 
    font-size: 18px; 
    cursor: pointer; 
    color: #000; 
    padding: 0;
    margin-left: 0; /* Back tetap di kiri */
}

/* Tabs - Ukuran dikecilkan */
.tab-container {
    display: flex; gap: 8px; margin: 0 16px 20px 16px;
}
.tab-btn {
    flex: 1;
    padding: 8px 0;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background: #fff;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.tab-btn.active {
    background: #f5a623; border-color: #f5a623; color: #fff;
}

/* Amount Input - Ukuran dikecilkan */
.amount-input-group {
    margin: 0 16px 16px 16px;
    border: 1px solid #f5a623;
    border-radius: 10px;
    padding: 14px 12px;
    position: relative;
    background: #fff;
}
.amount-input-group label {
    position: absolute; top: -7px; left: 12px;
    background: #fff; padding: 0 4px;
    font-size: 11px; color: #f5a623; font-weight: 500;
}
.amount-wrapper {
    display: flex; align-items: center; justify-content: space-between;
}
.amount-field {
    width: 100%; border: none; font-size: 18px; font-weight: 500; outline: none; background: transparent;
}
.amount-field.text-red { color: #ff3b30; }
.amount-field.text-green { color: #4cd964; }
.currency-label { font-size: 14px; font-weight: 500; color: #333; margin-left: 10px; }

/* Form Group Select - Ukuran lebih compact */
.form-group.select-group {
    display: flex; align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0; cursor: pointer;
}
.icon-box {
    width: 36px; height: 36px; border-radius: 50%;
    background: #8e8e93; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; margin-right: 12px; flex-shrink: 0;
}
.icon-box.bg-orange { background: #f5a623; }

.text-info {
    display: flex; flex-direction: column; flex: 1;
}
.text-info .label { font-size: 13px; color: #333; font-weight: 500; margin-bottom: 2px; }
.text-info .value { font-size: 13px; color: #333; font-weight: 400; }
.text-info .value.placeholder { color: #ccc; }

/* --- LAYOUT DAY & TIME (LEBIH COMPACT) --- */
.form-row { 
    display: flex; 
    gap: 0;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0; 
}
.form-group.half { 
    flex: 1; 
    display: flex;
    flex-direction: column;
    padding: 0;
}
.form-group.half:first-child { padding-right: 10px; }
.form-group.half:last-child { padding-left: 10px; }

.value-group { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    margin-top: 4px; 
}
.value-group .icon-gray { color: #333; font-size: 16px; }
.date-display, .time-display { font-size: 14px; font-weight: 500; color: #000; }
.date-input, .time-input { display: none; }

/* --- DESKRIPSI --- */
.description-group {
    display: flex; flex-direction: column;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}
.description-group .desc-header { margin-bottom: 6px; }
.description-group .label { font-size: 13px; color: #333; font-weight: 500; }
.description-group .desc-body { display: flex; align-items: center; }
.description-group .icon-plain { 
    color: #333; font-size: 14px; margin-right: 12px; flex-shrink: 0; background: transparent; border: none;
    display: flex; align-items: center; justify-content: center;
}
.description-group .desc-input {
    border: none; outline: none; font-size: 13px; color: #333; width: 100%; background: transparent; font-weight: 400;
}
.description-group .desc-input::placeholder { color: #ccc; font-weight: 400; }

/* Submit Button - Warna oranye tua */
.submit-btn {
    margin: 24px 16px 0 16px;
    width: calc(100% - 32px);
    padding: 14px;
    background: #f5a623;
    color: #fff; border: none;
    border-radius: 25px; font-size: 15px; font-weight: 500; cursor: pointer;
}

/* ===== BOTTOM SHEETS ===== */
.bottom-sheet-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex; align-items: flex-end; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.bottom-sheet-overlay.open {
    opacity: 1; pointer-events: auto;
}
.bottom-sheet-content {
    background: #fff; width: 100%; max-width: 480px;
    border-radius: 20px 20px 0 0;
    padding: 20px; padding-bottom: 40px;
    transform: translateY(100%); transition: transform 0.3s ease;
}
.bottom-sheet-overlay.open .bottom-sheet-content {
    transform: translateY(0);
}
.bottom-sheet-content h3 { font-size: 15px; font-weight: 600; margin-bottom: 16px; }

.list-container { display: flex; flex-direction: column; gap: 8px; }
.list-item {
    display: flex; align-items: center; padding: 10px;
    background: #f9f9f9; border-radius: 8px; cursor: pointer;
}
.list-item .circle-icon { width: 32px; height: 32px; border-radius: 50%; margin-right: 10px; }
.list-item .list-text { display: flex; flex-direction: column; }
.list-item .list-text .title { font-size: 13px; font-weight: 500; color: #333; }
.list-item .list-text .subtitle { font-size: 12px; font-weight: 400; }

.grid-container {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.grid-item {
    display: flex; flex-direction: column; align-items: center;
    cursor: pointer; text-align: center;
}
.grid-item .circle-icon {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px; margin-bottom: 4px;
}
.grid-item .label { font-size: 11px; color: #333; font-weight: 400; }
