/* Global styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-image: url('fond.jpg'); /* Image de fond */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

/* Popup styles */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.popup-content {
    position: relative;
    background-color: rgba(255, 255, 255, 0.0);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

/* Image cliquable */
.popup-content img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Bouton de fermeture (croix en haut à droite) */
.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #1a392a;
    cursor: pointer;
    background-color: #c97a6b ;
    padding: 5px;
    border-radius: 50%;
}

.close-button:hover {
    background-color: #1a392a;
    color: #c97a6b;
}

/* Buttons container */
#buttons-container {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#buttons-container button {
    margin: 10px;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    background-color: #c87a70; /* Couleur des boutons */
    color: white; /* Couleur de l'écriture */
    cursor: pointer;
    font-size: 16px;
    width: 45%;
}

#buttons-container button:hover {
    background-color: #a9605c;
}

#buttons-container button:active {
    background-color: #954d4a;
}
/* Admin panel styles */
.admin-panel {
    margin-top: 20px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.admin-panel h2 {
    margin-bottom: 15px;
    font-size: 20px;
    color: #1a392a;
}

.admin-panel form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.admin-panel label {
    margin-bottom: 10px;
    font-size: 14px;
    color: #1a392a;
}

.admin-panel input {
    margin-bottom: 15px;
    padding: 10px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

#image-preview-container {
    margin-bottom: 15px;
}

#image-preview {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hidden {
    display: none;
}

.admin-panel button {
    padding: 12px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}

.admin-panel button:hover {
    background-color: #218838;
}
/* Logo Cafés Modèle */
#logo-container {
    text-align: center;
    margin-top: 20px;
}

#logo {
    max-width: 200px;
    height: auto;
}
/* Table styles for Superadmin page */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

table th, table td {
    text-align: left;
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    color: #333; /* Couleur visible */
}

table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

table tr:hover {
    background-color: #f9f9f9;
}

table tr:last-child td {
    border-bottom: none;
}

button {
    background-color: #4caf50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

button:active {
    background-color: #3e8e41;
}

form input[type="text"], form input[type="email"], form input[type="password"], form input[type="color"] {
    width: calc(100% - 20px);
    padding: 8px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

form label {
    font-weight: bold;
    margin-top: 10px;
    display: block;
}

.admin-panel {
    max-width: 800px;
    margin: 0 auto;
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #333;
}

h2, h3 {
    text-align: center;
    color: #333;
}


