:root {
    --pale-blue: #ADD8E6;
    --gray-standard: #D3D3D3;
    --white: #ffffff;
    --black: #000000;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 0;
    padding-left: 5px;
}

.tab-btn {
    padding: 10px 20px;
    cursor: pointer;
    background-color: var(--gray-standard);
    border: 1px solid var(--pale-blue);
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    font-weight: normal;
    color: var(--black);
    transition: background-color 0.3s;
}

.tab-btn.active {
    background-color: var(--pale-blue);
    font-weight: bold;
}

.tab-content {
    display: none;
    background-color: var(--white);
    padding: 20px;
    border: 1px solid var(--pale-blue);
    border-radius: 0 5px 5px 5px;
}

.tab-content.active {
    display: block;
}

.card {
    background: white;
    padding: 15px;
    margin-bottom: 20px;
}

.input-section {
    display: flex;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
    max-height: 250px; /* Env 10 lignes */
    overflow-y: auto;
}

#tab-calc .table-container {
    max-height: 180px; /* Env 6 lignes */
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
    position: sticky;
    top: 0;
}

.summary {
    margin: 20px 0;
}

.summary p {
    margin: 5px 0;
}

.summary strong {
    display: inline-block;
    width: 210px;
}

.graphs-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.graph-wrapper {
    flex: 1;
    min-width: 400px;
    height: 300px;
}

/* Configuration Tab Styles */
.config-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.config-btns {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.config-btns button {
    padding: 8px 15px;
    cursor: pointer;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.config-btns button:hover {
    background-color: #e0e0e0;
}

.selected-row {
    background-color: #e3f2fd;
}

/* Help Tab Styles */
.help-content h3 {
    margin-top: 0;
    border-bottom: 1px solid var(--pale-blue);
    padding-bottom: 5px;
}

.help-content h4 {
    margin-bottom: 5px;
}

.help-content p, .help-content li {
    line-height: 1.5;
    margin-bottom: 10px;
}
