body {
    font-family: Arial, sans-serif;
    background-color: #f0f8ff;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
}

.navbar {
    list-style-type: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
    background-color: #333;
    display: flex;
    justify-content: space-around;
}

.navbar li {
    display: inline;
}

.navbar li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
}

.navbar li a:hover {
    background-color: #111;
}

.login-container, .form-container {
    width: 300px;
    margin: 100px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1, h2 {
    color: #007bff;
    text-align: center;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    border: 1px solid #ddd;
    padding: 8px;
}

.table th {
    background-color: #007bff;
    color: rgb(7, 0, 0);
}

.motif-cell {
    max-height: 100px;
    overflow-y: auto;
    width: 150px;
}

.btn {
    display: inline-block;
    padding: 10px 15px;
    margin: 5px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    outline: none;
    border-radius: 5px;
    box-shadow: 0 3px #999;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-primary:active {
    background-color: #0056b3;
    box-shadow: 0 3px #666;
    transform: translateY(4px);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.btn-secondary:active {
    background-color: #545b62;
    box-shadow: 0 3px #666;
    transform: translateY(4px);
}
    
.btn-success {
    background-color: #28a745;
    color: white;
    border: none;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-success:active {
    background-color: #218838;
    box-shadow: 0 3px #666;
    transform: translateY(4px);
}

.btn-warning {
    background-color: #ffc107;
    color: white;
    border: none;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-warning:active {
    background-color: #e0a800;
    box-shadow: 0 3px #666;
    transform: translateY(4px);
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-danger:active {
    background-color: #c82333;
    box-shadow: 0 3px #666;
    transform: translateY(4px);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

.btn-disabled {
    pointer-events: none;
    opacity: 0.6;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 160px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Position the tooltip above the button */
    left: 50%;
    margin-left: -80px; /* Use half of the width (160/2 = 80), to center the tooltip */
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.text-center {
    text-align: center;
}

.form-actions {
    margin-top: 20px;
    text-align: center;
}


/* Boutons de navigation */
.nav-buttons button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-buttons button:hover {
    background-color: #0056b3;
}

/* Sections cachées par défaut */
.section {
    display: none;
}

/* Table et boutons */
.table {
    width: 60%;
    margin: 0 auto;
    margin-top: 20px;
    border-collapse: collapse;
    text-align: left;
}

.table th, .table td {
    border: 1px solid #ccc;
    padding: 10px;
}

.table th {
    background-color: #f4f4f4;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-buttons input[type="text"] {
    flex: 2;
    padding: 5px;
    height: 38px; /* Adjust height to match buttons */
}

.action-buttons .btn {
    flex: 1;
    padding: 5px 10px;
    margin: 0;
    height: 38px; /* Ensure buttons have the same height as input */
}

.action-buttons .btn-sm {
    flex: 1;
    padding: 5px 10px;
    margin: 0;
    height: 38px; /* Ensure buttons have the same height as input */
}

.add-bar {
    margin: 20px auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.add-bar input {
    padding: 5px;
    flex: 2;
    height: 38px; /* Adjust height to match buttons */
}

.add-bar button {
    flex: 1;
    height: 38px; /* Ensure buttons have the same height as input */
}



.motif-cell {
    max-width: 200px;
    height: 100px;
    overflow: auto;
    word-wrap: break-word;
    white-space: normal;
    padding: 8px;
    font-size: 16px; /* Augmentez cette valeur si le texte est trop petit */
}

.table th, .table td {
    vertical-align: top;
    padding: 10px;
    font-size: 16px;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    border: 1px solid #ddd;
}

.table th {
    background-color: #007bff;
    color: white;
}

.table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.table tr:hover {
    background-color: #ddd;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
}
