/* 공통 폰트 및 배경 */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    color: #333;
}

/* 컨테이너 */
.container {
    max-width: 480px; /* 휴대폰 기준 */
    margin: 0 auto;
    padding: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 10px;
}

/* 제목 */
h2, h3 {
    text-align: center;
    color: #4CAF50;
}

/* 폼 스타일 */
form input, form select, form button {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

form button {
    background-color: #4CAF50;
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

form button:hover {
    background-color: #45a049;
}

/* 테이블 스타일 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
table, th, td {
    border: 1px solid #ccc;
}
th, td {
    padding: 8px;
    text-align: center;
}
th {
    background-color: #f2f2f2;
}

/* 수입/지출 색상 표시 */
.income {
    color: blue;
    font-weight: bold;
}
.expense {
    color: red;
    font-weight: bold;
}

/* 링크 */
a {
    color: #4CAF50;
    text-decoration: none;
}

/* 메뉴 버튼을 아이콘화 */
.menu {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
}
.menu button {
    flex: 1;
    margin: 0 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    padding: 10px 0;
}
.menu button i {
    font-size: 24px;
    margin-bottom: 3px;
}

/* 반응형 */
@media screen and (max-width: 480px) {
    table, th, td {
        font-size: 14px;
    }
    form input, form select, form button {
        font-size: 14px;
    }
    .menu button {
        font-size: 12px;
    }
    .menu button i {
        font-size: 20px;
    }
}
