:root {
  --primary: #2563eb;
  --sidebar-bg: #1e293b;
  --sidebar-hover: #334155;
}

body {
  background: #f8fafc;
  font-family: "JetBrains Mono", monospace;
  font-optical-sizing: auto;
  font-style: normal;
}

.login {
  background-image: url(login-cover.jpg);
  background-size: cover;
  background-repeat: no-repeat;

  color: #fff;
}

/* Hamburger Button */
.hamburger-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1001;
  background: var(--sidebar-bg);
  border: none;
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  display: none;
  font-size: 20px;
  transition: all 0.3s;
}

.hamburger-btn:hover {
  background: var(--sidebar-hover);
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 250px;
  background: var(--sidebar-bg);
  padding-top: 20px;
  z-index: 1000;
  transition: transform 0.3s ease;
}

/* Overlay pour mobile */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

.sidebar-brand {
  padding: 0 20px 30px;
  color: white;
  font-size: 24px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-brand i {
  font-size: 28px;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  margin-bottom: 5px;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  background: var(--sidebar-hover);
  color: white;
}

.sidebar-menu i {
  margin-right: 12px;
  width: 20px;
  text-align: center;
}

.sidebar-menu .menu-text {
  transition: opacity 0.3s;
}

.main-content {
  margin-left: 250px;
  padding: 30px;
  transition: margin-left 0.3s ease;
}

.header {
  background: white;
  padding: 20px 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: var(--primary);
  border: none;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.table-actions button {
  padding: 5px 10px;
  margin: 0 2px;
}

.badge-tech {
  background: #e0e7ff;
  color: #3730a3;
  padding: 5px 10px;
  border-radius: 20px;
  margin: 2px;
}

.modal-header {
  background: var(--primary);
  color: white;
}

.view-section {
  display: none;
}

.view-section.active {
  display: block;
}

.stats-card {
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  color: white;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.stats-card h3 {
  font-size: 36px;
  margin: 10px 0;
}
.ui.dropdown {
  max-width: 800px;
}

@media only screen and (max-width: 767px) {
  .ui.selection.dropdown .menu {
    /*      max-height: 8.01428571rem; /* + 1.335714285 to 9.349999995rem */
    /*      max-height: 9.349999995rem; /* Adds a half */
    max-height: 16.02857142rem; /* Double size */
  }
}
@media only screen and (min-width: 768px) {
  .ui.selection.dropdown .menu {
    /*         max-height: 10.68571429rem; /* + 1.3357142863 to 12.0214285763rem */
    max-height: 12.0214285763rem;
  }
}
@media only screen and (min-width: 992px) {
  .ui.selection.dropdown .menu {
    max-height: 16.02857143rem; /* + 1.3357142858 to 17.3642857158rem */
  }
}
@media only screen and (min-width: 1920px) {
  .ui.selection.dropdown .menu {
    max-height: 21.37142857rem; /* + 1.3357142856 to 22.7071428556rem */
  }
}

/* Responsive pour tablettes */
@media (max-width: 992px) {
  .hamburger-btn {
    display: block;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    padding: 80px 20px 20px 20px;
  }
}

/* Responsive pour mobile */
@media (max-width: 768px) {
  .header {
    padding: 15px 20px;
  }

  .header h1 {
    font-size: 24px;
  }

  .stats-card h3 {
    font-size: 28px;
  }

  .table-responsive {
    font-size: 14px;
  }

  .btn {
    font-size: 14px;
    padding: 8px 16px;
  }

  .main-content {
    padding: 80px 15px 15px 15px;
  }
}

/* Très petits écrans */
@media (max-width: 576px) {
  .sidebar {
    width: 280px;
  }

  .header h1 {
    font-size: 20px;
  }

  .header .btn {
    width: 100%;
    margin-top: 10px;
  }

  .header .d-flex {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .stats-card h3 {
    font-size: 24px;
  }
}
