/* Main container */
.statistics-calculator-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.statistics-calculator-container h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
}

.statistics-calculator-container h2 i {
    margin-right: 10px;
    color: #3498db;
}

/* Tabs */
.calculator-tabs {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    padding: 10px 15px;
    background-color: #f1f1f1;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    font-size: 16px;
    border-radius: 5px 5px 0 0;
    margin-right: 5px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.tab-btn i {
    margin-right: 8px;
}

.tab-btn:hover {
    background-color: #ddd;
}

.tab-btn.active {
    background-color: #3498db;
    color: white;
}

/* Tab content */
.tab-content {
    display: none;
    padding: 20px;
    background-color: white;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
}

.tab-content h3 i {
    margin-right: 10px;
}

/* Basic stats icon */
#basic h3 i {
    color: #3498db;
}

/* Advanced stats icon */
#advanced h3 i {
    color: #e74c3c;
}

/* Probability icon */
#probability h3 i {
    color: #9b59b6;
}

/* Forms */
.statistics-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #34495e;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #3498db;
    outline: none;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input {
    margin-right: 8px;
}

/* Buttons */
.calculate-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calculate-btn i {
    margin-right: 8px;
}

.calculate-btn:hover {
    background-color: #2980b9;
}

/* Results */
.result-container {
    margin-top: 20px;
    padding: 15px;
    background-color: #e8f4fc;
    border-left: 4px solid #3498db;
    border-radius: 4px;
}

.result-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.result-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.result-section h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.result-section h4 i {
    margin-right: 8px;
}

.formula-explanation {
    font-style: italic;
    color: #7f8c8d;
    font-size: 0.9em;
    margin-top: 5px;
}

.zscore-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.zscore-table th, .zscore-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.zscore-table th {
    background-color: #f2f2f2;
}

/* Responsive */
@media (max-width: 600px) {
    .statistics-calculator-container {
        padding: 15px;
    }
    
    .calculator-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 5px;
        border-radius: 5px;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
}