/* ===================
   1. CSS Variables
   =================== */
:root {
    --vd-primary: #2563eb;
    --vd-primary-light: #3b82f6;
    --vd-primary-dark: #1d4ed8;
    --vd-primary-bg: #eff6ff;
    --vd-sidebar-width: 260px;
    --vd-sidebar-bg: #0f172a;
    --vd-sidebar-text: #94a3b8;
    --vd-sidebar-active: #ffffff;
    --vd-success: #10b981;
    --vd-success-bg: #ecfdf5;
    --vd-warning: #f59e0b;
    --vd-warning-bg: #fffbeb;
    --vd-danger: #ef4444;
    --vd-danger-bg: #fef2f2;
    --vd-info: #6366f1;
    --vd-info-bg: #eef2ff;
    --vd-gray-50: #f8fafc;
    --vd-gray-100: #f1f5f9;
    --vd-gray-200: #e2e8f0;
    --vd-gray-300: #cbd5e1;
    --vd-gray-400: #94a3b8;
    --vd-gray-500: #64748b;
    --vd-gray-600: #475569;
    --vd-gray-700: #334155;
    --vd-gray-800: #1e293b;
    --vd-gray-900: #0f172a;
    --vd-border: #e2e8f0;
    --vd-radius: 12px;
    --vd-radius-sm: 8px;
    --vd-radius-lg: 16px;
    --vd-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --vd-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --vd-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --vd-transition: 0.2s ease;
}

/* ===================
   2. Reset & Override - WordPress 전역 1120px 제한 해제
   =================== */
body.vendor-dashboard-page,
body.vendor-dashboard-page #page,
body.vendor-dashboard-page #main,
body.vendor-dashboard-page #primary,
body.vendor-dashboard-page #content,
body.vendor-dashboard-page .site-content,
body.vendor-dashboard-page .elementor,
body.vendor-dashboard-page .elementor-inner,
body.vendor-dashboard-page .elementor-section-wrap,
body.vendor-dashboard-page .elementor-widget-wrap,
body.vendor-dashboard-page .elementor-location-header,
body.vendor-dashboard-page .elementor-location-footer,
body.vendor-dashboard-page article,
body.vendor-dashboard-page .elementor-section,
body.vendor-dashboard-page .elementor-container,
body.vendor-dashboard-page .elementor-column-wrap,
body.vendor-dashboard-page .elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Elementor 헤더/푸터 숨김 */
body.vendor-dashboard-page .elementor-location-header,
body.vendor-dashboard-page .elementor-location-footer {
    display: none !important;
}

/* 커스텀 헤더 네비게이션 숨김 */
body.vendor-dashboard-page .custom-header-nav {
    display: none !important;
}

body.vendor-dashboard-page {
    background-color: var(--vd-gray-50);
    overflow-x: hidden;
}

body.vendor-dashboard-page #page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--vd-gray-50) !important;
}

/* ===================
   3. Layout - 사이드바 + 메인
   =================== */
.vd-wrapper {
    display: flex;
    min-height: 100vh;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* --- 사이드바 --- */
.vd-sidebar {
    width: var(--vd-sidebar-width);
    background: var(--vd-sidebar-bg);
    color: var(--vd-sidebar-text);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
}

.vd-sidebar::-webkit-scrollbar {
    width: 4px;
}

.vd-sidebar::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

/* 사이드바 프로필 */
.vd-sidebar-profile {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.vd-sidebar-profile-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vd-sidebar-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.vd-sidebar-user-name {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.vd-sidebar-user-role {
    font-size: 12px;
    color: var(--vd-gray-400);
    margin-top: 2px;
}

/* 사이드바 메뉴 */
.vd-sidebar-nav {
    flex: 1;
    padding: 12px 0;
}

.vd-sidebar-nav-section {
    padding: 8px 20px 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--vd-gray-500);
}

.vd-sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--vd-sidebar-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--vd-transition);
    position: relative;
    border-left: 3px solid transparent;
}

.vd-sidebar-nav-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.vd-sidebar-nav-item.active {
    color: white;
    background: rgba(37, 99, 235, 0.15);
    border-left-color: var(--vd-primary);
}

.vd-sidebar-nav-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    flex-shrink: 0;
}

.vd-sidebar-nav-badge {
    margin-left: auto;
    background: var(--vd-danger);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    line-height: 1.4;
}

.vd-sidebar-nav-badge.success {
    background: var(--vd-success);
}

/* 사이드바 하단 */
.vd-sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.vd-sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--vd-gray-400);
    text-decoration: none;
    font-size: 13px;
    padding: 8px 0;
    transition: color var(--vd-transition);
}

.vd-sidebar-footer a:hover {
    color: white;
}

.vd-sidebar-footer a i {
    width: 20px;
    text-align: center;
}

/* --- 메인 콘텐츠 --- */
.vd-main {
    flex: 1;
    margin-left: var(--vd-sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 상단 헤더 바 */
.vd-topbar {
    background: white;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--vd-border);
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 16px;
}

.vd-topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.vd-topbar-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--vd-gray-900);
}

.vd-topbar-date {
    font-size: 13px;
    color: var(--vd-gray-400);
}

.vd-mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--vd-border);
    border-radius: var(--vd-radius-sm);
    padding: 8px 10px;
    cursor: pointer;
    color: var(--vd-gray-600);
    font-size: 18px;
}

.vd-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vd-topbar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--vd-radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--vd-transition);
    border: none;
}

.vd-topbar-btn.primary {
    background: var(--vd-primary);
    color: white;
}

.vd-topbar-btn.primary:hover {
    background: var(--vd-primary-dark);
}

.vd-topbar-btn.outline {
    background: white;
    color: var(--vd-gray-600);
    border: 1px solid var(--vd-border);
}

.vd-topbar-btn.outline:hover {
    background: var(--vd-gray-50);
}

/* 콘텐츠 영역 */
.vd-content {
    flex: 1;
    padding: 28px 32px;
}

/* ===================
   4. Components
   =================== */

/* --- 통계 카드 그리드 --- */
.vd-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.vd-stat-card {
    background: white;
    border-radius: var(--vd-radius);
    padding: 24px;
    border: 1px solid var(--vd-border);
    transition: all var(--vd-transition);
    position: relative;
    overflow: hidden;
}

.vd-stat-card:hover {
    box-shadow: var(--vd-shadow-md);
    transform: translateY(-2px);
}

.vd-stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.vd-stat-card-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--vd-gray-500);
}

.vd-stat-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.vd-stat-card-icon.blue {
    background: var(--vd-primary-bg);
    color: var(--vd-primary);
}

.vd-stat-card-icon.green {
    background: var(--vd-success-bg);
    color: var(--vd-success);
}

.vd-stat-card-icon.orange {
    background: var(--vd-warning-bg);
    color: var(--vd-warning);
}

.vd-stat-card-icon.purple {
    background: var(--vd-info-bg);
    color: var(--vd-info);
}

.vd-stat-card-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--vd-gray-900);
    line-height: 1;
    margin-bottom: 4px;
}

.vd-stat-card-sub {
    font-size: 12px;
    color: var(--vd-gray-400);
}

.vd-stat-card-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
}

.vd-stat-card-trend.up {
    background: var(--vd-success-bg);
    color: var(--vd-success);
}

.vd-stat-card-trend.down {
    background: var(--vd-danger-bg);
    color: var(--vd-danger);
}

/* --- 패널 (카드 컨테이너) --- */
.vd-panel {
    background: white;
    border-radius: var(--vd-radius);
    border: 1px solid var(--vd-border);
    margin-bottom: 24px;
}

.vd-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--vd-border);
    flex-wrap: wrap;
    gap: 12px;
}

.vd-panel-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--vd-gray-900);
    display: flex;
    align-items: center;
    gap: 8px;
}

.vd-panel-title-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--vd-primary);
    background: var(--vd-primary-bg);
    padding: 2px 8px;
    border-radius: 10px;
}

.vd-panel-body {
    padding: 0;
}

/* --- 필터 바 --- */
.vd-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--vd-gray-100);
    flex-wrap: wrap;
    background: var(--vd-gray-50);
}

.vd-filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vd-filter-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--vd-gray-500);
    margin-right: 4px;
    white-space: nowrap;
}

.vd-filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--vd-gray-600);
    background: white;
    border: 1px solid var(--vd-border);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--vd-transition);
    white-space: nowrap;
}

.vd-filter-chip:hover {
    border-color: var(--vd-primary);
    color: var(--vd-primary);
}

.vd-filter-chip.active {
    background: var(--vd-primary);
    color: white;
    border-color: var(--vd-primary);
}

.vd-filter-chip .count {
    font-size: 11px;
    margin-left: 4px;
    opacity: 0.8;
}

.vd-filter-divider {
    width: 1px;
    height: 24px;
    background: var(--vd-gray-200);
    margin: 0 8px;
}

.vd-filter-select {
    padding: 6px 32px 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--vd-border);
    font-size: 13px;
    color: var(--vd-gray-600);
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") no-repeat right 10px center;
    appearance: none;
    cursor: pointer;
    font-weight: 500;
}

/* --- 문의 리스트 (테이블 스타일) --- */
.vd-inquiry-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vd-inquiry-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px 100px 100px 120px;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--vd-gray-100);
    transition: background var(--vd-transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    gap: 16px;
}

.vd-inquiry-row:hover {
    background: var(--vd-gray-50);
}

.vd-inquiry-row:last-child {
    border-bottom: none;
}

.vd-inquiry-row-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px 100px 100px 120px;
    padding: 12px 24px;
    background: var(--vd-gray-50);
    border-bottom: 1px solid var(--vd-border);
    font-size: 12px;
    font-weight: 600;
    color: var(--vd-gray-500);
    text-transform: uppercase;
    gap: 16px;
}

.vd-inquiry-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.vd-inquiry-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.vd-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.vd-badge.category {
    background: var(--vd-info-bg);
    color: var(--vd-info);
}

.vd-badge.building {
    background: var(--vd-primary-bg);
    color: var(--vd-primary);
}

.vd-badge.hot {
    background: var(--vd-danger-bg);
    color: var(--vd-danger);
}

.vd-badge.participated {
    background: var(--vd-success-bg);
    color: var(--vd-success);
}

.vd-badge.status-active {
    background: var(--vd-success-bg);
    color: var(--vd-success);
}

.vd-badge.status-expired {
    background: var(--vd-gray-100);
    color: var(--vd-gray-500);
}

.vd-badge.status-completed {
    background: var(--vd-primary-bg);
    color: var(--vd-primary);
}

.vd-badge.status-canceled {
    background: var(--vd-danger-bg);
    color: var(--vd-danger);
}

.vd-inquiry-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--vd-gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vd-inquiry-excerpt {
    font-size: 13px;
    color: var(--vd-gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.vd-inquiry-location,
.vd-inquiry-budget {
    font-size: 13px;
    font-weight: 500;
    color: var(--vd-gray-600);
}

.vd-inquiry-budget {
    color: var(--vd-warning);
    font-weight: 600;
}

.vd-inquiry-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: var(--vd-gray-500);
}

.vd-inquiry-participants {
    display: flex;
    align-items: center;
    gap: 4px;
}

.vd-inquiry-participants i {
    font-size: 12px;
}

.vd-inquiry-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.vd-inquiry-time.urgent {
    color: var(--vd-danger);
    font-weight: 600;
}

.vd-inquiry-action {
    text-align: center;
}

.vd-btn-participate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--vd-radius-sm);
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--vd-transition);
    white-space: nowrap;
    background: var(--vd-primary);
    color: white;
}

.vd-btn-participate:hover {
    background: var(--vd-primary-dark);
}

.vd-btn-participated {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: var(--vd-radius-sm);
    font-size: 13px;
    font-weight: 600;
    background: var(--vd-success-bg);
    color: var(--vd-success);
    border: 1px solid transparent;
}

/* 모바일 전용 푸터 - 데스크탑에서 숨김 */
.vd-inquiry-row-mobile-footer {
    display: none;
}

/* --- 빈 상태 --- */
.vd-empty-state {
    padding: 60px 24px;
    text-align: center;
}

.vd-empty-icon {
    font-size: 48px;
    color: var(--vd-gray-300);
    margin-bottom: 16px;
}

.vd-empty-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--vd-gray-700);
    margin-bottom: 8px;
}

.vd-empty-desc {
    font-size: 14px;
    color: var(--vd-gray-400);
    margin-bottom: 20px;
}

/* --- 페이지네이션 --- */
.vd-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 20px 24px;
    border-top: 1px solid var(--vd-gray-100);
}

.vd-pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: var(--vd-radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--vd-gray-600);
    text-decoration: none;
    transition: all var(--vd-transition);
    border: 1px solid transparent;
}

.vd-pagination a:hover {
    background: var(--vd-gray-100);
}

.vd-pagination a.active {
    background: var(--vd-primary);
    color: white;
}

/* --- 모달 --- */
.vd-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.vd-modal-overlay.show {
    display: flex;
}

.vd-modal {
    width: 100%;
    max-width: 520px;
    background: white;
    border-radius: var(--vd-radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: vd-modal-in 0.25s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes vd-modal-in {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.vd-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--vd-border);
}

.vd-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--vd-gray-900);
}

.vd-modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--vd-gray-100);
    border-radius: 50%;
    cursor: pointer;
    color: var(--vd-gray-500);
    font-size: 18px;
    transition: all var(--vd-transition);
}

.vd-modal-close:hover {
    background: var(--vd-gray-200);
    color: var(--vd-gray-700);
}

.vd-modal-body {
    padding: 24px;
}

.vd-modal-body .form-group {
    margin-bottom: 20px;
    padding: 0;
}

.vd-modal-body .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--vd-gray-700);
    margin-bottom: 8px;
}

.vd-modal-body textarea {
    width: 100%;
    min-height: 140px;
    padding: 12px 16px;
    border: 1px solid var(--vd-border);
    border-radius: var(--vd-radius-sm);
    font-size: 14px;
    resize: vertical;
    outline: none;
    font-family: inherit;
    transition: border-color var(--vd-transition);
}

.vd-modal-body textarea:focus {
    border-color: var(--vd-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.vd-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--vd-border);
}

.vd-modal-footer .btn-cancel {
    padding: 10px 20px;
    border-radius: var(--vd-radius-sm);
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    border: 1px solid var(--vd-border);
    background: white;
    color: var(--vd-gray-600);
    transition: all var(--vd-transition);
}

.vd-modal-footer .btn-cancel:hover {
    background: var(--vd-gray-50);
}

.vd-modal-footer .btn-submit {
    padding: 10px 24px;
    border-radius: var(--vd-radius-sm);
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    border: none;
    background: var(--vd-primary);
    color: white;
    transition: all var(--vd-transition);
}

.vd-modal-footer .btn-submit:hover {
    background: var(--vd-primary-dark);
}

/* 파일 업로드 */
.vd-file-upload {
    border: 2px dashed var(--vd-gray-200);
    border-radius: var(--vd-radius-sm);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--vd-transition);
    background: var(--vd-gray-50);
}

.vd-file-upload:hover {
    border-color: var(--vd-primary);
    background: var(--vd-primary-bg);
}

.vd-file-upload i {
    font-size: 24px;
    color: var(--vd-gray-400);
    margin-bottom: 8px;
}

.vd-file-upload span {
    display: block;
    font-size: 13px;
    color: var(--vd-gray-500);
}

.vd-file-preview {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--vd-gray-50);
    border-radius: var(--vd-radius-sm);
    border: 1px solid var(--vd-border);
    margin-top: 10px;
}

.vd-file-preview.show {
    display: flex;
}

.vd-file-preview .file-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--vd-gray-700);
}

.vd-file-preview .remove-file {
    background: none;
    border: none;
    color: var(--vd-gray-400);
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
}

.vd-file-preview .remove-file:hover {
    color: var(--vd-danger);
}

/* 경고 알림 */
.vd-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--vd-radius-sm);
    font-size: 13px;
    line-height: 1.5;
}

.vd-alert.warning {
    background: var(--vd-warning-bg);
    color: #92400e;
    border: 1px solid #fcd34d;
}

.vd-alert i {
    flex-shrink: 0;
    margin-top: 1px;
}

/* 견적 내용 (참여한 경우) */
.vd-my-quote {
    background: var(--vd-primary-bg);
    border: 1px solid #bfdbfe;
    border-radius: var(--vd-radius-sm);
    padding: 16px;
    margin: 12px 24px;
}

.vd-my-quote-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--vd-primary-dark);
}

.vd-my-quote-header i {
    color: var(--vd-primary);
}

.vd-my-quote-content {
    background: white;
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--vd-gray-700);
    border: 1px solid #dbeafe;
}

.vd-my-quote-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 12px;
    color: var(--vd-gray-500);
}

.vd-my-quote-footer a {
    color: var(--vd-primary);
    text-decoration: none;
    font-weight: 500;
}

/* 모바일 사이드바 오버레이 */
.vd-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 199;
}

.vd-sidebar-overlay.show {
    display: block;
}

/* ===================
   6. Responsive
   =================== */

/* 태블릿 */
@media (max-width: 1024px) {
    .vd-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vd-inquiry-row,
    .vd-inquiry-row-head {
        grid-template-columns: minmax(0, 1fr) 120px 100px;
    }

    .vd-inquiry-row > :nth-child(3),
    .vd-inquiry-row-head > :nth-child(3) {
        display: none;
    }

    .vd-inquiry-row > :nth-child(4),
    .vd-inquiry-row-head > :nth-child(4) {
        display: none;
    }
}

/* 모바일 */
@media (max-width: 768px) {
    .vd-sidebar {
        transform: translateX(-100%);
    }

    .vd-sidebar.open {
        transform: translateX(0);
    }

    .vd-main {
        margin-left: 0;
    }

    .vd-mobile-menu-btn {
        display: flex;
    }

    .vd-topbar {
        padding: 12px 16px;
    }

    .vd-topbar-title {
        font-size: 16px;
    }

    .vd-topbar-date {
        display: none;
    }

    .vd-content {
        padding: 16px;
    }

    .vd-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .vd-stat-card {
        padding: 16px;
    }

    .vd-stat-card-value {
        font-size: 22px;
    }

    .vd-stat-card-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    /* 모바일: 리스트를 카드 스타일로 */
    .vd-inquiry-row-head {
        display: none;
    }

    .vd-inquiry-row {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 16px;
        border-bottom: 1px solid var(--vd-gray-100);
    }

    .vd-inquiry-main {
        width: 100%;
    }

    /* 데스크탑 전용 컬럼 숨김 */
    .vd-inquiry-row > .vd-inquiry-location,
    .vd-inquiry-row > .vd-inquiry-budget,
    .vd-inquiry-row > .vd-inquiry-meta,
    .vd-inquiry-row > .vd-inquiry-action {
        display: none;
    }

    .vd-inquiry-row-mobile-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .vd-filter-bar {
        padding: 12px 16px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .vd-filter-bar::-webkit-scrollbar {
        display: none;
    }

    .vd-panel-header {
        padding: 16px;
    }

    .vd-pagination {
        padding: 16px;
    }

    .vd-my-quote {
        margin: 8px 16px;
    }
}

@media (max-width: 480px) {
    .vd-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .vd-stat-card {
        padding: 14px;
    }

    .vd-stat-card-value {
        font-size: 20px;
    }

    .vd-topbar-actions {
        gap: 8px;
    }

    .vd-topbar-btn span {
        display: none;
    }
}

/* ===================
   7. 프로필 편집 - 대시보드 레이아웃 내부 스타일
   =================== */
.vd-profile-edit {
    padding: 0;
    border: none;
}

.vd-profile-edit .profile-edit-header {
    display: none;
}

.vd-profile-edit .form-section {
    background: white;
    border: 1px solid var(--vd-border);
    border-radius: var(--vd-radius);
    padding: 28px;
    margin-bottom: 24px;
}

.vd-profile-edit .form-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--vd-gray-900);
    margin: 0 0 6px 0;
    padding: 0;
    border: none;
}

.vd-profile-edit .form-section .description {
    font-size: 13px;
    color: var(--vd-gray-500);
    margin: 0 0 20px 0;
}

.vd-profile-edit .form-group {
    margin-bottom: 20px;
    padding: 0;
}

.vd-profile-edit .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--vd-gray-700);
    margin-bottom: 8px;
}

.vd-profile-edit .form-group .sub-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--vd-gray-500);
    margin-bottom: 6px;
}

.vd-profile-edit .form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--vd-border);
    border-radius: var(--vd-radius-sm);
    font-size: 14px;
    color: var(--vd-gray-800);
    background: white;
    transition: border-color var(--vd-transition);
    font-family: inherit;
}

.vd-profile-edit .form-control:focus {
    outline: none;
    border-color: var(--vd-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.vd-profile-edit select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.vd-profile-edit textarea.form-control {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.vd-profile-edit .help-text {
    font-size: 12px;
    color: var(--vd-gray-400);
    margin-top: 6px;
}

.vd-profile-edit .category-group {
    margin-bottom: 12px;
}

.vd-profile-edit .character-count {
    text-align: right;
    font-size: 12px;
    color: var(--vd-gray-400);
    margin-top: 6px;
}

/* 이미지 그리드 */
.vd-profile-edit .profile-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.vd-profile-edit .image-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--vd-radius-sm);
    overflow: hidden;
    border: 1px solid var(--vd-border);
}

.vd-profile-edit .image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vd-profile-edit .image-item .main-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--vd-primary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.vd-profile-edit .image-item .delete-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transition: opacity var(--vd-transition);
}

.vd-profile-edit .image-item:hover .delete-btn {
    opacity: 1;
}

.vd-profile-edit .add-image-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    aspect-ratio: 1;
    border: 2px dashed var(--vd-gray-200);
    border-radius: var(--vd-radius-sm);
    background: var(--vd-gray-50);
    cursor: pointer;
    transition: all var(--vd-transition);
    color: var(--vd-gray-400);
    font-size: 13px;
}

.vd-profile-edit .add-image-btn:hover {
    border-color: var(--vd-primary);
    color: var(--vd-primary);
    background: var(--vd-primary-bg);
}

.vd-profile-edit .add-image-btn i {
    font-size: 24px;
}

/* 주소 입력 */
.vd-profile-edit .address-input-wrapper {
    display: flex;
    gap: 8px;
}

.vd-profile-edit .address-input-wrapper input {
    flex: 1;
}

.vd-profile-edit .btn-search-address {
    flex-shrink: 0;
    padding: 10px 16px;
    background: var(--vd-primary);
    color: white;
    border: none;
    border-radius: var(--vd-radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: background var(--vd-transition);
}

.vd-profile-edit .btn-search-address:hover {
    background: var(--vd-primary-dark);
}

/* 지도 미리보기 */
.vd-profile-edit .map-preview {
    border-radius: var(--vd-radius-sm);
    overflow: hidden;
    border: 1px solid var(--vd-border);
    margin-top: 12px;
}

/* 저장 버튼 */
.vd-profile-edit .form-actions {
    padding: 0;
    margin-bottom: 40px;
}

.vd-profile-edit .btn-save {
    width: 100%;
    padding: 14px 24px;
    background: var(--vd-primary);
    color: white;
    border: none;
    border-radius: var(--vd-radius);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--vd-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.vd-profile-edit .btn-save:hover {
    background: var(--vd-primary-dark);
}

/* 카테고리 경로 표시 */
.vd-profile-edit .category-path-display {
    background: var(--vd-primary-bg);
    border: 1px solid #bfdbfe;
    border-radius: var(--vd-radius-sm);
    padding: 10px 14px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--vd-primary-dark);
}

@media (max-width: 768px) {
    .vd-profile-edit .form-section {
        padding: 20px 16px;
        margin-bottom: 16px;
    }

    .vd-profile-edit .profile-images-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .vd-profile-edit .address-input-wrapper {
        flex-direction: column;
    }
}
