@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap');

/* Sidebar/navbar à gauche */
body {
  display: flex;
  min-height: 100vh;
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  background: #181c22;
  margin: 0;
  padding: 0;
  color: #e0e6ed;
}

header {
  width: 220px;
  min-width: 180px;
  background: linear-gradient(180deg, #232a34 0%, #181c22 100%);
  color: #fff;
  padding: 36px 0 0 0;
  text-align: center;
  box-shadow: 2px 0 24px rgba(33,150,243,0.10);
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  height: 100vh;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header img {
  width: 75%;
  max-width: 160px;
  margin: 0 auto 18px auto;
  display: block;
}

header h1 {
  margin: 0 0 24px 0;
  font-size: 2.1em;
  letter-spacing: 2.5px;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(33,150,243,0.10);
}

nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  align-items: center;
  overflow: hidden;
}

nav a {
  position: relative;
  color: #bfc9d1;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.08em;
  padding: 10px 0;
  width: 100%;
  transition: background 0.18s, color 0.18s;
  box-shadow: 0 1px 4px rgba(33,150,243,0.07);
  text-align: left;
  padding-left: 32px;
  background: none;
}

nav a:hover, nav a.active {
  background: rgba(33,150,243,0.13);
  color: #fff;
  box-shadow: 0 2px 8px rgba(33,150,243,0.13);
}

main {
  max-width: 90vw;
  width: 90vw;
  margin: 0 0 0 220px;
  background: #232a34;
  box-shadow: 0 2px 16px rgba(44,62,80,0.08);
  padding: 32px 24px;
  min-height: 100vh;
  border-radius: 0 0 12px 12px;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: #27303b; /* plus clair */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(44,62,80,0.10);
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  color: #e0e6ed;
}

.styled-table thead tr {
  background-color: #2d3e50;
  color: #7ecbff;
  text-align: left;
}

.styled-table th, .styled-table td {
  padding: 10px 12px;
  white-space: normal;
  word-break: break-word;
  vertical-align: top;
  background: #27303b; /* plus clair */
  color: #e0e6ed;
}

.styled-table tbody tr:hover {
  background: #2d3e50 !important;
  color: #fff !important;
}

.styled-table td:hover {
  /* Désactive le hover individuel sur les td */
  background: inherit !important;
  color: inherit !important;
}

.styled-table tbody tr {
  border-bottom: 1px solid #364152;
  background: #27303b;
}

.styled-table tbody tr:nth-child(even) {
  background: #2e3946; /* encore plus clair pour alternance */
}

.styled-table tbody tr:last-of-type {
  border-bottom: 2px solid #2196f3;
}

.job-tag {
  font-size: 0.88em !important;
  padding: 1px 7px !important;
  border-radius: 8px !important;
  margin: 1px 3px 1px 0 !important;
  display: inline-block !important;
  vertical-align: middle !important;
  color: #fff !important;
}

input[type="text"], input[type="number"], select {
  width: 95%;
  padding: 7px 8px;
  border: 1px solid #3a4656;
  border-radius: 5px;
  font-size: 1em;
  background: #232a34;
  color: #e0e6ed;
  transition: border 0.2s;
}

input[type="text"]:focus, input[type="number"]:focus, select:focus {
  border: 1.5px solid #2196f3;
  outline: none;
  background: #232a34;
  color: #fff;
}

select[multiple] {
  height: 60px;
  background: #232a34;
  color: #e0e6ed;
}

.add-btn, .edit-btn, .delete-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 1.1em;
  background: #1769aa;
  color: #fff;
  border: none;
  border-radius: 8px;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(44,62,80,0.10);
  transition: background 0.2s;
  padding: 0 22px;
}

.add-btn:hover, .edit-btn:hover, .delete-btn:hover {
  background: #2196f3;
  color: #fff;
}

.modal {
  background: #232a34 !important;
  color: #e0e6ed !important;
}

.modal label {
  color: #7ecbff !important;
}

.modal input[type="text"], .modal input[type="number"], .modal select, .modal input[type="color"] {
  background: #181c22 !important;
  color: #e0e6ed !important;
  border: 1px solid #3a4656 !important;
}

.modal input[type="text"]:focus, .modal input[type="number"]:focus, .modal select:focus {
  border: 1.5px solid #2196f3 !important;
  background: #232a34 !important;
  color: #fff !important;
}
