 body {
    font-family: Arial, sans-serif;
    background: #f9fafb;
    margin: 0;
    padding: 20px;
    color: #333;
  }

  .container {
    max-width: 700px;
    margin: auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  }

  h1 {
    text-align: left;
    color: #1f2937;
    margin-bottom: 20px;
  }

  .event-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }

  select {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    color: #333;
    margin-left: 0px;
    margin-right: 10px;
    cursor: pointer;
  }

  select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 3px #007bff;
  }

  .select-filter {
    padding: 3px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    color: #333;
    margin-left: 0px;
    margin-right: 10px;
    cursor: pointer;
  }

  .event-form input[type="date"],
  .event-form input[type="text"] {
    flex: 1;
    min-width: 120px;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
  }

  .event-form input[type="date"] {
  flex: 0 0 150px; /* fixed width for date input */
  }

  .event-form input[type="text"] {
    flex: 2; /* makes it take more space */
    min-width: 400px;
  }

  .event-form button {
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    background: #3b82f6;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
  }

  .event-form button:hover {
    background: #2563eb;
  }

  #loginBtn, #logoutBtn {
    margin-bottom: 20px;
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
  }

  #loginBtn {
    background: #10b981;
    color: white;
  }

  #loginBtn:hover {
    background: #059669;
  }

  #logoutBtn {
    background: #ef4444;
    color: white;
    float: right;
  }

  #logoutBtn:hover {
    background: #dc2626;
  }

  ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 40px;
  }

  li {
    padding: 1px;
    border-bottom: 1px solid #eee;
    position: relative;
    background: #f9fafb;
    margin-bottom: 6px;
    border-radius: 6px;
  }

  li:hover {
    background: #f3f4f6;
  }

  .actions button:hover {
    background: #5390fa;
  }

  .tag-naissance {
  background-color: #fae5f0; /* light pink */
  }

  .tag-vacances {
  background-color: #f6f5d2; /* light yellow */
  }

  .tag-travail {
  background-color: #e0e8f8; /* light blue */
  }

  .tag-ecole {
  background-color: #cff8d8; /* light green */
  }

  .tag-autre {
  background-color: #e9e9e9; /* light grey */
  }

  .tags {
  margin-left: 10px;
  }

  .tag {
    background-color: #e0e0e0;
    border-radius: 4px;
    padding: 2px 6px;
    margin-left: 5px;
    font-size: 0.85em;
    color: #333;
  }

  .event-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 5px;
    height: 40px;
  }

  .event-thumbnail {
    height: 30px;
    width: auto;
    object-fit: cover;
    display: inline-block;
    flex-shrink: 0;
    margin-left: 5px;
  }

  .actions {
    position: absolute;
    right: 10px;
    top: 10px;
  }

  .actions button {
    margin-left: 5px;
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    background: #d1d5db;
  }

  .modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
  }

  .modal-content {
    max-width: 80vw;
    max-height: 70vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 20px black;
  }

  .modal.show {
    display: flex; /* Use flex to center content */
  }

  .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
  }