/* 添加字體定義 */
@font-face {
    font-family: 'Regular';
    src: url('/assets/fonts/Regular.ttf') format('truetype');
}

.bank-container {
    padding: 20px;
    display: flex;
    gap: 30px;
    font-family: 'Regular', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    width: 100%;
    height: calc(100vh - 40px);
    flex-direction: row;
}

/* 左側預覽區域 */
.preview-area {
    flex: 1;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-right: 1px solid #ddd;
    max-width: 50%;
}

.bank-preview {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: auto;
}

.template-image {
    width: 100%;
    height: auto;
    display: block;
}

.overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    font-weight: bold;
}

/* 交易信息位置設定 */
.transaction-info {
    position: relative;
    width: 100%;
    height: 100%;
    color: #333;
    font-family: 'Regular', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: bold;
}

/* 賬務時間 */
.account-time {
    position: absolute;
    top: 105px;
    left: 265px;
    width: 100px;
    text-align: right;
    font-size: 20px;
    color: #333;
}

/* 交易時間 */
.transaction-time {
    position: absolute;
    top: 150px;
    left: 265px;
    font-size: 20px;
    color: #333;
}

/* 摘要 */
.summary {
    position: absolute;
    top: 190px;
    left: 265px;
    font-size: 20px;
    color: #333;
}

/* 支出金額 */
.expense {
    position: absolute;
    top: 235px;
    left: 265px;
    font-size: 20px;
    color: #333;
}

/* 存入金額 */
.deposit {
    position: absolute;
    top: 275px;
    left: 265px;
    font-size: 20px;
    color: #333;
}

/* 即時餘額 */
.balance {
    position: absolute;
    top: 320px;
    left: 265px;
    font-size: 20px;
    color: #333;
}

/* 附註 */
.note {
    position: absolute;
    top: 370px;
    left: 265px;
    font-size: 20px;
    color: #333;
}

/* 頂部狀態列 */
.status-bar {
    position: absolute;
    top: 5px;
    left: 0;
    width: 100%;
    padding: 0 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 時間顯示 */
.time-display {
    position: absolute;
    top: 5px;
    left: 20px;
    font-size: 19px;
    color: #333;
    font-weight: bold;
}

/* 信號圖標組 */
.signal-group {
    position: absolute;
    top: 5px;
    right: 10px;
    display: flex;
    gap: 0px;
    align-items: center;
}

.signal-icon {
    width: 25px;
    height: 25px;
}

/* 右側控制面板 */
.control-panel {
    flex: 1;
    background: white;
    padding: 20px;
    overflow-y: auto;
    max-width: 50%;
}

/* 表單樣式 */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #007AFF;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Regular', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #000;
}

/* 保存按鈕 */
#save-btn {
    width: 100%;
    padding: 10px;
    background: #007AFF;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 20px;
}

#save-btn:hover {
    background: #0056b3;
}

/* 其他項目改為右對齊 */
.transaction-time,
.summary,
.expense,
.deposit,
.balance,
.note {
    position: absolute;
    left: 65px;
    width: 300px;
    text-align: right;
    font-size: 20px;
    color: #333;
}

/* 各項目的垂直位置 */
.transaction-time {
    top: 150px;
}

.summary {
    top: 190px;
}

.expense {
    top: 235px;
}

.deposit {
    top: 275px;
}

.balance {
    top: 320px;
}

.note {
    top: 370px;
} 