/* Feces Page Modern Styles */
@charset "UTF-8";

/* Chart Container Styles */
.chart-container {
    width: 320px;
    height: 320px;
    position: relative;
    display: inline-block;
}

.chart-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 20px);
    margin: 20px 10px 10px;
    text-align: center;
}

.mean-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 20px);
    margin-top: 60px;
    margin-left: 0;
    text-align: center;
}

/* 차트의 크기를 조정하는 CSS */
#historyChart {
    width: 100%;
}

/* Period Setting Wrap - 세련된 디자인 */
.period-setting-wrap {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 20px 10px 15px 10px;
    margin: 80px 0 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
}

.period-setting-wrap .subtitle-wrap {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1562aa;
    display: flex;
    align-items: center;
}

/* Form Search - 세련된 디자인 */
#formSearch {
    margin-top: 15px;
}

#formSearch .period-setting {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

#formSearch .period-setting a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

#formSearch .period-setting a:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

#formSearch .period-setting img {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

#formSearch .period-setting span {
    font-weight: 600;
    color: #1562aa;
    font-size: 1rem;
    padding: 8px 16px;
    background: rgba(21, 98, 170, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(21, 98, 170, 0.2);
    margin: 0 10px;
}

/* 버튼 스타일 - 세련된 디자인 */
.btn-sm {
    padding: 0 10px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 12px;
    border: 2px solid;
    transition: all 0.3s ease;
    margin: 0 3px;
    position: relative;
    overflow: hidden;
}

.btn-outline-primary {
    color: #1562aa;
    border-color: #1562aa;
    background: linear-gradient(135deg, rgba(21, 98, 170, 0.05) 0%, rgba(21, 98, 170, 0.1) 100%);
    backdrop-filter: blur(10px);
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #1562aa 0%, #0d4a8a 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 98, 170, 0.3);
    border-color: #1562aa;
}

.btn-outline-primary:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(21, 98, 170, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #1562aa 0%, #0d4a8a 100%);
    border-color: #1562aa;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(21, 98, 170, 0.3);
    transform: translateY(-1px);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0d4a8a 0%, #0a3a6b 100%);
    box-shadow: 0 6px 20px rgba(21, 98, 170, 0.4);
    transform: translateY(-2px);
}

/* Legend Container */
.legend-container {
    background: linear-gradient(135deg, #f8f6f0 0%, #f5f2e8 100%);
    border: 2px solid #7b5016;
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 4px 20px rgba(123, 80, 22, 0.1);
    font-size: 16px;
    font-weight: 600;
}

/* Badge Primary - 세련된 디자인 */
.badge.badge-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.badge.badge-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.badge.badge-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.badge.badge-primary:hover::before {
    left: 100%;
}

.badge.badge-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .badge.badge-primary {
        padding: 5px 10px;
        font-size: 11px;
        border-radius: 16px;
    }

    .legend-container {
        flex-direction: row;
        gap: 15px;
        align-items: center;
    }
} 