.woba-calculator {
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    color: #333;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.woba-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    text-align: center;
}

.woba-header h1 {
    font-size: 2.2rem;
    margin: 0;
    color: #2d3748;
    font-weight: 700;
}

.woba-description {
    font-size: 1rem;
    color: #4a5568;
    margin: 10px 0 0;
}

.theme-toggle {
    position: absolute;
    right: 0;
    top: 10px;
    cursor: pointer;
}

.theme-icon {
    width: 24px;
    height: 24px;
    color: #4a5568;
    transition: color 0.3s ease;
}

.woba-input-section, 
.woba-result-section, 
.woba-info-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.woba-input-section h2, 
.woba-result-section h2, 
.woba-info-section h2 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
}

.woba-form-rows {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.woba-form-row {
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

.woba-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.woba-input-group label {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #4a5568;
    font-weight: 500;
}

.woba-input-group input {
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.woba-input-group input:focus {
    border-color: #4299e1;
    outline: none;
    box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.2);
}

.woba-button-container {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.woba-calculate-btn, 
.woba-reset-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.woba-calculate-btn {
    background-color: #4299e1;
    color: white;
}

.woba-calculate-btn:hover {
    background-color: #3182ce;
}

.woba-reset-btn {
    background-color: #e2e8f0;
    color: #4a5568;
}

.woba-reset-btn:hover {
    background-color: #cbd5e0;
}

.woba-result-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.woba-result-value {
    font-size: 3rem;
    font-weight: 700;
    color: #2d3748;
    margin: 10px 0;
}

.woba-rating-container {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.woba-rating-container span {
    font-weight: 600;
    color: #4299e1;
}

.woba-comparison-container {
    width: 100%;
    max-width: 800px;
    margin-top: 10px;
}

.woba-meter {
    height: 20px;
    background-color: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.woba-meter-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff6b6b 0%, #feca57 33%, #1dd1a1 66%, #5f27cd 100%);
    transition: width 0.8s ease;
}

.woba-meter-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 0.8rem;
    color: #4a5568;
}

.woba-info-container {
    line-height: 1.6;
}

.woba-info-container p {
    margin-bottom: 15px;
}

.woba-info-container h3 {
    font-size: 1.2rem;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #2d3748;
}

.woba-rating-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    display: table;
}

.woba-rating-row {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
}

.woba-rating-row:last-child {
    border-bottom: none;
}

.woba-rating-cell {
    padding: 10px;
    flex: 1;
    text-align: center;
}

.woba-rating-cell:first-child {
    font-weight: 600;
    text-align: right;
    padding-right: 20px;
}

.woba-rating-cell:last-child {
    text-align: left;
    padding-left: 20px;
}

.woba-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    color: #718096;
}

/* 다크 모드 스타일 */
.woba-calculator.dark-mode {
    background-color: #1a202c;
    color: #e2e8f0;
}

.woba-calculator.dark-mode .woba-header h1 {
    color: #e2e8f0;
}

.woba-calculator.dark-mode .woba-description {
    color: #a0aec0;
}

.woba-calculator.dark-mode .theme-icon {
    color: #e2e8f0;
}

.woba-calculator.dark-mode .woba-input-section,
.woba-calculator.dark-mode .woba-result-section,
.woba-calculator.dark-mode .woba-info-section {
    background-color: #2d3748;
}

.woba-calculator.dark-mode .woba-input-section h2,
.woba-calculator.dark-mode .woba-result-section h2,
.woba-calculator.dark-mode .woba-info-section h2 {
    color: #e2e8f0;
}

.woba-calculator.dark-mode .woba-input-group label {
    color: #a0aec0;
}

.woba-calculator.dark-mode .woba-input-group input {
    background-color: #4a5568;
    border-color: #4a5568;
    color: #e2e8f0;
}

.woba-calculator.dark-mode .woba-input-group input:focus {
    border-color: #63b3ed;
    box-shadow: 0 0 0 2px rgba(99, 179, 237, 0.2);
}

.woba-calculator.dark-mode .woba-reset-btn {
    background-color: #4a5568;
    color: #e2e8f0;
}

.woba-calculator.dark-mode .woba-reset-btn:hover {
    background-color: #718096;
}

.woba-calculator.dark-mode .woba-result-value {
    color: #e2e8f0;
}

.woba-calculator.dark-mode .woba-meter {
    background-color: #4a5568;
}

.woba-calculator.dark-mode .woba-meter-labels {
    color: #a0aec0;
}

.woba-calculator.dark-mode .woba-rating-row {
    border-bottom-color: #4a5568;
}

.woba-calculator.dark-mode .woba-footer {
    color: #a0aec0;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .woba-calculator {
        padding: 10px;
    }
    
    .woba-header h1 {
        font-size: 1.8rem;
    }
    
    .woba-form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .woba-result-value {
        font-size: 2.5rem;
    }
    
    .woba-rating-table {
        font-size: 0.9rem;
    }
    
    .woba-rating-cell {
        padding: 8px 5px;
    }
    
    .woba-button-container {
        flex-direction: column;
    }
    
    .woba-calculate-btn, .woba-reset-btn {
        width: 100%;
    }
    
    .woba-meter-labels {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .woba-calculator {
        padding: 8px;
    }
    
    .woba-input-section, 
    .woba-result-section, 
    .woba-info-section {
        padding: 15px;
    }
    
    .woba-header h1 {
        font-size: 1.5rem;
    }
    
    .woba-description {
        font-size: 0.9rem;
    }
    
    .woba-result-value {
        font-size: 2rem;
    }
    
    .woba-rating-container {
        font-size: 1rem;
    }
}