/* Connexion */
.connection-background {
	background-color: #267aa7a8 !important;
}

.page {
	margin: 5vh 0vh;
}

.the-card {
	padding: 5vh;
}

.connection {
	max-height: 83vh;
}

#logo {
	width: 25vh;
}

.shadow {
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Réinitialisation du mot de passe */
.well {
	min-height: 20px;
	padding: 19px;
	margin-bottom: 20px;
	margin-top: 20px;
	background-color: #f5f5f5;
	border: 1px solid #e3e3e3;
	border-radius: 4px;
	-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05);
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05);
}

.block {
	/* Pour que le champ et le bouton soient sur la même ligne !!! */
	display: flex;
}

#button {
	cursor: pointer;
	width: 31px;
	height: 31px;
	/* Pour que le bouton soit collé au champs*/
	margin-left: -2vw;
	border: 1px solid gray;
	background-size: cover;
	background-color: white;
	border-radius: .2rem;
}

.open {
	background-image: url('https://img.icons8.com/windows/32/000000/visible.png');
	background-repeat: no-repeat;
	background-position: center;
}

.closed {
	background-image: url('https://img.icons8.com/windows/32/000000/closed-eye.png');
	background-repeat: no-repeat;
	background-position: center;
}

.long-text {
	width: 30vw;
}

/* Drag and drop files */
#wrapper, .wrapper {
	width: 100%;
	margin: 40px 0;
}

#fileDropBox, .fileDropBox {
	width: 100%;
	border: 2px dashed gray;
	line-height: 10em;
	text-align: center;
	color: black;
	border-radius: 7px;
	cursor: move;
}

.hover {
	border: 2px dashed blueviolet !important;
}

#dropFileName, .drop-file-name {
	color: blueviolet;
	font-weight: bold;
}

/* FORMULAIRES */

label {
	font-weight: 500;
}

.thumbnails {
	display: flex;
	flex-wrap: wrap;
	justify-content: start;
	align-items: flex-start;
	gap: 3vw;
}

.thumbnail {
	margin: 10px;
	padding: 10px;
	border: 1.2px solid #dee2e6 !important;
	height: auto;
}

.thumbnail img {
	max-width: 100%;
	height: auto;
}

.thumbnail .actions {
	display: flex;
	justify-content: space-between;
	margin-top: 10px;
}

.thumbnail .actions a {
	text-decoration: none;
	color: #333;
	padding: 5px;
}

.thumbnail .filename {
	width: 100%;
	text-align: center;
	padding: 5px;
}

/* VARIABLES COULEURS PAR DÉFAUT */
:root {
	--defaultBlue: #267aa7;
	--defaultBoxShadow: rgba(5, 97, 122, 0.38);
}

/* ----- COULEURS boutons | Pour appliquer les couleurs personnalisées : mettre la variable $defaultColor à false dans config.php */
/* --- Couleur du bouton par défaut */
.btn-default {
	background-color: var(--defaultBlue) !important;
	border-color: var(--defaultBlue) !important;
	color: white !important;
}

/* Focus (au clic) */
.btn-default:focus {
	box-shadow: 0 0 0 0.2rem var(--defaultBoxShadow) !important;
}

/* Couleur de l'icône du bouton */
.btn, btn:hover {
	color: white;
}

/* Couleur du texte des boutons <a> */
a:hover.btn {
	color: white;
}

/* --- Boutons d'ajout et d'édition */
.btn-blue {
	background-color: #007bff;
	border-color: #007bff;
}

.btn-blue:focus {
	box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .5);
}

/* ---- TAILLE boutons */
.small-button {
	width: 41px;
}

.medium-button {
	width: 44px;
}

/* ----- ICÔNES table_main */
/* --- Boutons de recherche */
.btn-vert-do {
	background-color: #17a2b8;
	border-color: #17a2b8;
}

.btn-vert-do:focus {
	box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, .5);
}

/* Bouton de réinitialisation de la recherche */
.btn-jaune {
	background-color: #ffc107;
	border-color: #ffc107;
}

.btn-jaune:focus {
	box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, .5);
}

/* Bouton de copie d'une ligne */
.btn-gris {
	background-color: #6c757d;
	border-color: #6c757d;
}

.btn-gris:focus {
	box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, .5);
}

/* Bouton de copie du tableau */
.btn-violet {
	background-color: #6820c5;
}

.btn-violet:focus {
	box-shadow: 0 0 0 0.2rem rgba(78, 8, 190, 0.541);
}

/* --- Bouton view */
.btn-orange, .btn-orange:hover {
	background-color: #f3a229;
}

.btn-orange:focus {
	box-shadow: 0 0 0 0.2rem rgba(249, 182, 89, 0.428);
}

/* ----- ICÔNES de gestion des fichiers */
/* Icône par défaut */
.icon-default {
	color: var(--defaultBlue) !important;
}

/* Toutes les icônes */
.icon {
	font-weight: 400;
	background-color: transparent;
}

.icon:focus {
	box-shadow: none;
}

/* Icône bleue */
.icon-blue {
	color: #007bff;
}

/* ----- COULEURS texte | Pour appliquer les couleurs personnalisées : mettre la variable $defaultColor à false dans config.php */
.text-default {
	color: var(--defaultBlue) !important;
}

/* --- Texte affiché après une recherche sur table_main */
.field {
	color: #17a2b7;
}

/* --- Texte affiché sur table_add : création d'un enregistrement après une recherche */
.search {
	color: #007bff;
}

/* ----- COULEURS des liens */
/* --- Par défaut*/
.link-default {
	color: var(--defaultBlue) !important;
}

.link-default:hover {
	color: #008fbf !important;
}

/* ----- COULEURS numéros de pages */
/* --- Par défaut */
/* Page non sélectionnée */
.page-link {
	color: var(--defaultBlue);
}

/* Page sélectionnée */
.page-item.active .page-default {
	background-color: var(--defaultBlue) !important;
	border-color: var(--defaultBlue) !important;
}

.page-link:hover {
	color: #0186b2;
}

.page-link:focus {
	box-shadow: 0 0 0 0.2rem var(--defaultBoxShadow) !important;
}

/* Gestion de l'affichage de certains éléments (view de table_edit.php) */
.hide {
	display: none !important;
}

/* MESSAGERIE */
#body-chat {
    background-color: #f0f0f0;
}

#chat-window {
	overflow: hidden;
	overflow-y: scroll;
}

#chat2 .form-control {
	border-color: transparent;
}

#chat2 .form-control:focus {
	border-color: transparent;
	box-shadow: inset 0px 0px 0px 1px transparent;
}

.divider:after, .divider:before {
	content: "";
	flex: 1;
	height: 1px;
	background: #eee;
}

.chat-window {
	overflow: hidden;
	overflow-y: scroll;
}

.cardChat .form-control {
	border-color: transparent;
}

.cardChat .form-control:focus {
	border-color: transparent;
	box-shadow: inset 0px 0px 0px 1px transparent;
}

.sendIcon:hover {
	cursor: pointer;
}

.msg {
	white-space: pre-line;
}

.delete-icon:hover {
	cursor: pointer;
}

.delete-icon {
    display: none;
}

.deleted-message {
	background-color: #267aa7b0 !important;
	border-color: #267aa7b0 !important;
}

.same-date-msg-self-user {
	margin-right: 45px;
	/* margin-top: -8px; */
}

.same-date-msg-other-user {
	margin-left: 45px;
	/* margin-top: -3px; */
}

.rounded-image {
	object-fit: cover;
    border-radius: 50%;
}

.accordion-img {
	width: 45px;
	height: 100%;
}

.chat-img {
	width: 45px;
}

.other-user-img {
	height: 100%;
}

.other-user-msg {
	background-color: white;
}

.send-img {
	width: 40px;
	height: 100%;
}

.write-message {
	border-radius: 25px !important;
}

.no-border {
	border-color: transparent !important;
	background-color: transparent !important;
}

.div-users {
	width: 95%;
}