@charset "UTF-8";

/* ============================================================
   COMPAS HUB - 대시보드 목록 (dashboard)
   ============================================================ */

#hub-dashboard-list {
    --hub-list-accent: #369367;
    --hub-list-accent-hover: #2f815b;
}

.dashboard-tab-nav {
    display: flex;
    gap: 0;
    width: 1400px;
    max-width: calc(100% - 40px);
    margin: 0 auto 24px;
    border-bottom: 2px solid #e5e7eb;
}
.dashboard-tab-btn {
    padding: 10px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    margin-bottom: -2px;
}
.dashboard-tab-btn.active {
    color: var(--hub-list-accent);
    border-bottom-color: var(--hub-list-accent);
}
.dashboard-tab-btn em {
    margin-left: 4px;
    font-style: normal;
    font-weight: 600;
    color: #9ca3af;
}
.dashboard-tab-btn.active em {
    color: var(--hub-list-accent);
}
.dashboard-tab-btn:hover:not(.active) {
    color: #374151;
}
.dashboard-tab-pane { display: none; }
.dashboard-tab-pane.active { display: block; }

/* 정렬 체크: 탭 활성색과 동일 */
#hub-dashboard-list .result-sort-list .btn.active {
    color: var(--hub-list-accent);
}
#hub-dashboard-list .result-sort-list .btn.active::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21' fill='none'%3E%3Cpath d='M4.5 10.8l4.2 4.2 7.8-8.4' stroke='%23369367' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-color: transparent;
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: left center;
}

/* My 대시보드 상단 */
.my-dashboard-topbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 16px;
}
.btn-new-dashboard {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--hub-list-accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-new-dashboard:hover { background: var(--hub-list-accent-hover); }

/* My 대시보드 카드 */
.my-dashboard-card-list { list-style: none; padding: 0; margin: 0; }
.my-dashboard-card-list .dashboard-item {
    height: 100%;
}
.my-dashboard-card-list .title {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}
.my-dashboard-card-list .title:hover { color: var(--hub-list-accent); }

/* 전체 / My 대시보드: 카드 content·메타 공통 스타일 */
#hub-dashboard-ul .content,
#my-dashboard-ul .content {
    align-items: flex-start;
}
/* 전체 목록도 My 목록의 상태 배지 행(28px + 하단 10px)과 같은 높이를 유지한다. */
#hub-dashboard-ul .content::before {
    content: "";
    display: block;
    width: 100%;
    min-height: 28px;
    flex: 0 0 28px;
    margin-bottom: 10px;
}
#hub-dashboard-ul .data-util,
#my-dashboard-ul .data-util {
    width: 100%;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: flex-start;
    margin-top: 20px;
}
#hub-dashboard-ul .data-util .author,
#my-dashboard-ul .data-util .date {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    color: #666;
}
#hub-dashboard-ul .data-util .author {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#hub-dashboard-ul .data-util .author .fa,
#my-dashboard-ul .data-util .date .fa {
    margin-right: 4px;
}
#hub-dashboard-ul .data-util .view-num,
#hub-dashboard-ul .data-util .bookmark-num,
#my-dashboard-ul .data-util .view-num,
#my-dashboard-ul .data-util .bookmark-num {
    margin: 0;
    padding-left: 0;
    background: none;
}
#hub-dashboard-ul .data-util .view-num,
#hub-dashboard-ul .data-util .bookmark-num {
    flex: 0 0 auto;
}
#hub-dashboard-ul .data-util .view-num .fa,
#hub-dashboard-ul .data-util .bookmark-num .fa,
#my-dashboard-ul .data-util .view-num .fa,
#my-dashboard-ul .data-util .bookmark-num .fa {
    margin-right: 4px;
}
#hub-dashboard-ul .data-util .author + .view-num {
    margin-left: 4px;
}

.my-dashboard-card-list .ugv-dashboard-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
}
.my-dashboard-card-list .ugv-dashboard-thumb-placeholder i {
    font-size: 48px;
    color: #9ca3af;
}

.my-dashboard-status-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0;
    flex-shrink: 0;
}
#my-dashboard-ul .my-dashboard-status-badges {
    min-height: 28px;
    width: 100%;
    margin-bottom: 10px;
}
.my-dashboard-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-sizing: border-box;
    min-height: 28px;
    padding: 4px 9px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
    white-space: nowrap;
}
.my-dashboard-status-badge .fa {
    flex: 0 0 auto;
    font-size: 12px;
    line-height: 1;
}
.badge-none  { background: #f1f5f3; border-color: #d8e1dc; color: #3f5360; }
.badge-wait  { background: #fff5df; border-color: #f5d99d; color: #8a4b00; }
.badge-aprv  { background: #e9f3ec; border-color: #cfe3d5; color: #08783e; }
.badge-pub   { background: #edf3ff; border-color: #cddcff; color: #2147a6; }
.badge-rjct  { background: #fff0ee; border-color: #f2c7c3; color: #a91d24; }

/* 갤러리 목록 카드와 동일한 상태 배지 규격을 사용한다. */
#my-dashboard-ul .my-dashboard-status-badges { gap: 6px; }

.my-dashboard-empty {
    text-align: center;
    padding: 60px 0;
    color: #9ca3af;
}
.my-dashboard-empty i { font-size: 40px; display: block; margin-bottom: 12px; }
.my-dashboard-login p { margin-bottom: 20px; color: #6b7280; font-size: 15px; }
.btn-my-dashboard-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 10px 28px;
    background: var(--hub-list-accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-my-dashboard-login:hover { background: var(--hub-list-accent-hover); }

/* My 대시보드 페이지네이션 */
.dashboard-pagination {
    position: static;
    left: auto;
    transform: none;
    float: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 28px auto 8px;
    gap: 6px;
    width: 100%;
    font-size: 14px;
    text-align: center;
}
.dashboard-pagination li {
    display: inline-flex;
    margin: 0;
}
.dashboard-pagination .page-link,
.dashboard-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: auto;
    min-width: 36px;
    height: 36px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.dashboard-pagination .page-link:hover,
.dashboard-pagination a:hover {
    background: #f3f4f6;
    color: #374151;
    font-weight: 400;
}
.dashboard-pagination li.active .page-link,
.dashboard-pagination li.page-item.active .page-link,
.dashboard-pagination .page-link.active,
.dashboard-pagination a.active {
    background: var(--hub-list-accent);
    border-color: var(--hub-list-accent);
    color: #fff;
    font-weight: 700;
}
.dashboard-pagination li.active .page-link:hover,
.dashboard-pagination li.page-item.active .page-link:hover,
.dashboard-pagination .page-link.active:hover,
.dashboard-pagination a.active:hover {
    background: var(--hub-list-accent);
    border-color: var(--hub-list-accent);
    color: #fff;
    font-weight: 700;
}
.dashboard-pagination li.disabled .page-link,
.dashboard-pagination li.disabled a {
    color: #d1d5db;
    pointer-events: none;
    cursor: default;
}
