/* Styles généraux */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1900px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);

}

h1 {
    color: #2c3e50;
    margin-top: 0;
    text-align: center;
}

/* Style pour la webcam */
.webcam-container {
    position: relative;
    margin-bottom: 40px; /* Augmenter la marge en bas */
    width: 100%;
    height: auto;
    float: none;
    clear: both;
    display: block;
    z-index: 1; /* S'assurer que la webcam n'est pas au-dessus des contrôles */
    overflow: visible;
}

.webcam-container img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Panneau de contrôle */
.control-panel {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 100;
}

.controls {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    z-index: 100;
    position: relative;
}

.status-panel {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #ddd;
}

/* Boutons */
.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    background-color: #3498db;
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

.btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.btn-success {
    background-color: #2ecc71;
}

.btn-success:hover {
    background-color: #27ae60;
}

.btn-danger {
    background-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* Notifications */
#notifications {
    margin-bottom: 15px;
    display: none;
}

.success, .error {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.hidden {
    display: none !important;
}

.zoom-level {
    font-size: 16px;
    margin-bottom: 10px;
}

.timer {
    font-weight: bold;
    color: #e74c3c;
    font-size: 16px;
    margin-top: 5px;
}
