* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    padding-top: 60px;
}

/* 상단 네비게이션 바 */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: 60px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 100%;
    gap: 40px;
}

.nav-title {
    font-size: 1.3em;
    margin: 0;
    color: #2c3e50;
    font-weight: 700;
}

.nav-tabs {
    display: flex;
    gap: 10px;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    background-color: transparent;
    color: #7f8c8d;
    font-size: 1em;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
}

.nav-tab:hover {
    background-color: #f8f9fa;
    color: #2c3e50;
}

.nav-tab.active {
    background-color: #3498db;
    color: white;
}

.tab-icon {
    font-size: 1.2em;
}

.tab-text {
    font-weight: 500;
}

/* 메인 콘텐츠 */
.main-content {
    min-height: calc(100vh - 60px);
    background-color: #f5f5f5;
}

.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 40px 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}


/* 페이지 콘텐츠 */
.page-content {
    display: block;
}

/* Coming Soon 페이지 스타일 */
.coming-soon {
    text-align: center;
    padding: 60px 20px;
}

.coming-soon-content {
    max-width: 600px;
    margin: 0 auto;
}

.coming-soon-icon {
    font-size: 5em;
    margin-bottom: 30px;
}

.coming-soon h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 30px;
}

.coming-soon h2 {
    font-size: 2em;
    color: #e74c3c;
    margin-bottom: 20px;
}

.coming-soon p {
    font-size: 1.2em;
    color: #7f8c8d;
    margin-bottom: 40px;
    line-height: 1.6;
}

.coming-soon-features {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
}

.coming-soon-features h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.4em;
}

.coming-soon-features ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.coming-soon-features li {
    padding: 10px 0;
    border-bottom: 1px solid #ecf0f1;
    font-size: 1.1em;
    color: #2c3e50;
}

.coming-soon-features li:last-child {
    border-bottom: none;
}

.coming-soon-note {
    background-color: #e8f4f8;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    font-weight: 600;
    color: #2c3e50 !important;
}

h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 10px;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 40px;
}

.input-section {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

label {
    display: block;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.input-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

input[type="number"] {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    font-size: 1.1em;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    transition: border-color 0.3s;
}

input[type="number"]:focus {
    outline: none;
    border-color: #3498db;
}

.unit {
    margin-left: 10px;
    font-size: 1.1em;
    font-weight: 600;
    color: #7f8c8d;
    white-space: nowrap;
    flex-shrink: 0;
}

button {
    width: 100%;
    padding: 14px;
    font-size: 1.1em;
    font-weight: 600;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover:not(:disabled) {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

button:disabled {
    cursor: not-allowed;
}

button:active:not(:disabled) {
    transform: translateY(0);
}

.result-section {
    margin-top: 30px;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.result-section.hidden {
    display: none;
}

.result-section.updating {
    opacity: 0.3;
}

.result-section h2 {
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 20px;
}

.car-list {
    margin-bottom: 30px;
}

.car-item {
    background-color: #f8f9fa;
    padding: 0;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    position: relative;
    overflow: hidden;
}

.car-content-wrapper {
    display: flex;
    gap: 20px;
}

.car-image {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
    overflow: hidden;
    background-color: #f0f0f0;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.car-info {
    flex: 1;
    padding: 20px 20px 20px 0;
}

.car-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.fuel-type-badge {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    white-space: nowrap;
}

.fuel-icon {
    margin-right: 4px;
    font-size: 1.1em;
}

.fuel-text {
    font-size: 0.9em;
}

/* 연료 타입별 배지 색상 */
.electric-car .fuel-type-badge {
    background-color: #d5f4e6;
    color: #27ae60;
    border: 1px solid #a8e6cf;
}

.diesel-car .fuel-type-badge {
    background-color: #ecf0f1;
    color: #34495e;
    border: 1px solid #bdc3c7;
}

.gasoline-car .fuel-type-badge {
    background-color: #fadbd8;
    color: #c0392b;
    border: 1px solid #f1948a;
}

.car-name {
    font-size: 1.3em;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    flex: 1;
}

.car-price {
    font-size: 1.1em;
    color: #e74c3c;
    font-weight: 500;
    margin-bottom: 5px;
    line-height: 1.3;
}

.tax-info {
    font-size: 0.85em;
    color: #7f8c8d;
    font-weight: 400;
    display: block;
    margin-top: 2px;
}

.car-category {
    color: #7f8c8d;
    font-size: 0.95em;
}

.recommendation-note {
    background-color: #e8f4f8;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.recommendation-note p {
    color: #2c3e50;
    font-size: 1em;
}

.tax-info-box {
    background-color: #f0f4ff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #d4e0ff;
}

.tax-info-box h3 {
    font-size: 1.4em;
    color: #2c3e50;
    margin-bottom: 20px;
}

.tax-details {
    display: grid;
    gap: 12px;
}

.tax-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e9ff;
}

.tax-row span:first-child {
    color: #7f8c8d;
    font-weight: 500;
}

.tax-row span:last-child {
    color: #2c3e50;
    font-weight: 600;
}

.tax-row.total {
    border-top: 2px solid #3498db;
    border-bottom: 2px solid #3498db;
    padding: 12px 0;
    margin-top: 8px;
}

.tax-row.total span {
    font-size: 1.1em;
    font-weight: 700;
    color: #2c3e50;
}

.fixed-expenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0 30px;
}

.expense-item {
    background-color: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.expense-item label {
    font-size: 0.95em;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: #2c3e50;
}

.expense-item .input-wrapper {
    margin-bottom: 0;
}

.expense-item input[type="number"] {
    font-size: 1em;
    padding: 10px 12px;
}

.budget-summary {
    background-color: #fff4e5;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #ffe0b2;
}

.budget-summary h3 {
    font-size: 1.4em;
    color: #2c3e50;
    margin-bottom: 20px;
}

.budget-details {
    display: grid;
    gap: 12px;
}

.budget-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #ffe0b2;
}

.budget-row span:first-child {
    color: #7f8c8d;
    font-weight: 500;
}

.budget-row span:last-child {
    color: #2c3e50;
    font-weight: 600;
}

.budget-row.available {
    border-top: 2px solid #ff9800;
    border-bottom: 2px solid #ff9800;
    padding: 12px 0;
    margin-top: 8px;
}

.budget-row.available span {
    font-size: 1.1em;
    font-weight: 700;
    color: #2c3e50;
}

/* 태블릿 반응형 */
@media (max-width: 1024px) and (min-width: 769px) {
    .fixed-expenses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .installment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .top-nav {
        height: auto;
        min-height: 60px;
    }
    
    .nav-container {
        flex-direction: column;
        padding: 10px;
        gap: 10px;
    }
    
    .nav-title {
        font-size: 1.2em;
    }
    
    .nav-tabs {
        width: 100%;
        justify-content: center;
        gap: 5px;
    }
    
    .nav-tab {
        flex: 1;
        padding: 8px 12px;
        font-size: 0.9em;
    }
    
    .tab-icon {
        font-size: 1.1em;
    }
    
    .tab-text {
        font-size: 0.85em;
    }
    
    body {
        padding-top: 80px;
    }
    
    .container {
        margin: 80px 10px 20px;
        padding: 20px 15px;
    }
    
    h1 {
        font-size: 1.8em;
        line-height: 1.3;
    }
    
    .input-section {
        padding: 20px;
    }
    
    .tax-info-box {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .tax-info-box h3 {
        font-size: 1.2em;
    }
    
    .budget-summary {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .fixed-expenses-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px;
        margin: 15px 0 25px;
    }
    
    .expense-item {
        padding: 12px;
        width: 100%;
        box-sizing: border-box;
        flex: none;
    }
    
    .expense-item .input-wrapper {
        flex-wrap: nowrap;
    }
    
    .expense-item input[type="number"] {
        min-width: 100px;
    }
    
    .installment-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px;
        margin: 15px 0 25px;
    }
    
    .installment-item {
        padding: 12px;
        width: 100%;
        box-sizing: border-box;
        flex: none;
    }
    
    .installment-item .input-wrapper {
        flex-wrap: nowrap;
    }
    
    .installment-item input[type="number"] {
        min-width: 100px;
    }
    
    .car-item {
        margin-bottom: 12px;
    }
    
    .car-content-wrapper {
        flex-direction: column;
        gap: 0;
    }
    
    .car-image {
        width: 100%;
        height: 180px;
    }
    
    .car-info {
        padding: 15px;
    }
    
    .car-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .fuel-type-badge {
        align-self: flex-end;
        font-size: 0.8em;
        padding: 3px 6px;
    }
    
    .toggle-buttons {
        flex-direction: column;
        gap: 8px;
        margin-top: 12px;
    }
    
    .toggle-btn {
        width: 100%;
        text-align: center;
        padding: 10px 16px;
        font-size: 0.9em;
    }
    
    .coming-soon {
        padding: 30px 15px;
    }
    
    .coming-soon h1 {
        font-size: 1.8em;
        line-height: 1.3;
    }
    
    .coming-soon h2 {
        font-size: 1.4em;
    }
    
    .coming-soon-icon {
        font-size: 3.5em;
        margin-bottom: 20px;
    }
    
    .coming-soon-features {
        padding: 20px;
        margin: 30px 0;
    }
    
    /* SEO 콘텐츠 모바일 */
    .seo-content {
        margin: 30px 10px 20px;
        padding: 20px 15px;
        max-width: none;
    }
    
    .seo-title {
        font-size: 1.5em;
        line-height: 1.3;
    }
    
    .seo-subtitle {
        font-size: 1.2em;
        margin-top: 25px;
    }
    
    .seo-recommendation-box {
        padding: 15px;
    }
    
    .seo-rec-title, .seo-faq-title {
        font-size: 1em;
    }
    
    .seo-cta {
        font-size: 1em;
        margin-top: 25px;
    }
    
    /* 푸터 모바일 */
    .footer {
        padding: 15px 10px;
        margin: 30px 10px 0;
        max-width: none;
        border-radius: 10px;
    }
    
    .footer-links {
        margin: 8px 0;
    }
    
    .footer-link {
        margin: 0 8px;
        font-size: 0.9em;
    }
}

/* 작은 모바일 화면 */
@media (max-width: 480px) {
    .container {
        margin: 70px 5px 15px;
        padding: 15px 10px;
    }
    
    h1 {
        font-size: 1.6em;
    }
    
    .input-section {
        padding: 15px;
    }
    
    .car-item {
        padding: 12px;
    }
    
    .fuel-type-badge {
        font-size: 0.75em;
        padding: 2px 5px;
    }
    
    .toggle-btn {
        padding: 8px 12px;
        font-size: 0.85em;
    }
    
    .seo-content {
        margin: 20px 5px 15px;
        padding: 15px 10px;
        max-width: none;
    }
    
    .seo-title {
        font-size: 1.4em;
    }
    
    .seo-subtitle {
        font-size: 1.1em;
        margin-top: 20px;
    }
    
    .footer {
        margin: 20px 5px 0;
        padding: 12px 8px;
    }
}

/* SEO 콘텐츠 스타일 */
.seo-content {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin-left: auto;
    margin-right: auto;
}

.seo-title {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.seo-text {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #2c3e50;
}

.seo-subtitle {
    color: #34495e;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.seo-list {
    line-height: 1.8;
    color: #2c3e50;
    padding-left: 20px;
}

.seo-list li {
    margin-bottom: 10px;
}

.seo-recommendation-box {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.seo-rec-title {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.seo-rec-title.margin-top {
    margin-top: 20px;
}

.seo-faq-title {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.seo-cta {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1em;
    color: #2c3e50;
}

/* 푸터 스타일 */
.footer {
    max-width: 800px;
    margin: 50px auto 0;
    text-align: center;
    padding: 20px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 0.9em;
    background-color: #f8f9fa;
    border-radius: 0 0 10px 10px;
}

.footer-links {
    margin: 10px 0;
}

.footer-link {
    color: #666;
    margin: 0 10px;
    text-decoration: none;
}

.footer-link:hover {
    color: #3498db;
}

.footer-disclaimer {
    font-size: 0.8em;
    margin-top: 10px;
    color: #999;
}

.installment-section {
    margin-top: 20px;
}

.installment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0 30px;
}

.installment-item {
    background-color: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.installment-item label {
    font-size: 0.95em;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: #2c3e50;
}

.installment-item .input-wrapper {
    margin-bottom: 0;
}

.installment-item input[type="number"] {
    font-size: 1em;
    padding: 10px 12px;
}

.installment-info-box {
    background-color: #e8f5e9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 20px 0 20px;
    border: 1px solid #c8e6c9;
}

.installment-info-box h4 {
    font-size: 1.1em;
    color: #2c3e50;
    margin-bottom: 15px;
}

.installment-details {
    display: grid;
    gap: 8px;
}

.installment-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #c8e6c9;
}

.installment-row span:first-child {
    color: #666;
    font-size: 0.9em;
}

.installment-row span:last-child {
    color: #2c3e50;
    font-weight: 600;
}

.installment-row.monthly-payment {
    border-top: 2px solid #4caf50;
    border-bottom: 2px solid #4caf50;
    padding: 10px 0;
    margin-top: 8px;
}

.installment-row.monthly-payment span {
    font-size: 1.05em;
    font-weight: 700;
    color: #2c3e50;
}

.maintenance-info-box {
    background-color: #fff3e0;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 20px 20px 20px;
    border: 1px solid #ffe0b2;
}

.maintenance-info-box h4 {
    font-size: 1.1em;
    color: #2c3e50;
    margin-bottom: 15px;
}

.maintenance-details {
    display: grid;
    gap: 8px;
}

.maintenance-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #ffe0b2;
    font-size: 0.9em;
}

.maintenance-row span:first-child {
    color: #666;
}

.maintenance-row span:last-child {
    color: #2c3e50;
    font-weight: 600;
}

.maintenance-row.total-maintenance {
    border-top: 2px solid #ff9800;
    border-bottom: 2px solid #ff9800;
    padding: 10px 0;
    margin-top: 8px;
}

.maintenance-row.total-maintenance span {
    font-size: 1.05em;
    font-weight: 700;
    color: #2c3e50;
}

.maintenance-row.total-cost {
    background-color: #e3f2fd;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    border: none;
}

.maintenance-row.total-cost span {
    font-size: 1.1em;
    font-weight: 700;
    color: #1976d2;
}

.toggle-btn {
    background-color: #ecf0f1;
    border: 1px solid #bdc3c7;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s;
    color: #2c3e50;
    font-weight: 500;
}

.toggle-btn:hover {
    background-color: #d5dbdb;
    border-color: #95a5a6;
}

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

.toggle-content {
    margin-top: 15px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 아파트 추천 스타일 */
.purchase-type-selector {
    display: flex;
    gap: 10px;
    margin: 30px 0;
    justify-content: center;
}

.purchase-type-btn {
    flex: 1;
    max-width: 200px;
    padding: 15px 25px;
    font-size: 1.1em;
    background-color: #ecf0f1;
    color: #2c3e50;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.purchase-type-btn:hover {
    background-color: #d5dbdb;
    transform: translateY(-2px);
}

.purchase-type-btn.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.apt-list {
    margin-bottom: 30px;
}

.apt-item {
    background-color: #f8f9fa;
    padding: 0;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    position: relative;
    overflow: hidden;
}

.apt-content-wrapper {
    display: flex;
    gap: 20px;
}

.apt-image {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
    overflow: hidden;
    background-color: #f0f0f0;
}

.apt-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.apt-info {
    flex: 1;
    padding: 20px 20px 20px 0;
}

.apt-name {
    font-size: 1.3em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.apt-location {
    color: #7f8c8d;
    font-size: 0.95em;
    margin-bottom: 5px;
}

.apt-price {
    font-size: 1.1em;
    color: #e74c3c;
    font-weight: 500;
    margin-bottom: 5px;
}

.apt-details {
    font-size: 0.9em;
    color: #2c3e50;
    margin-top: 10px;
}

.loan-info {
    background-color: #e8f5e9;
    padding: 15px;
    border-radius: 6px;
    margin-top: 10px;
}

.loan-info h4 {
    font-size: 1em;
    color: #2c3e50;
    margin-bottom: 8px;
}

/* 개발 진행 중 안내 */
.development-notice {
    background-color: #fff4e5;
    border: 1px solid #ffd8a8;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0 30px 0;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.notice-icon {
    font-size: 2.5em;
    flex-shrink: 0;
}

.notice-content {
    flex: 1;
}

.notice-content h4 {
    margin: 0 0 8px 0;
    color: #e67700;
    font-size: 1.2em;
}

.notice-content p {
    margin: 0 0 15px 0;
    color: #666;
    line-height: 1.5;
}

.upcoming-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    background-color: #ffe4cc;
    color: #cc5500;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 500;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .development-notice {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .notice-icon {
        font-size: 2em;
    }
    
    .upcoming-features {
        gap: 5px;
    }
    
    .feature-tag {
        font-size: 0.8em;
        padding: 3px 10px;
    }
}

/* 부채 리스트 스타일 */
.debt-list {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0 15px 0;
    max-height: 300px;
    overflow-y: auto;
}

.debt-empty-state {
    text-align: center;
    color: #7f8c8d;
    padding: 20px 0;
}

.debt-item {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    position: relative;
}

.debt-item:last-child {
    margin-bottom: 0;
}

.debt-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.debt-item-title {
    font-weight: 600;
    color: #2c3e50;
}

.remove-debt-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
}

.remove-debt-btn:hover {
    background-color: #c0392b;
}

.debt-input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.debt-input-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.debt-input-item label {
    font-size: 0.85em;
    color: #666;
    font-weight: 500;
    margin-bottom: 0;
}

.debt-input-item .input-wrapper {
    margin-bottom: 0;
}

.debt-input-item input {
    font-size: 0.95em;
    padding: 8px 10px;
}

.add-debt-btn {
    background-color: #f8f9fa;
    color: #2c3e50;
    border: 2px dashed #bdc3c7;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    width: 100%;
    transition: all 0.3s ease;
}

.add-debt-btn:hover {
    background-color: #ecf0f1;
    border-color: #95a5a6;
}

/* 지역 선택 스타일 */
.region-select-wrapper {
    margin-bottom: 20px;
}

.region-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 1.1em;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.region-select:focus {
    outline: none;
    border-color: #3498db;
}
.region-select optgroup {
    font-weight: bold;
    color: #2c3e50;
    padding: 8px 0;
}
.region-select option {
    padding: 8px 12px;
    font-weight: normal;
}

.region-info {
    background-color: #e8f4f8;
    padding: 12px 15px;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 0.9em;
}

.region-info p {
    margin: 0;
    color: #2c3e50;
}

