@charset "UTF-8";
* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.error-page {
  text-align: center;
  margin-top: 100px;
}

.error-page h1 {
  font-size: 80px;
}

.error-page a {
  display: inline-block;
  margin-top: 20px;
  color: white;
  background: #6c5ce7;
  padding: 10px 20px;
  border-radius: 8px;
}

.navbar {
  height: 70px;
  background: linear-gradient(135deg, #6c6cf0, #8f8ff5);
  padding: 0 40px;
  position: relative;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
.navbar .logo {
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.5px;
  color: white;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  font-size: 1.05rem;
}
.nav-links li {
  position: relative;
}
.nav-links a, .nav-links .dropdown-toggle {
  color: white;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: 0.25s;
  cursor: pointer;
  background: none;
  border: none;
}
.nav-links a:hover, .nav-links .dropdown-toggle:hover {
  color: #e0e7ff;
}
.nav-links a::after, .nav-links .dropdown-toggle::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  height: 2px;
  width: 0%;
  background: white;
  transition: 0.25s;
}
.nav-links a:hover::after, .nav-links .dropdown-toggle:hover::after {
  width: 100%;
}

.user-menu {
  position: relative;
}

.user-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.25s;
  font-weight: 500;
}
.user-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.dropdown-menu {
  position: absolute;
  top: 120%;
  left: 0; /* FIX */
  right: auto; /* FIX */
  min-width: 200px;
  z-index: 2000;
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.25s ease;
}

/* ouverture */
.dropdown.open .dropdown-menu,
.user-menu.open .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu a {
  padding: 12px 16px;
  text-decoration: none;
  color: #333;
  font-size: 0.95rem;
  transition: 0.2s;
}
.dropdown-menu a:hover {
  background: #f5f6ff;
  color: #6c6cf0;
}

.dropdown-menu hr {
  border: none;
  height: 1px;
  background: #eee;
  margin: 5px 0;
}

.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
}
.burger span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 4px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
  .burger {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 70px;
    right: 0;
    height: calc(100vh - 70px);
    width: 260px;
    background: linear-gradient(180deg, #6c6cf0, #8f8ff5);
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  }
  .nav-links.active {
    transform: translateX(0);
  }
  .dropdown-menu {
    position: static;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    border-radius: 8px;
    margin-top: 10px;
  }
  .dropdown-menu a {
    color: white;
  }
  .dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
  }
  .nav-links li {
    position: relative;
  }
}
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 80vh;
}

.auth-card {
  width: 680px;
  margin-top: 200px;
  padding: 30px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}
.auth-card h2 {
  margin-bottom: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.full {
  grid-column: span 3;
}

.span-2 {
  grid-column: span 2;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .full,
  .span-2 {
    grid-column: span 1;
  }
}
.btn-register {
  margin-top: 15px;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #4a6cf7, #6a5af9);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.auth-links {
  margin-top: 10px;
}

.success-box {
  background: #d4edda;
  color: #155724;
  padding: 8px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.error-box {
  background: #f8d7da;
  color: #721c24;
  padding: 8px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.input-group {
  position: relative;
  width: 100%;
}

.input-group input {
  width: 100%;
  padding: 10px 35px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.icon {
  position: absolute;
  left: 8px;
  top: 8px;
}

.toggle {
  position: absolute;
  right: 8px;
  top: 8px;
  cursor: pointer;
}

/* responsive */
@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .auth-card {
    max-width: 95%;
    padding: 25px;
  }
}
.btn-login {
  margin-top: 15px;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #4a6cf7, #6a5af9);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.auth-form .input-group {
  margin-bottom: 12px;
}
.auth-form .input-group input {
  width: 100%;
  padding: 10px 35px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  outline: none;
  transition: 0.25s;
}
.auth-form .input-group input:focus {
  border-color: #4a6cf7;
  box-shadow: 0 0 5px #4a6cf7;
}
.auth-form .input-group .icon {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
}
.auth-form .input-group .toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.password-strength {
  width: 100%;
  height: 6px;
  background: #eee;
  border-radius: 10px;
  margin-top: 8px;
  overflow: hidden;
}

#strength-bar {
  height: 100%;
  width: 0%;
  transition: 0.3s;
  border-radius: 10px;
}

#strength-text {
  font-size: 13px;
  margin-top: 5px;
  font-weight: 500;
}

.success-box, .error-box {
  padding: 8px;
  border-radius: 6px;
  margin-bottom: 10px;
  font-size: 14px;
  text-align: center;
}

.success-box {
  background: #d4edda;
  color: #155724;
}

.error-box {
  background: #f8d7da;
  color: #721c24;
}

/* CONTENEUR CENTRÉ */
.container {
  width: 100%;
  max-width: 1000px;
  margin: 40px auto;
  text-align: center;
  overflow: visible;
}

#search {
  width: 100%;
  max-width: 400px;
  padding: 10px 15px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

#pagination {
  margin-top: 20px;
}

#pagination button {
  margin: 3px;
  padding: 8px 12px;
  border: none;
  background: #6c63ff;
  color: white;
  cursor: pointer;
  border-radius: 5px;
}

#pagination button:hover {
  background: #574fd6;
}

/* TITRE */
h1 {
  margin-bottom: 20px;
}

/* TABLE */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: white;
  border-radius: 10px;
  overflow: hidden;
}

.table th {
  background: linear-gradient(135deg, #6a5cff, #8f7bff);
  color: white;
  padding: 12px;
}

.table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  text-align: center;
}

/* LIGNES (séparations visibles) */
.table th,
.table td {
  border: 1px solid #e0e0e0;
}

/* ZÉBRAGE (plus lisible) */
.table tr:nth-child(even) {
  background: #f9f9ff;
}

/* HOVER */
.table tr:hover {
  background: #ecebff;
  cursor: pointer;
}

/* ALIGNEMENT */
.table td, .table th {
  text-align: center;
}

/* ACTIONS (boutons) */
.table td a {
  text-decoration: none;
  background: #008829;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-divider {
  margin: 20px 0;
  border: none;
  height: 1px;
  background: #ddd;
}

.badge {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

.green {
  background: #d4edda;
  color: #155724;
}

.red {
  background: #f8d7da;
  color: #721c24;
}

.orange {
  background: #fff3cd;
  color: #856404;
}

/* FORM GRID */
#editForm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

/* FULL WIDTH */
#editForm .full {
  grid-column: span 2;
}

/* INPUTS */
#editForm input,
#editForm select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #f9f9fb;
  font-size: 0.9rem;
  transition: 0.2s;
}

/* FOCUS EFFECT */
#editForm input:focus,
#editForm select:focus {
  border-color: #6c63ff;
  background: white;
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
  outline: none;
}

/* BUTTON */
#editForm button {
  grid-column: span 2;
  margin-top: 10px;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #6c63ff, #5a52e0);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

#editForm button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(108, 99, 255, 0.3);
}

#editForm label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  text-align: center;
}

/* FORM GRID */
#viewForm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

/* FULL WIDTH */
#viewForm .full {
  grid-column: span 2;
}

/* INPUTS */
#viewForm input,
#viewForm select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #f9f9fb;
  font-size: 0.9rem;
  transition: 0.2s;
}

/* FOCUS EFFECT */
#viewForm input:focus,
#viewForm select:focus {
  border-color: #6c63ff;
  background: white;
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
  outline: none;
}

/* BUTTON */
#viewForm button {
  grid-column: span 2;
  margin-top: 10px;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #6c63ff, #5a52e0);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

#viewForm .btn-ban {
  background: red;
}

#viewForm .btn-ban:hover {
  background: darkred;
}

#viewForm .btn-verify-email {
  background: #4CAF50;
}

#viewForm .btn-verify-email:hover {
  background: #45a049;
}

#viewForm .btn-reset-password {
  background: #2196F3;
}

#viewForm .btn-reset-password:hover {
  background: #1976D2;
}

#viewForm .btn-delete {
  background: #f44336;
}

#viewForm .btn-delete:hover {
  background: #d32f2f;
}

#viewForm button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(108, 99, 255, 0.3);
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal .modal-content {
  background: #fff;
  padding: 25px;
  width: 700px;
  border-radius: 12px;
  animation: fadeIn 0.3s ease;
}
.modal .close {
  float: right;
  cursor: pointer;
  font-size: 22px;
}

/* OVERLAY */
#editModal {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 30, 0.6);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  animation: fadeIn 0.3s ease;
}

#editModal.active {
  display: flex;
}

#viewModal {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 30, 0.6);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  animation: fadeIn 0.3s ease;
}

#viewModal.active {
  display: flex;
}

/* MODAL BOX */
.modal-content {
  width: 480px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: scaleIn 0.3s ease;
  position: relative;
}

/* TITLE */
.modal-content h2 {
  margin-bottom: 20px;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
}

/* CLOSE */
.modal-content .close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.2s;
}

.modal-content .close:hover {
  opacity: 1;
}

/* Overlay */
#banModal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

/* Box */
#banModal .modal-content {
  width: 420px;
  background: #fff;
  border-radius: 14px;
  padding: 25px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.25s ease;
}

/* Header */
#banModal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

#banModal h2 {
  font-size: 20px;
  font-weight: 600;
}

/* Close button */
.close-ban {
  font-size: 20px;
  cursor: pointer;
  color: #888;
}

.close-ban:hover {
  color: #000;
}

/* Form */
#banModal form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Inputs */
#banModal select,
#banModal textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
}

/* Label */
#banModal label {
  font-weight: 500;
  margin-bottom: 5px;
  display: block;
}

/* Textarea */
#banModal textarea {
  resize: none;
  height: 80px;
}

/* Button */
.btn-ban-confirm {
  margin-top: 10px;
  background: #e74c3c;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.btn-ban-confirm:hover {
  background: #c0392b;
}

.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  font-size: 1.1rem;
  border-radius: 10px;
}

/* Hover */
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.4);
}

/* Click */
.btn-primary:active {
  transform: scale(0.98);
}

.btn-danger {
  background: linear-gradient(135deg, #ff5f5f, #ff5f5f);
  color: white;
  padding: 10px 16px;
  font-size: 0.9rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: 0.2s;
}

/* Hover */
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(255, 95, 95, 0.4);
}

/* Click */
.btn-primary:active {
  transform: scale(0.98);
}

/* Désactivé */
.btn-primary:disabled {
  background: #aaa;
  cursor: not-allowed;
  box-shadow: none;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ===== OVERLAY ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 25, 0.75);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

/* ACTIVE */
.modal.show {
  display: flex;
}

/* ===== BOX ===== */
.modal-content {
  background: #1e1e2f;
  border-radius: 14px;
  padding: 25px;
  width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.25s ease;
}

/* ===== HEADER ===== */
.modal-content h2 {
  margin-bottom: 20px;
  font-size: 1.3rem;
}

/* ===== CLOSE BUTTON ===== */
.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 22px;
  cursor: pointer;
  transition: 0.2s;
}

.close:hover {
  color: #fff;
}

/* ===== LIST ===== */
.modal-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ITEM */
.modal-content li {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.2s;
}

/* HOVER */
.modal-content li:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

/* KEY */
.modal-content li strong {
  color: #5865f2;
  font-weight: 500;
}

/* LABEL */
.modal-content li span {
  color: #ccc;
  font-size: 0.9rem;
}

/* ===== SCROLLBAR ===== */
.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #5865f2;
  border-radius: 10px;
}

/* ===== ANIMATION ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* Container */
.container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

/* Title */
.page-title {
  font-size: 28px;
  margin-bottom: 30px;
  font-weight: bold;
}

/* Cards */
.role-card {
  background: #1e1e2f;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Header */
.role-header h2 {
  margin-bottom: 15px;
  color: #fff;
}

/* Grid permissions */
.permissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

/* Checkbox */
.permission-item {
  display: flex;
  align-items: center;
  background: rgb(152, 152, 216);
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.permission-item:hover {
  background: #343456;
}

.permission-item input {
  margin-right: 10px;
  transform: scale(1.2);
}

/* Button */
.btn-save {
  margin-top: 20px;
  padding: 15px 25px;
  border: none;
  background: #6c5ce7;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.btn-save:hover {
  background: #5a4bd6;
}

.permissions-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.role-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  color: white;
}

.role-card.active .permissions-wrapper {
  display: block;
}

/* rotation flèche */
.role-card.active .arrow {
  transform: rotate(180deg);
}

.roles-topbar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.btn-secondary {
  background: #374151;
  color: #fff;
}

.btn-secondary:hover {
  background: #4b5563;
}

.permission-group {
  margin-bottom: 20px;
  padding: 10px;
  border-left: 3px solid #5865f2;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
}

.permission-group h3 {
  margin-bottom: 10px;
  font-size: 0.8rem;
  color: #aaa;
  text-transform: uppercase;
}

.container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

.container h1 {
  text-align: center;
  margin-bottom: 25px;
}

.container form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 auto;
  padding: 25px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* LABEL */
.container form label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

/* INPUT + TEXTAREA */
.container form input,
.container form textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
  outline: none;
  transition: 0.2s;
}

/* FOCUS EFFECT */
.container form input:focus,
.container form textarea:focus {
  border-color: #6a5cff;
  box-shadow: 0 0 0 2px rgba(106, 92, 255, 0.15);
}

/* TEXTAREA */
.container form textarea {
  min-height: 100px;
  resize: vertical;
}

/* FILE INPUT */
.container form input[type=file] {
  border: none;
  padding: 5px;
}

/* BUTTON */
.container form button {
  margin-top: 10px;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #6a5cff, #8f7bff);
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.2s;
}

.container form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(106, 92, 255, 0.3);
}

.input-group {
  position: relative;
}

.input-group input {
  width: 100%;
  padding: 12px 40px 12px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
}

.input-group span {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  color: #666;
  font-weight: 600;
}

.products-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
  gap: 15px;
}
.products-topbar #search {
  flex: 1;
  max-width: 350px;
  padding: 10px 15px;
  border-radius: 10px;
  border: 1px solid #ddd;
  outline: none;
  font-size: 0.95rem;
  transition: 0.2s;
}
.products-topbar #search:focus {
  border-color: #6a5cff;
  box-shadow: 0 0 0 2px rgba(106, 92, 255, 0.15);
}

.btn-primary {
  background: linear-gradient(135deg, #6a5cff, #8f7bff);
  color: white;
  padding: 10px 16px;
  font-size: 0.9rem;
  border: none;
  border-radius: 10px;
  width: -moz-fit-content;
  width: fit-content;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(106, 92, 255, 0.3);
}

#productModal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 1;
  transition: 0.3s ease;
}
#productModal.hidden {
  opacity: 0;
  pointer-events: none;
}
#productModal .modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease;
}
#productModal .modal-content h2 {
  margin-bottom: 1.5rem;
  color: #1f2937;
}
#productModal .modal-content form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
#productModal .modal-content form input,
#productModal .modal-content form textarea {
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: 0.3s ease;
}
#productModal .modal-content form input:focus,
#productModal .modal-content form textarea:focus {
  border-color: #4f46e5;
  outline: none;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}
#productModal .modal-content form textarea {
  resize: none;
  min-height: 80px;
}
#productModal .modal-content form .actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-top: 1.5rem;
}
#productModal .modal-content form .actions button {
  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
#productModal .modal-content form .actions .cancel {
  background: transparent;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}
#productModal .modal-content form .actions .cancel:hover {
  background: #f9fafb;
  color: #111827;
}
#productModal .modal-content form .actions .save {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: white;
  box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}
#productModal .modal-content form .actions .save:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}
#productModal .modal-content form .actions .save:active {
  transform: scale(0.97);
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #111;
  color: white;
  padding: 1rem 1.2rem;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.3s ease;
  z-index: 9999;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.btn {
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
  font-size: 14px;
}
.btn.primary {
  background: #4f46e5;
  color: white;
}
.btn.primary:hover {
  background: rgb(41.1374407583, 30.5592417062, 217.4407582938);
}
.btn.danger {
  background: #ef4444;
  color: white;
}
.btn.danger:hover {
  background: rgb(234.9802955665, 21.0197044335, 21.0197044335);
}
.btn.success {
  background: #22c55e;
  color: white;
}
.btn.success:hover {
  background: rgb(26.4935064935, 153.5064935065, 73.2467532468);
}

.confirm-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.confirm-modal.hidden {
  display: none;
}
.confirm-modal .confirm-box {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
.confirm-modal .confirm-box h3 {
  margin-bottom: 1rem;
}
.confirm-modal .confirm-box p {
  color: #6b7280;
  margin-bottom: 1.5rem;
}
.confirm-modal .confirm-box .actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.confirm-modal .confirm-box .actions button {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}
.confirm-modal .confirm-box .actions .cancel {
  background: #e5e7eb;
}
.confirm-modal .confirm-box .actions .delete {
  background: #ef4444;
  color: white;
}
.confirm-modal .confirm-box .actions .delete:hover {
  background: #dc2626;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.dashboard {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
}
.dashboard .stats {
  display: flex;
  gap: 20px;
}
.dashboard .stats .stat-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  flex: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.dashboard .stats .stat-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
  color: #333;
}
.dashboard .stats .stat-card p {
  font-size: 24px;
  font-weight: bold;
  color: #007BFF;
}

.newusers {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: both 0.5s fadeIn;
}
.newusers table {
  width: 100%;
  border-collapse: collapse;
}
.newusers table th, .newusers table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}
.newusers table th {
  background-color: #f8f8f8;
  font-weight: bold;
}
.newusers table tr:hover {
  background-color: #f1f1f1;
}

.orders {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: both 0.5s fadeIn;
}
.orders table {
  width: 100%;
  border-collapse: collapse;
}
.orders table th, .orders table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}
.orders table th {
  background-color: #f8f8f8;
  font-weight: bold;
}
.orders table tr:hover {
  background-color: #f1f1f1;
}

.container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

h1 {
  text-align: center;
  margin-bottom: 40px;
}

/* GRID PRODUITS */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

/* CARD PRODUIT */
.card {
  background: #fff;
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
  text-align: center;
  position: relative;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* IMAGE */
.card img {
  width: 100%;
  height: 180px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

/* TITRE */
.card h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

/* DESCRIPTION */
.card h4 {
  font-size: 14px;
  color: #777;
  margin-bottom: 10px;
}

/* PRIX */
.card p {
  font-size: 18px;
  font-weight: bold;
  color: #4f46e5;
  margin-bottom: 15px;
}

/* BOUTON */
.card a {
  display: inline-block;
  padding: 10px 15px;
  background: #4f46e5;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}

.card a:hover {
  background: #3730a3;
}

#modal-product {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none; /* 🔥 important */
  justify-content: center;
  align-items: center;
  z-index: 999;
}

#modal-product.active {
  display: flex;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  width: 500px;
  max-width: 90%;
  animation: fadeIn 0.3s ease;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 25px;
  cursor: pointer;
}

.modal-img {
  align-items: center;
}

#addToCart {
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}/*# sourceMappingURL=main.css.map */