@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

/* Overview Cards Styles start*/

.dashboard-cards {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    gap: 10px;
}

.card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px 25px;
    width: 23%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 70px;
}

.card-label {
    font-size: 12px;
    color: #666;
    font-weight: normal;
    text-align: left;
}

.card-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.card-value {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-right: 10px;
}

.card-change {
    font-size: 12px;
    color: #4caf50;
    margin-left: auto;
}

/* 각 카드별 스타일 */
.today-card .card-change { color: #4caf50; }
.total-card .card-change { color: #f44336; }
.mirna-card .card-change { color: #4caf50; }
.similarity-card .card-change { color: #4caf50; }

/* Overview Cards Styles end */

/* Chart Section Styles */
.chart-section {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    gap: 20px;
}

.chart-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.summary-chart,
.ai-status-card {
    width: 65%;
}

.cancer-analysis,
.gender-chart-card{
    width: 35%;
    align-items: center;
}

.chart-card h2 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.chart-header h2 {
    margin: 0;
    font-size: 18px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 0px;
}

.filter-btn {
    padding: 5px 10px;
    background-color: #fff;
    border: none;
    cursor: pointer;
    color: #888;
    text-decoration: none;
}

.filter-btn.active {
    color: #888;
    border: 1px solid #888;
    border-radius: 5px;
    text-decoration: none;
}

.chart-card > div {
    position: relative;
    width: 100%;
}

canvas {
    width: 100% !important;
    height: 100% !important;
}

.filter-select {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    background-color: #fff;
    color: #888;
    cursor: pointer;
    outline: none;
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.filter-select:focus {
    border-color: #14b5ad;
    box-shadow: 0 0 5px rgba(20, 181, 173, 0.3);
}

.filter-select option {
    color: #333;
}

/*10종암*/
#cancerBarList {
    margin-top: 16px;
}
.cancer-bar-group {
    margin-bottom: 32px;
}
.cancer-bar-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 6px;
}
.cancer-bar-bg {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}
.cancer-bar-fill {
    height: 100%;
    background: #4F46E5;
    border-radius: 4px;
    transition: width 0.7s;
}

.ai-status-desc {
    color: #888;
    font-size: 13px;
    margin-bottom: 12px;
}
.ai-status-table {
    width: 100%;
}
.ai-status-row {
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 0;
    font-size: 15px;
    gap: 16px;
}

.ai-status-title-group {
    display: flex;
    flex-direction: column;
    flex: 2 1 0;
    min-width: 0;
}

.ai-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 60px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: bold;
    margin-right: 12px;
}
.ai-status-title {
    font-weight: 500;
    color: #222;
    line-height: 1.2;
}
.ai-status-subtext {
    font-size: 13px;
    color: #888;
    margin-top: 2px;
}
.ai-status-info-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 1 0;
    min-width: 0;
    margin-right: 12px;
}
.ai-status-type {
    font-size: 15px;
    color: #666;
    margin-bottom: 2px;
}
.ai-status-date-group {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 120px;
    margin-left: auto;
}

.ai-status-more-btn {
    background: none;
    border: none;
    color: #bbb;
    font-size: 20px;
    cursor: pointer;
    padding: 0 0 0 8px;
    line-height: 1;
    transition: color 0.2s;
    margin: 0 30px;
}
.ai-status-more-btn:hover {
    color: #888;
}

#genderChart {
    width: 250px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.card-change.positive {
    color: #4caf50;
}

.card-change.negative {
    color: #f44336;
}

.card-change.na {
    color: #222;
}
.see-all-link {
    display: inline-flex;
    align-items: center;
    color: #6D28D9;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    gap: 4px;
}
.see-all-arrow {
    font-size: 18px;
    margin-left: 2px;
    line-height: 1;
}

/* dot 스타일 (크기와 기본색) */
.ai-status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 4px;
    background: #099250;    /* 기본값: 진행중(초록) */
}
/* 상태별 badge 색상 */
.ai-status-badge.green { background: #DCFCE7; color: #099250; }
.ai-status-badge.yellow { background: #FEF9C3; color: #B54708; }
.ai-status-badge.red { background: #FEE2E2; color: #B42318; }
.ai-status-date { width: 140px; text-align: right; color: #aaa; font-size: 13px; margin-top: 10px;}

/* 상태별 dot 색상 */
.ai-status-badge.green .ai-status-dot { background: #22C55D; }
.ai-status-badge.yellow .ai-status-dot { background: #FACC15; }
.ai-status-badge.red .ai-status-dot { background: #F04443; }