/* 카드 내 그룹 타이틀 */
.card-group-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: #2d6cdf;
    margin-bottom: 4px;
    margin-top: 10px;
    letter-spacing: -1px;
}
/* 카드 내 구분선 */
.card-divider {
    border-bottom: 2px solid #e2e6ea;
    margin: 10px 0 10px 0;
}
/* 지출 세부항목 들여쓰기 */
.card-item-sub {
    padding-left: 18px;
    background: none;
    font-size: 0.97rem;
    color: #555;
}
.card-item-main {
    font-size: 1.05rem;
    font-weight: 600;
    color: #e74c3c;
}
/* /public/style.css */

body {
    font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #fff;
    color: #111;
    margin: 0;
    padding: 0;
    font-family: "Noto Sans KR", sans-serif;
}

button, .logout-btn {
    width: 100%;
    padding: 16px 0;
    background-color: #111;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 300;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin-top: 10px;
    transition: background 0.2s;
    font-family: "Noto Sans KR", sans-serif;
}
button:hover, .logout-btn:hover {
    background-color: #222;
}

input {
    width: calc(100% - 24px);
    padding: 16px 12px;
    margin-top: 6px;
    margin-bottom: 16px;
    border: 1px solid #eee;
    border-radius: 4px;
    font-size: 1rem;
}

.error {
    color: rgb(255, 177, 177)
}

.container {
    width: 80%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    /* text-align: center; */
    display: block;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.auth-form {
    margin-top: 20%;
}

.dashboard-container {
    margin-top: 20%;
}
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.dashboard-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: #111;
    margin: 0;
    font-family: "Gowun Batang", serif;
}

.login-container {
    width: 100%;
    padding: 30%;
}

.login-text {
    font-family: "Gowun Batang", serif;
    color: gray;
}
/* .login-input-id {
    width: 100%;
    padding: 8px;
    margin-top: 6px;
    margin-bottom: 16px;
    border: 1px solid #eee;
    border-radius: 4px;
    font-size: 1rem;
}
.login-input-password {
    width: 100%;
    padding: 8px;
    margin-top: 6px;
    margin-bottom: 16px;
    border: 1px solid #eee;
    border-radius: 4px;
    font-size: 1rem;
} */

.logout-btn {
    background: #111;
    color: #fff;
    border-radius: 24px;
    padding: 8px 20px;
    font-size: 1rem;
    font-weight: 600;
    width: auto;
    margin-left: 8px;
}

.user-info {
    font-size: 1.05rem;
    margin-top: 5vw;
    margin-bottom: 12px;
    color: #222;
}
.dot {
    color: #bbb;
    margin: 0 6px;
}
.month-select {
    margin-top: 5vw;
    margin-bottom: 16px;
    font-size: 1rem;
}
.month-select label {
    font-weight: 600;
    margin-right: 8px;
}
.month-select select {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 1rem;
}
.settlement-box {
    background: #f7f7f7;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #222;
}
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.dashboard-table {
    min-width: 700px;
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: #fff;
}
.dashboard-table th, .dashboard-table td {
    border: 1px solid #eee;
    padding: 10px 12px;
    text-align: left;
    font-size: 0.98rem;
}
.dashboard-table th:first-child, .dashboard-table td:first-child {
    min-width: 120px;
    width: 120px;
}
.dashboard-table th:nth-child(10), .dashboard-table td:nth-child(10),
.dashboard-table th:nth-child(11), .dashboard-table td:nth-child(11),
.dashboard-table th:nth-child(12), .dashboard-table td:nth-child(12) {
    min-width: 140px;
    width: 140px;
}
.dashboard-table th {
    background: #fafafa;
    font-weight: 700;
    color: #222;
}
.dashboard-table tr:nth-child(even) {
    background: #f6f6f6;
}
.dashboard-table a {
    color: #3949ab;
    text-decoration: underline;
}

/* -------------- */

.dashboard-cards {
    /* display: flex; */
    flex-direction: column;
    gap: 18px;
}
/* 전문적인 카드형 대시보드 스타일 */
.dashboard-card {
    background: linear-gradient(135deg, #f8f9fa 60%, #e9ecef 100%);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    padding: 32px 28px 24px 28px;
    margin: 0 auto 32px auto;
    margin-top: 20px;
    max-width: 420px;
    font-family: 'Noto Sans KR', 'Gowun Batang', sans-serif;
    font-size: 1.08rem;
    color: #222;
    position: relative;
    border: 1.5px solid #e2e6ea;
    transition: box-shadow 0.2s;
}
.dashboard-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.16);
}
.card-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #222;
}
.card-month {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d6cdf;
}
.card-settle-amount {
    font-size: 1.05rem;
    font-weight: 500;
    background: #2d6cdf;
    color: #fff;
    border-radius: 8px;
    padding: 4px 12px;
    margin-left: 8px;
    box-shadow: 0 1px 4px rgba(45,108,223,0.08);
}
.card-meta {
    display: flex;
    gap: 18px;
    font-size: 0.98rem;
    color: #555;
    margin-bottom: 18px;
}
.card-meta b {
    color: #222;
    font-weight: 600;
}
.card-items {
    margin-top: 2px;
}
.card-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 6px;
    /* border-bottom: 1px solid #f0f2f4; */
    font-size: 1rem;
    color: #333;
}
.card-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}
.item-label {
    font-weight: 500;
    color: #444;
}
.item-value {
    font-weight: 600;
    color: #222;
}
.item-value.profit {
    color: #2d6cdf;
}
.item-value.expense {
    color: #e74c3c;
}
.card-item a {
    color: #2d6cdf;
    text-decoration: underline;
    font-weight: 500;
}
@media (max-width: 600px) {
    .dashboard-title {
        font-size: 1.8rem;
    }
    .logout-btn {
        font-size: 0.8rem;
        padding: 6px 16px;
    }
    .dashboard-card {
        padding: 20px 8px 16px 8px;
        max-width: 98vw;
    }
    .card-title {
        font-size: 1.08rem;
    }
    .card-settle-amount {
        font-size: 0.98rem;
        padding: 3px 8px;
    }
    .card-meta {
        font-size: 0.92rem;
        gap: 10px;
    }
}