/* 사이트맵 생성기 도구 스타일 */

/* 탭 스타일 */
.sitemap-generator-tool .nav-pills .nav-link {
    color: var(--bs-body-color);
    font-weight: 600;
    transition: all 0.2s ease;
}

.sitemap-generator-tool .nav-pills .nav-link.active {
    background-color: var(--bs-primary);
    color: #fff;
}

/* URL 행 */
.sitemap-url-row {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sitemap-url-row:hover {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 1px rgba(var(--bs-primary-rgb), 0.1);
}

.sitemap-url-row .form-control,
.sitemap-url-row .form-select {
    font-size: 0.85rem;
}

.sitemap-url-row .btn-remove-row {
    color: var(--bs-secondary-color);
    border: none;
    background: none;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.sitemap-url-row .btn-remove-row:hover {
    color: var(--bs-danger);
}

/* 출력 텍스트 영역 */
.sitemap-output {
    font-size: 0.8rem;
    line-height: 1.5;
    background-color: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
}

/* 검증 상태 아이콘 */
.sitemap-status-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.sitemap-status-valid .sitemap-status-icon {
    background-color: rgba(12, 206, 107, 0.1);
    color: #0cce6b;
}

.sitemap-status-invalid .sitemap-status-icon {
    background-color: rgba(255, 78, 66, 0.1);
    color: #ff4e42;
}

.sitemap-status-warning .sitemap-status-icon {
    background-color: rgba(255, 164, 0, 0.1);
    color: #ffa400;
}

/* 통계 카드 */
.sitemap-stat-card {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
}

.sitemap-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-primary);
}

.sitemap-stat-label {
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
    margin-top: 0.25rem;
}

/* 문제 목록 */
.sitemap-issue-item {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    padding: 0.625rem 0.875rem;
    margin-bottom: 0.375rem;
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.sitemap-issue-item.issue-error {
    border-left: 3px solid #ff4e42;
    background-color: rgba(255, 78, 66, 0.03);
}

.sitemap-issue-item.issue-warning {
    border-left: 3px solid #ffa400;
    background-color: rgba(255, 164, 0, 0.03);
}

.sitemap-issue-item .issue-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.sitemap-issue-item .issue-badge-error {
    background-color: rgba(255, 78, 66, 0.1);
    color: #ff4e42;
}

.sitemap-issue-item .issue-badge-warning {
    background-color: rgba(255, 164, 0, 0.1);
    color: #ffa400;
}

/* 다크 모드 */
[data-bs-theme="dark"] .sitemap-status-valid .sitemap-status-icon {
    background-color: rgba(12, 206, 107, 0.2);
    color: #5ee6a0;
}

[data-bs-theme="dark"] .sitemap-status-invalid .sitemap-status-icon {
    background-color: rgba(255, 78, 66, 0.2);
    color: #ff8a82;
}

[data-bs-theme="dark"] .sitemap-status-warning .sitemap-status-icon {
    background-color: rgba(255, 164, 0, 0.2);
    color: #ffbe4d;
}

[data-bs-theme="dark"] .sitemap-issue-item.issue-error {
    background-color: rgba(255, 78, 66, 0.06);
}

[data-bs-theme="dark"] .sitemap-issue-item.issue-warning {
    background-color: rgba(255, 164, 0, 0.06);
}

[data-bs-theme="dark"] .sitemap-output {
    background-color: var(--bs-tertiary-bg);
}

[data-bs-theme="dark"] .sitemap-url-row:hover {
    box-shadow: 0 0 0 1px rgba(var(--bs-primary-rgb), 0.2);
}
