/* --- PAGE ADMIN --- */
.admin-body {
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
}
.login-container {
    background-color: #F9DEFF;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 400px;
    width: 90%;
    justify: center;
}
.login-container p {
    color: #666;
    margin-bottom: 20px;
}
.login-container form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    text-align: left;
}
.login-container form input[type="text"],
.login-container form input[type="password"] {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.login-container form button {
    padding: 12px 25px;
    background-color: #5C0073;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}
.login-container form button:hover {
    background-color: #B300A6;
}
.error-message {
    color: #dc3545;
    margin-top: 10px;
    font-weight: bold;
}


/* --- PAGE PANNEAU ADMIN --- */
.admin-panel-body {
        background-color: #f4f4f4;
}
.admin-container {
	max-width: 900px;
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 0 10px rgba(0,0,0,0.1);
	box-sizing: border-box;
	position: relative;
	z-index: 1;
	margin: 0 auto;
}
.admin-top-links {
	display: flex;
	flex-wrap: wrap; /* <-- permet aux boutons de passer à la ligne */
	justify-content: center;
	gap: 15px;
	margin-bottom: 25px;
	padding: 15px;
	border-bottom: 1px solid #eee;
}

.admin-top-links .button {
	padding: 10px 20px;
	background-color: #007bff;
	color: white;
	border: none;
	border-radius: 9999px;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.3s ease;
	font-size: 1em;
	display: inline-block;
	font-weight: 500;
	white-space: nowrap; /* <-- empêche le texte de revenir à la ligne */
}

.admin-top-links .button:hover {
	background-color: #0056b3;
}
.admin-top-links .dashboard-link {
	background-color: #B300A6;
}
.admin-top-links .dashboard-link:hover {
	background-color: #FF3BEF;
}
.admin-top-links .new-event-button {
	background-color: #001E73;
}
.admin-top-links .new-event-button:hover {
	background-color: #5E89FF;
}
.notification {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
	padding: 12px;
	margin-bottom: 20px;
	border-radius: 5px;
	text-align: center;
	margin-top: 30px;
}
.error-notification {
	margin-top: 30px;
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}
.form-section {
	margin-bottom: 30px;
	padding: 20px;
	border: 1px solid #eee;
	border-radius: 5px;
	background-color: #fafafa;
	transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out, opacity 0.5s ease-in-out;
	overflow: hidden;
}
.form-section-hidden {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    display: none;
}
.form-section-visible {
        padding-top: 20px;
        padding-bottom: 20px;
        opacity: 1;
        display: block;
}
.form-section h2, .form-section h3 {
	font-weight: 0;
	text-transform: uppercase;
	font-size: 30px;
	text-align: center;
	margin-top: 0;
	color: #333;
	border-bottom: 1px solid #eee;
	padding-bottom: 10px;
	margin-bottom: 10px;
}
.form-section h3 {
	font-size: 24px;
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 15px;
}
.form-group {
	margin-bottom: 20px;
}
.form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: bold;
	color: #555;
	font-family: 'Quicksand-VariableFont_wght';
}
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="date"],
textarea,
select {
	width: calc(100% - 22px);
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	font-size: 16px;
	font-family: 'Quicksand-VariableFont_wght';
}
textarea {
	resize: vertical;
	min-height: 80px;
}

.edit-admin-button {
	background-color: #FFC678;
	color: #fff;
	padding: 5px 10px;
	font-size: 0.8em;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	display: inline-block;
	line-height: 1;
	font-weight: 600;
}
.edit-admin-button:hover {
	background-color: #BF6D00;
    color: #fff;
}
.admin-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.remove-item-button {
    background-color: #dc3545;
    color: #fff;
    border: none;
    border-radius: 5px;
    margin-left: 10px;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.remove-item-button:hover {
    background-color: #c82333;
}
.admin-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 20px;
}
.admin-table th, .admin-table td {
	border: 1px solid #ddd;
	padding: 10px;
	text-align: left;
	vertical-align: middle;
	font-size: 0.9em;
}
.admin-table th {
	background-color: #f2f2f2;
	font-weight: bold;
	white-space: nowrap;
}
.admin-table tbody tr:nth-child(even) {
	background-color: #f9f9f9;
}
.admin-table a {
	color: #007bff;
	text-decoration: none;
}
.admin-table a:hover {
	text-decoration: underline;
}
.admin-table .remove-item-button {
	padding: 5px 10px;
	font-size: 0.8em;
	margin: 0;
}








@media (max-width: 900px) {
	.admin-panel-body {
            padding-top: 50px;
}
	.admin-top-links {
            flex-direction: column;
            align-items: stretch;
}
	.admin-top-links .button {
            width: 100%;
            margin-bottom: 10px;
}
  .admin-table thead {
    display: none;
  }
  .admin-table, 
  .admin-table tbody, 
  .admin-table tr, 
  .admin-table td {
    display: block;
    width: 100%;
  }
  .admin-table tr {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }
  .admin-table td {
    text-align: right;
    padding-left: 50%;
    position: relative;
    border: none;
    border-bottom: 1px solid #eee;
  }
  .admin-table td:last-child {
    border-bottom: none;
  }
  .admin-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    width: 45%;
    text-align: left;
    font-weight: bold;
    white-space: nowrap;
  }
  .admin-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 5px;
  }
  .edit-admin-button, 
  .remove-item-button {
    width: 100%;
    text-align: center;
	margin-top: 5px;
  }
}