:root {
  --sidebar-width: 25%;
}

html, body {
 height: 100%;
 margin: 0;
 padding: 0;
 }


div.flex-container {
    display: flex;
    height: 100vh; 
}
div.full_info{
    width: calc(100% - var(--sidebar-width));
    /* flex: 3; */
	overflow-y: auto; 
}
div.info_droite{
    width: var(--sidebar-width);
    /* flex: 1; */
	overflow-y: auto;
    max-height:100%;
}

div.info_droite_divs{
	border-radius: 20px 0px 20px 0px;
	background:linear-gradient(#e9ecef, #dee2e6);
	color:#343a40;
	margin:10px;
	padding:20px;
	box-Shadow  : 3px 3px 0.1em 0 #adb5bd;
	
}

div.playlist {
    max-height:50vh;
    overflow-y:auto;
}


div.lecteur{
	justify-content: center;
	display: flex;
}


div.base{
	padding: 10px;
	
	border-radius: 10px 0px 10px 0px;
	margin: 5px 20px;

	border : 0px solid white;
	transition: all 0.2s ease-out;
	color:#6C757D;
	background:linear-gradient(#F8F9FA, #e9ecef);
	
}
.index-position {
    box-shadow: 10px 10px 0.5em 0 #adb5bd !important;
}
.current-index-position {
    background: #d1ccbe;
}

div.selected-row {
    box-shadow: 8px 8px 0.5em 0 #adb5bd !important;
    margin: 20px 10px !important;
    background: #FFBE0B !important;
}

div.row-btn-player {
    display: flex;
    width: 100%;
    margin-top: 0.05em;
    margin-bottom: 1em;
    gap: 0.5em;
}

div.row-btn-player > .btn-player-group {
    display: flex;
    width: 100%;
    gap: 0.5em;
    flex: 1;
    padding: .8em; /* rend le bouton confortable au toucher */ 
    background-color: transparent;
    border: 1px solid grey;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    user-select: none; /* empêche la sélection du texte au clic */ 
    transition: background-color 0.2s ease;
}

span.btn-player {
  font-size: 2rem;
  background: #E9E9E9;
  border: none;
  border-radius: 10px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none; /* empêche la sélection du texte au clic */ 
  touch-action: manipulation;
}

.btn-player-start {
    flex: 2;
}

.btn-player-pause {
    flex: 1;
}

div.row-btn-player > .btn-player-group > .btn-player:hover {
    /* background-color: #e04e06; */
    background-color: #FB5607;
    background: #666;
}

div.row-btn-player > .btn-player-group > .btn-player:active {
  background: #FB5607;
}

.didascalie-genre {
	background-color:#FF006E;
}
.Sonorisation-genre {
	background-color:#FB5607;
}
.Dialogue-genre {
	background-color:#8338EC;
}
.Lumières-genre {
	background-color:#3A86FF;
}
.Lumiere-genre{
	background-color:#3A86FF;
}


.Dialogue-texte{
	color: black;
}


span.genre{
	float:right;
	padding: 5px;
	width: 150px;
	display: flex; 
    justify-content: center;
	color:white;
	border-radius: 4px ;
}

span.Acteur{
	float:left;
	display: flex;
	width: 100px;
	padding: 5px;
	padding-right :12px;
	justify-content: center;
	font-weight: bold;
	color: black;
	
}
span.Acteur:empty{
	width: 0px;
}
span.texte{
	padding: 10px;
	margin-top: 10px;
}

span{
	display: inline;
	vertical-align: top;
}


.info_scene{
	z-index: 5;
	position:relative;
	background:white;

}

.info_acte{
	z-index: 6;
	position:relative;
	background: white;
}

.inner_text_didascalie{
	color : #8338EC;
	font-style: italic;
}


.affiche_acte{
	border-top: 5px solid white;
	padding:10px;
	background-color:#FFBE0B;
	font-weight: bold;
	margin: 0px 10px;

}
.affiche_scene{
	border-top: 5px solid white;
	padding:10px;
	background-color:#FFBE0B;
	font-weight: bold;
	margin: 0px 15px;

}

.info_centre{
		width:500px;
		text-align: center;
		position: absolute;
		position: fixed;
		top:50%;
		left:50%;
		z-index: 101;
		transform: translate(-50%, -50%);
}	

.info_suite{
	width:500px;
	text-align: center;
	transform: translate(-50%);
    left: 50%;
    position: relative;
}


a {
    text-decoration: none;
	cursor: pointer;
}


.titre{
	margin:20px;
	font-weight: bold;
}

.surimpression{
	position: fixed;
	z-index: 100;
	top: 50%;
	width:500px;
}

.background {
    position: fixed; /* Fixe l'élément sur toute la page */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85); /* Noir translucide */
    z-index: 100; /* Place l'arrière-plan derrière le contenu */
	visibility:hidden;
}

#menu_technique {
	visibility:hidden;
}

#menu_oneshot {
	visibility:hidden;
}


.bandeau_haut{
    width: calc(100vw - var(--sidebar-width));
	text-align: center;
	margin:15px;
	font-weight: bold;
	color: black;
	font-size: 30px;
}



#slider-container {
    display: flex;
    justify-content: center; 
	gap:10px;
}

.slider-box {
	display: flex;
    flex-direction: column;
    width: 25px;
    align-content: stretch;
    justify-content: flex-end;
    align-items: center;
}

.vertical-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: center;
	margin:6px;
}

input[type="range"] {
    appearance: slider-vertical;
    height: 150px;
	width: 20px;
}

#slider-output {
    margin-top: 20px;
    padding: 10px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.group_container {
	display: flex;;
	border: 1px solid black;
	
}

.nombre_canal{
	margin: 6px;
    border: 1px solid black;
	padding:1px;
}

.input_number{
	width: 50px;
}

.bouton-edit{
	margin-inline: 10px;
	display: none;
}


.scene-repliee {
    margin: 2px 0;
    transition: all 0.3s ease;
}

.scene-repliee .info_scene {
    border-bottom: 1px solid #dee2e6;
}

.scene-repliee .affiche_scene {
    background-color: #FFC107 !important; /* Couleur légèrement différente pour indiquer l'état replié */
    padding: 8px 10px;
    font-size: 14px;
}

.scene-repliee .affiche_scene:hover {
    background-color: #FFD43B !important;
    transform: scale(1.02);
    transition: all 0.2s ease;
}

/* Animation pour le repli/dépli */
.scene {
    transition: all 0.3s ease;
}

/* Style pour les actes quand les scènes sont repliées */
.acte-scenes-repliees .affiche_acte {
    background-color: #28A745 !important;
    color: white;
	
}

.acte-scenes-repliees .affiche_acte:hover {
    background-color: #34CE57 !important;
    cursor: pointer;
}

/* Indicateur visuel pour les éléments cliquables */
.affiche_acte[data-repliable="true"]:hover,
.affiche_scene[data-repliable="true"]:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}


.Acte{
	Width:100%;
}


/* Styles pour le menu uniforme */
.info_droite h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #343a40;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 5px;
}

.bouton {
    display: block;
    width: 100%;
    margin: 5px 0;
    padding: 8px;
    background: linear-gradient(#f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
}

.bouton:hover {
    background: linear-gradient(#e9ecef, #dee2e6);
    transform: translateY(-1px);
}

.raccourcis {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.raccourcis span {
    font-size: 11px;
    color: #6c757d;
}

.raccourcis kbd {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    padding: 2px 4px;
    font-size: 10px;
}

.lecteur {
    margin: 8px 0;
}

.lecteur label {
    font-size: 11px;
    color: #6c757d;
    display: block;
    margin-bottom: 3px;
}

/* Ajoutez ces règles à la fin de votre CSS existant */

.raccourcis-text {
    font-size: 11px;
    color: #6c757d;
    line-height: 1.4;
}

.lecteur-container {
    margin: 8px 0;
    background-color: #dfdfdf;
}
.lecteur1 {
    background-color: #FFBE0B;
}
.lecteur2 {
    background-color: #FB5607;
}

.lecteur-label {
    font-size: 11px;
    color: #6c757d;
    display: block;
    margin-bottom: 3px;
}

.lecteur-audio {
    width: 100%;
}

.js-sticky-widget.is-stuck {
    position: fixed;
    top: 0;
    width: calc(100vw - var(--sidebar-width));
    z-index: 10;
}

.info_scene.is-stuck {
    position: fixed;
    top: 40px; /* Sous l'acte */
    width: calc(100vw - var(--sidebar-width));
    z-index: 9;
}

/* Styles for lumieres_editor.php */

.editeur-container {
    display: block;
    padding: 5px;
    max-width: 100%;
    font-family: Arial, sans-serif;
}

.editeur-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 10px;
}

.file-browser-container, .file-preview-container {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px;
}

.file-browser-header {
    padding-bottom: 10px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.path-display {
    font-family: monospace;
    font-size: 14px;
    color: #495057;
    background: #e9ecef;
    padding: 5px 8px;
    border-radius: 4px;
}

#file-browser {
    max-height: 400px;
    overflow-y: auto;
}

.file-item {
    display: block;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    color: #212529;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-item:hover {
    background-color: #e9ecef;
}

.file-item.selected {
    background-color: #007bff;
    color: white;
}

.header-principal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    padding: 5px;
    background: #f8f9fa;
    border-radius: 8px;
}

.header-principal h2 {
    margin: 0;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.groupes-container {
    margin-bottom: 5px;
}

.message-chargement {
    color: #6c757d;
    text-align: center;
    padding: 5px;
}

.groupe-dmx-complet {
    margin-bottom: 5px;
    padding: 5px;
    border: 2px solid #007bff;
    border-radius: 8px;
    background: #f8f9fa;
}

.groupe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

.groupe-header h4 {
    margin: 0;
    color: #007bff;
    font-size: 16px;
}

.canaux-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
    gap: 5px;
}

.canal-dmx-compact {
    padding: 5px 5px 0px 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    text-align: center;
    position: relative;
}

.canal-dmx-compact-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.canal-numero {
    font-weight: bold;
    font-size: 14px;
}

.canal-nom {
    font-size: 12px;
    color: #666;
}

.btn-edit-canal {
    background: #6c757d;
    color: white;
    border: none;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    font-size: 8px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-vertical {
    width: 100%;
    height: 90px;
    margin: 5px 0;
    cursor: pointer;
}

.canal-value {
    font-weight: bold;
    font-size: 18px;
    color: #007bff;
}

.url-section {
    margin-top: 5px;
    padding: 20px;
    background: #e7f3ff;
    border-radius: 8px;
}

.url-section h3 {
    margin-top: 0;
}

.parametres-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.url-generee-group {
    margin-top: 5px;
}

.url-display {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    font-family: monospace;
    word-break: break-all;
    max-height: 100px;
    overflow-y: auto;
    width: 100%;
    box-sizing: border-box;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
    margin-bottom: 10px;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.file-item.current {
    border: 2px solid #28a745; /* Green border */
    font-weight: bold;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}

.btn-add {
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 0;
}

.boutons-actions {
    margin-top: 5px;
    text-align: center;
}

.info-ligne {
    text-align: right;
    margin-right: 20px;
}

.info-ligne-numero {
    color: #007bff;
    font-weight: bold;
}

.info-ligne-mode {
    color: #6c757d;
    font-size: small;
}

/* Styles for login_form.php */

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #343a40;
    font-size: 28px;
    margin-bottom: 10px;
}

.login-button {
    width: 100%;
    padding: 12px;
    background: #FFBE0B;
    border: none;
    border-radius: 5px;
    color: #343a40;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 190, 11, 0.3);
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.info-message {
    text-align: center;
    margin-top: 20px;
    color: #6c757d;
    font-size: 14px;
}

/* Styles for admin/users.php */

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: bold;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.users-table td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
}

.users-table tr:hover {
    background: #f8f9fa;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.badge-active {
    background: #d4edda;
    color: #155724;
}

.badge-inactive {
    background: #f8d7da;
    color: #721c24;
}

.badge-oauth {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-local {
    background: #fff3cd;
    color: #856404;
}

.alert {
    padding: 12px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

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

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

.form-inline {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
}