@charset "UTF-8";

.clickable {
    cursor: pointer;
    color: #007bff;
    text-decoration: underline;
}

/* =========================================
   DataTables 커스텀 스타일
   ========================================= */

td.editable {
    cursor: pointer; /* 마우스 올리면 손가락 모양 */
    transition: background-color 0.2s ease-in-out; /* 색상 부드럽게 전환 */
    position: relative; /* 필요시 내부 요소 정렬 기준 */
}

td.editable:hover {
    background-color: #e9ecef !important; /* 연한 회색 (Bootstrap gray-200) */
    box-shadow: inset 0 0 0 1px #dee2e6; /* 안쪽 테두리로 강조 효과 */
}

td.editable input,
td.editable select {
    cursor: text;   /* 입력창에서는 텍스트 커서 */
    width: 100%;    /* 셀 꽉 차게 */
    box-sizing: border-box;
}

tr.modified > td {
    background-color: #fff3cd !important; /* 연한 노란색 (Bootstrap warning-subtle) */
    color: #b84911; /* 진한 갈색 글씨 */
}

tr.modified:hover > td {
    background-color: #ffe69c !important; /* 호버 시 조금 더 진한 노란색 */
}

/* 유효성 검사 메시지(invalid-feedback)가
   input-group 안에서 줄바꿈이 자연스럽게 되도록 설정 */
.input-group .invalid-feedback {
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}


.api-finder-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(80vh - 72px);
}
.api-finder-card {
    background-color: #fff;
    border-radius: 16px;
    padding: 48px 52px;
    max-width: 640px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.api-finder-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: #111;
}
.api-finder-desc {
    font-size: 0.95rem;
    color: #555;
    text-align: center;
    line-height: 1.7;
    margin-bottom: 28px;
}
.api-finder-input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
}
.api-finder-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 0.95rem;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    outline: none;
    color: #333;
    transition: border-color 0.2s;
}
.api-finder-input:focus {
    border-color: #888;
}
.api-finder-btn {
    padding: 12px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    background-color: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s;
}
.api-finder-btn:hover {
    background-color: #333;
}

@media (max-width: 480px) {
    .api-finder-card {
        padding: 32px 24px;
    }
    .api-finder-input-row {
        flex-direction: column;
    }
    .api-finder-btn {
        width: 100%;
    }
}
.api-finder-features {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
    color: #444;
    font-size: 0.9rem;
    line-height: 2;
}

/* =========================================
   API Finder - 결과 목록
   ========================================= */
.api-result-area {
    margin-top: 28px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}
.api-result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.api-result-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}
.api-result-count {
    font-size: 0.8rem;
    background-color: #1a1a1a;
    color: #fff;
    border-radius: 20px;
    padding: 2px 10px;
}
.api-result-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.api-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #eee;
    background-color: #fafafa;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
    font-size: 0.875rem;
}
.api-result-item:hover {
    background-color: #f0f0f0;
    border-color: #ddd;
}
.api-result-url {
    flex: 1;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.api-result-method, .api-result-status {
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    padding: 2px 8px;
    white-space: nowrap;
}
.method-get  { background-color: #e7f3ff; color: #0969da; }
.method-post { background-color: #fff0e6; color: #d1650a; }
.status-ok   { background-color: #e6f4ea; color: #1a7f37; }
.status-error { background-color: #ffeef0; color: #d1242f; }

/* =========================================
   API Finder - 모달
   ========================================= */
.api-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.api-modal {
    background-color: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    margin: 0 20px;
}
.api-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #eee;
}
.api-modal-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
}
.api-modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.api-modal-close:hover { color: #333; }
.api-modal-body {
    padding: 22px 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.api-modal-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
    display: block;
}
.api-modal-url-row {
    display: flex;
    flex-direction: column;
}
.api-modal-url-value {
    font-size: 0.9rem;
    color: #333;
    word-break: break-all;
}
.api-modal-meta-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.api-modal-meta-item {
    display: flex;
    flex-direction: column;
}
.api-modal-badge {
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
    padding: 3px 10px;
    display: inline-block;
}
.api-modal-value {
    font-size: 0.875rem;
    color: #555;
}
.api-modal-response {
    background-color: #f6f8fa;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    padding: 16px;
    font-size: 0.8rem;
    color: #333;
    line-height: 1.7;
    overflow-x: auto;
    white-space: pre;
    margin: 0;
}

.nav-link {
    position: relative;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #0d6efd;
}

.nav-link::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #0d6efd;
    transition: 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}