@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700;900&display=swap');

body { 
    font-family: 'Noto Sans TC', sans-serif; 
    background-color: #fefce8; 
}

/* 統一輸入框風格 */
.input-group label { 
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #5D4037;
    margin-bottom: 4px;
    opacity: 0.9;
}

.input-group input, .input-group select { 
    width: 100%;
    border: 2px solid #D7CCC8;
    border-radius: 8px;
    padding: 6px 4px;
    font-size: 15px;
    color: #5D4037;
    background-color: white;
    transition: all 0.2s;
    outline: none;
}

.input-group input:focus, .input-group select:focus {
    border-color: #f0bbaa;
    box-shadow: 0 0 0 2px rgba(93, 64, 55, 0.1);
}

.card { 
    background-color: #ffffff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    border: 1px solid #fef3c7;
}

/* 修改後的會計分錄區塊：淺咖啡底色、增加內距 */
.journal-entry { 
    padding: 32px;
    margin-top: 12px;
    margin-bottom: 12px;
    border-radius: 12px;
    font-size: 0.875rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    background-color: #fdf6f7; /* 舒服的淺咖啡底色 */
    border: 2px solid #cfb0b8;  /* 邊框顏色維持原本的淺咖啡 */
    line-height: 2;           /* 增加行高，讓借貸分錄不擁擠 */
}

/* 計算按鈕風格 */
.btn-calculate { 
    width: 100%;
    margin-top: 1rem;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
    border: 1px solid #bb9f95;
    cursor: pointer;
    background-color: #9b7851;
    color: #f3ecea;
    box-shadow: 0 2px 6px rgba(93, 64, 55, 0.15);
}

.btn-calculate:hover {
    background-color: #DCC9B6;
    color: #4E342E;
    box-shadow: 0 4px 10px rgba(93, 64, 55, 0.2);
}

.btn-calculate:active {
    transform: translateY(1px);
}

/* 頁籤按鈕風格 */
.tab-btn-independent {
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
    cursor: pointer;
}

.tab-active-style {
    background-color: #E6D5C3;
    color: #5D4037;
    box-shadow: 0 2px 6px rgba(93, 64, 55, 0.15);
}

.tab-inactive-style {
    background-color: #F8F5F2;
    color: #A1887F;
}

.btn-csv-heavy {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #9b7851;
    color: #ffffff;
    border-radius: 12px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.entry-grid {
    display: grid;
    grid-template-columns: 1fr 100px 100px;
    gap: 4px 16px;
    align-items: center;
}

/* 側邊欄卡片專用樣式（微調內距以利排版） */
.sidebar-card {
    padding: 16px !important;
}
