/**
 * Hardy-Weinberg Calculator Styles
 * These styles are isolated to prevent conflicts with WordPress themes
 */

.hardy-weinberg-calculator {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.hwc-container {
    padding: 2rem;
}

.hwc-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    color: #333;
}

.hwc-input-group {
    margin-bottom: 1.5rem;
}

.hwc-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.hwc-input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #f9f9f9;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.hwc-input-group input:focus {
    outline: none;
    border-color: #666;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.hwc-buttons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.hwc-button {
    flex: 1;
    margin: 0 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    background-color: #000000;
    color: #ffffff;
}

.hwc-button:first-child {
    margin-left: 0;
}

.hwc-button:last-child {
    margin-right: 0;
}

.hwc-button:hover {
    background-color: #333;
    transform: translateY(-1px);
}

.hwc-button:active {
    transform: translateY(1px);
}

.hwc-results {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 4px;
    background-color: #f5f5f5;
}

.hwc-results h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.hwc-result-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.hwc-result-item:last-child {
    border-bottom: none;
}

.hwc-info {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.hwc-info h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.hwc-info p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.hwc-info ul {
    margin-left: 1.5rem;
    padding-left: 0;
}

.hwc-info li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Responsive styles */
@media (max-width: 768px) {
    .hwc-container {
        padding: 1.5rem;
    }
    
    .hwc-title {
        font-size: 1.5rem;
    }
    
    .hwc-buttons {
        flex-direction: column;
    }
    
    .hwc-button {
        margin: 0.5rem 0;
    }
    
    .hwc-result-item {
        flex-direction: column;
    }
    
    .hwc-result-item span:last-child {
        font-weight: 600;
        margin-top: 0.25rem;
    }
}

@media (max-width: 480px) {
    .hwc-container {
        padding: 1rem;
    }
    
    .hwc-title {
        font-size: 1.3rem;
    }
} 