
.container > h1 {
    margin-bottom: 30px;
}

.required {
    color: #e74c3c;
    font-weight: bold;
}
.analysis-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 10px;
}
.profit-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}
.profit-item:last-child {
    border-bottom: none;
}
.risk-item {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
}
.risk-item.danger {
    background: #fee;
    border-left: 4px solid #e74c3c;
}
.risk-item.warning {
    background: #ffeaa7;
    border-left: 4px solid #f39c12;
}
.risk-item.success {
    background: #d5f4e6;
    border-left: 4px solid #27ae60;
}
.risk-item.info {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    color: #0d47a1;
}
.survey-item {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
}
.btn-remove {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 10px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    background: white;
}

.table thead {
    background: var(--theme-dark);
    color: white;
}

.table th {
    padding: 10px 8px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85em;
    white-space: nowrap;
}

.table td {
    padding: 8px;
    border-bottom: 1px solid #eee;
    font-size: 0.85em;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .table {
        font-size: 0.85em;
    }
    
    .table th,
    .table td {
        padding: 8px 6px;
    }
}



/* 탭 및 필터 스타일 */
.property-type-tabs {
    display: flex;
    width: 100%;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 25px;
    background: #f1f3f5;
    border-radius: 12px 12px 0 0;
    padding: 5px 5px 0 5px;
    gap: 5px;
}
.type-tab {
    flex: 1;
    padding: 12px 0;
    cursor: pointer;
    font-weight: 700;
    font-size: 1em;
    color: #868e96;
    border-bottom: none;
    margin-bottom: 0;
    transition: all 0.2s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border-radius: 10px 10px 0 0;
}
.type-tab:hover {
    background: rgba(0,0,0,0.03);
    color: #495057;
}
.type-tab.active {
    color: var(--theme-dark);
    background: #fff;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
    position: relative;
}
.type-tab.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--theme-dark);
    border-radius: 3px 3px 0 0;
}
.tab-icon {
    font-size: 1.2em;
    margin-bottom: 2px;
}
.search-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.filter-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}
.filter-row:last-child {
    margin-bottom: 0;
}
.filter-group {
    flex: 1;
}
.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .action-buttons {
        text-align: center;
    }
}

.form-section {
    margin-bottom: 20px;
    margin-top: 30px;
}

.form-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.action-buttons {
    text-align: right;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* 텍스트 크기 조정 */
.form-section h3 {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: var(--theme-dark);
}

.profit-item span {
    font-size: 0.9em;
    color: #666;
}

.profit-item strong {
    font-size: 0.9em;
}

.risk-item {
    font-size: 0.85em;
    padding: 8px 10px;
}

/* ================================
 * 결과 표시 컴포넌트
 * ================================ */
@keyframes spin { to { transform: rotate(360deg); } }
.pr-spinner { width:44px; height:44px; border:4px solid #e5e7eb; border-top-color:#3cb371; border-radius:50%; animation:spin .8s linear infinite; margin:0 auto; }

.pr-metric-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:24px; }
@media(max-width:640px){ .pr-metric-grid { grid-template-columns:repeat(2,1fr); } }
.pr-metric { background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:18px 16px; text-align:center; }
.pr-metric .m-label { font-size:12px; color:#6b7280; margin-bottom:6px; }
.pr-metric .m-value { font-size:22px; font-weight:800; color:#111; line-height:1; }
.pr-metric .m-sub   { font-size:11px; color:#9ca3af; margin-top:4px; }
.pr-metric.accent   { background:linear-gradient(135deg,#f0fdf4,#dcfce7); border-color:#86efac; }
.pr-metric.accent .m-value { color:#16a34a; }
.pr-metric.danger .m-value { color:#dc2626; }

.pr-bar-row { display:flex; align-items:center; gap:12px; margin-bottom:10px; }
.pr-bar-label { flex:0 0 100px; font-size:13px; color:#374151; }
.pr-bar-wrap  { flex:1; background:#f3f4f6; border-radius:20px; height:20px; overflow:hidden; }
.pr-bar-fill  { height:100%; background:#3cb371; border-radius:20px; transition:width .4s; }
.pr-bar-val   { flex:0 0 120px; font-size:13px; font-weight:600; color:#111; text-align:right; }

.pr-bid-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
@media(max-width:600px){ .pr-bid-grid { grid-template-columns:1fr; } }
.pr-bid-card { border:2px solid #e5e7eb; border-radius:10px; padding:16px; text-align:center; background:#fafafa; }
.pr-bid-card.active { border-color:#3cb371; background:#f0fdf4; }
.pr-bid-card .b-label { font-size:12px; color:#6b7280; margin-bottom:6px; }
.pr-bid-card .b-val   { font-size:20px; font-weight:800; color:#111; }
.pr-bid-card .b-pct   { font-size:11px; color:#9ca3af; }
.pr-bid-card.active .b-val { color:#16a34a; }

.pr-monthly-row { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid #f3f4f6; }
.pr-monthly-row:last-child { border-bottom:none; }
.pr-m-date { flex:0 0 80px; font-size:13px; color:#6b7280; }
.pr-m-val  { font-size:15px; font-weight:700; color:#111; }
.pr-m-trend { font-size:12px; margin-left:8px; }

.demo-overlay-wrap { position:relative; }
.demo-blur { filter:blur(4px); pointer-events:none; user-select:none; }
.demo-cta-overlay { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; z-index:10; }
.demo-cta-box { background:#fff; border-radius:16px; padding:32px 40px; text-align:center; box-shadow:0 8px 32px rgba(0,0,0,.18); max-width:320px; }
