/**
 * Caffeine Half-Life Calculator Styles
 * Uses specified color scheme:
 * - Call to actions: #000000 (black)
 * - Background: #ffffff (white)
 */

/* Reset and base styles to prevent theme conflicts */
.chc-calculator-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.chc-calculator-wrapper * {
    box-sizing: border-box;
}

.chc-calculator-wrapper h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
}

.chc-calculator-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.chc-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chc-form-group label {
    font-weight: 600;
    font-size: 16px;
}

.chc-form-group input,
.chc-form-group select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: #f9f9f9;
    transition: border-color 0.2s;
}

.chc-form-group input:focus,
.chc-form-group select:focus {
    outline: none;
    border-color: #666;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.chc-button {
    background-color: #000000; /* Call to action color as specified */
    color: #ffffff;
    border: none;
    padding: 14px 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.2s, transform 0.1s;
    align-self: flex-start;
    margin-top: 10px;
}

.chc-button:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.chc-button:active {
    transform: translateY(0);
}

.chc-results {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin-top: 30px;
}

.chc-results h3 {
    margin-top: 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.chc-result-content {
    margin-bottom: 20px;
    line-height: 1.6;
}

.chc-graph-container {
    width: 100%;
    height: 300px;
    margin-top: 20px;
}

/* Responsive styles */
@media screen and (max-width: 767px) {
    .chc-calculator-wrapper {
        padding: 15px;
    }
    
    .chc-form-group input,
    .chc-form-group select {
        padding: 10px;
    }
    
    .chc-button {
        width: 100%;
        padding: 12px;
    }
} 