/* 효과 크기 계산기 전용 스타일 */

.effect-form-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    border: 1px solid #e9ecef;
}

.effect-criteria-info {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
}

.effect-criteria-info p {
    margin: 0;
    color: #1976d2;
    font-weight: 500;
}

.input-section {
    margin: 20px 0;
}

.row {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.col {
    flex: 1;
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.col h5 {
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.data-status {
    padding: 10px;
    border-radius: 5px;
    font-weight: 500;
}

.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.radio-group label:hover {
    background-color: #f5f5f5;
}

.radio-group input[type="radio"] {
    margin: 0;
}

/* 효과 크기 결과 스타일 */
.effect-size-results {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
}

.effect-size-results h3 {
    color: white;
    margin-bottom: 25px;
    text-align: center;
}

.effect-size-summary {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.effect-value-card, .effect-ci-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.effect-value-card h4, .effect-ci-card h4 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.effect-value {
    font-size: 2.5em;
    font-weight: bold;
    color: #ffeb3b;
    margin: 10px 0;
}

.effect-ci {
    font-size: 1.3em;
    color: #e1f5fe;
    font-weight: 500;
}

.effect-interpretation {
    font-size: 1.1em;
    font-weight: 500;
    margin-top: 10px;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
}

.effect-interpretation.large {
    background: #f44336;
    color: white;
}

.effect-interpretation.medium {
    background: #ff9800;
    color: white;
}

.effect-interpretation.small {
    background: #ffeb3b;
    color: #333;
}

.effect-interpretation.negligible {
    background: #9e9e9e;
    color: white;
}

/* 효과 크기 눈금자 */
.effect-gauge {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.effect-gauge h4 {
    color: white;
    text-align: center;
    margin-bottom: 20px;
}

.gauge-container {
    position: relative;
    margin: 20px 0;
}

.gauge-bar {
    height: 20px;
    background: linear-gradient(to right, #9e9e9e 0%, #ffeb3b 33%, #ff9800 66%, #f44336 100%);
    border-radius: 10px;
    position: relative;
    margin: 20px 0;
}

.gauge-marker {
    position: absolute;
    top: -5px;
    width: 30px;
    height: 30px;
    background: white;
    border: 3px solid #333;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.gauge-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.gauge-labels span {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9em;
    text-align: center;
    min-width: 60px;
}

/* 해석 가이드 */
.effect-interpretation-guide {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.effect-interpretation-guide h4 {
    color: white;
    margin-bottom: 15px;
}

.interpretation-text {
    color: #e1f5fe;
    font-size: 1.1em;
    line-height: 1.6;
}

/* 기준표 */
.effect-criteria-table {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.effect-criteria-table h4 {
    color: white;
    margin-bottom: 15px;
    text-align: center;
}

.criteria-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    overflow: hidden;
}

.criteria-table th {
    background: #333;
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: 600;
}

.criteria-table td {
    padding: 10px;
    text-align: center;
    color: #333;
    border-bottom: 1px solid #eee;
}

.criteria-table tr:nth-child(even) td {
    background: rgba(0, 0, 0, 0.05);
}

/* AI 해석 */
.ai-interpretation {
    background: rgba(76, 175, 80, 0.2);
    border: 2px solid #4caf50;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.ai-interpretation h4 {
    color: #4caf50;
    margin-bottom: 15px;
}

.ai-text {
    color: #e8f5e8;
    font-size: 1.1em;
    line-height: 1.6;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .effect-size-summary {
        flex-direction: column;
    }
    
    .row {
        flex-direction: column;
        gap: 15px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .gauge-labels {
        flex-direction: column;
        gap: 5px;
        align-items: center;
    }
    
    .effect-value {
        font-size: 2em;
    }
}

/* 폼 요소 개선 */
#effectsize-section .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 1em;
    transition: all 0.3s ease;
}

#effectsize-section .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

#effectsize-section .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#effectsize-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

#effectsize-section .btn-primary:disabled {
    background: #ccc;
    transform: none;
    box-shadow: none;
}

#effectsize-section .btn-secondary {
    background: #6c757d;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

#effectsize-section .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* 로딩 상태 */
.effect-loading {
    text-align: center;
    padding: 40px;
    color: #667eea;
}

.effect-loading i {
    font-size: 2em;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 툴팁 스타일 */
.effect-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.effect-tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9em;
}

.effect-tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 효과 크기 비교 차트 */
.effect-comparison-chart {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.effect-comparison-chart h4 {
    color: white;
    text-align: center;
    margin-bottom: 20px;
}

.comparison-bars {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 100px;
    margin: 20px 0;
}

.comparison-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px 5px 0 0;
    position: relative;
    transition: all 0.3s ease;
}

.comparison-bar:hover {
    background: rgba(255, 255, 255, 0.3);
}

.comparison-bar.current {
    background: #ffeb3b;
    box-shadow: 0 0 20px rgba(255, 235, 59, 0.5);
}

.comparison-label {
    text-align: center;
    font-size: 0.8em;
    margin-top: 5px;
    color: white;
}
