/* Main container */
.chemical-calculator-container {
    font-family: 'Arial', sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* Tabs */
.chem-calc-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.chem-calc-tab {
    padding: 10px 20px;
    background-color: #f1f1f1;
    border: none;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    margin-right: 5px;
    font-weight: bold;
    color: #555;
    transition: all 0.3s ease;
}

.chem-calc-tab:hover {
    background-color: #e1e1e1;
}

.chem-calc-tab.active {
    background-color: #4CAF50;
    color: white;
}

/* Tab content */
.chem-calc-tab-content {
    display: none;
    padding: 20px;
    background-color: white;
    border-radius: 0 5px 5px 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.chem-calc-tab-content.active {
    display: block;
}

/* Form elements */
.chem-calc-form-group {
    margin-bottom: 15px;
}

.chem-calc-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.chem-calc-form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.chem-calc-form-group input:focus {
    border-color: #4CAF50;
    outline: none;
}

/* Buttons */
.chem-calc-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.chem-calc-button:hover {
    background-color: #45a049;
}

/* Results */
.chem-calc-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    font-size: 16px;
}

.chem-calc-success {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.chem-calc-error {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

.chem-calc-loading {
    background-color: #d9edf7;
    color: #31708f;
    border: 1px solid #bce8f1;
}

/* Responsive design */
@media (max-width: 768px) {
    .chemical-calculator-container {
        padding: 15px;
    }
    
    .chem-calc-tabs {
        flex-wrap: wrap;
    }
    
    .chem-calc-tab {
        flex: 1 0 auto;
        margin-bottom: 5px;
    }
    
    .chem-calc-tab-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .chemical-calculator-container {
        padding: 10px;
    }
    
    .chem-calc-form-group input {
        padding: 8px;
    }
    
    .chem-calc-button {
        padding: 10px 15px;
    }
}