body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: url('Images/fc55b6857bb9eacfcdddfcbcb9316c6b66b7302346f0e93da3c1e002a35a03fc.webp');
    background-size: cover; 
    background-position: center;
    background-attachment: fixed; 
    position: relative;
    height: 95vh;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

h1 {
    font-size: 300%;
    text-align: center;
    color: #fff;
    margin-top: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h3 {
    text-align: center;
    color: #333;
    margin-top: 20px;
}

a {
    font-weight:bold;
    text-decoration: none;
    color: #0077cc;
}

a:hover {
    text-decoration: underline;
}

table {
    width: 90%;
    margin: 30px auto;
    border-collapse: separate;
    border-spacing: 0;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

table th, table td {
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
    font-size: 16px;
    color: #333;
}

table th {
    background-color: #2c3e50;
    color: white;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover {
    background-color: #f5f8fa;
    transition: background-color 0.3s;
}

.cellule-img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.cellule-img:hover {
    transform: scale(1.1);
}

form {
    width: 80%;
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="number"],
form input[type="date"],
form select,
form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form input[type="submit"],
form button {
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

form input[type="submit"]:hover,
form button:hover {
    background-color: #34495e;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

img#image_cellule {
    display: block;
    margin: 10px auto;
}

#avis_cellule {
    width: 80%;
    margin: 20px auto;
    padding: 20px;
    background-color: #fdfdfd;
    border: 1px solid #ccc;
    border-radius: 6px;
}

p {
    text-align: center;
    font-size: 16px;
}

.error {
    color: red;
    text-align: center;
}

.success {
    color: green;
    text-align: center;
}

a[href="logout.php"], 
a[href="backoff.html"], 
a[href="front.php"] {
    display: inline-block;
    margin: 10px auto;
    padding: 10px 16px;
    background-color: #e74c3c;
    color: white;
    border-radius: 4px;
    text-align: center;
}

a[href="logout.php"]:hover,
a[href="backoff.html"]:hover,
a[href="front.php"]:hover {
    background-color: #c0392b;
}

input[type="file"] {
    padding: 5px;
    background-color: #fafafa;
}

@media screen and (max-width: 768px) {
    form, table {
        width: 95%;
    }

    table th, table td {
        font-size: 14px;
        padding: 8px;
    }

    form input[type="submit"], form button {
        padding: 10px;
    }
}

#reservation_form {
    width: 80%;
    max-width: none;
    padding: 50;  
}

#description_cellule {
    font-size: 18px;      
    line-height: 1.6;    
    color: #333;         
    max-width: 800px;   
    margin: 20px auto;    
    padding: 10px;        
    background: #fff;     
    border-radius: 6px;    
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: left;      
}

.top-bar {
  position: relative;
  width: 100%;
  height: 60px; 
  background: transparent;
  margin-bottom: 20px;
}

.top-bar .btn-return,
.top-bar .btn-histo,
.top-bar .btn-logout {
  position: absolute;
  top: 15px;      
  padding: 8px 16px;
  background: #2c3e50;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
}

.top-bar .btn-return {
  left: 20px;     
}

.top-bar .btn-logout {
  position : absolute;
  right: 20px;   
}

.top-bar .btn-histo {
  position : absolute;
  right: 10%;   
  top:25px;
}

.top-bar .btn-return:hover,
.top-bar .btn-histo:hover,
.top-bar .btn-logout:hover {
  background: #34495e;
}

nav {
  text-align: center;
  margin: 30px 0;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 20px;
}

nav ul li a {
  display: inline-block;
  padding: 12px 24px;
  background-color: #2c3e50;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.1s;
}

nav ul li a:hover {
  background-color: #34495e;
  transform: translateY(-2px);
}

nav ul li a:active {
  background-color: #1f2a36;
  transform: translateY(0);
}

.dashboard-stats {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 800px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.dashboard-stats li {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  font-size: 18px;
  color: #333;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.dashboard-stats li:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.button-container {
    text-align: center;
    margin: 40px 0;
}

.btn-main {
    display: inline-block;
    background-color: #28a745;
    color: white;
    font-size: 24px;
    font-weight: bold;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.1s;
}

.btn-main:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.btn-main:active {
    background-color: #1e7e34;
    transform: translateY(0);
}

.main-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    color: #2a4d7d; 
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 40px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.main-title:hover {
    color: #1f2a36;
    transform: scale(1.05); 
    transition: color 0.3s ease, transform 0.3s ease;
}

.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50vh; 
}


.btn-sort {
    display: inline-block;
    background-color: #2c3e50;
    color: white;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin: 10px;
}

.sort-buttons {
    text-align: center;
    margin: 20px 0;
}


.sort-buttons .btn-sort.date,
.sort-buttons .btn-sort.client,
.sort-buttons .btn-sort.cellule{
    background-color: #2c3e50;
}

.sort-buttons .btn-sort.date:hover,
.sort-buttons .btn-sort.client:hover,
.sort-buttons .btn-sort.cellule:hover{
    background-color: #34495e;
}

