body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #EFF4FF;
  }
  
  .container {
    display: flex;
    height: 100vh;
    width: 100%;
}

  .content {
    display: flex;
    margin-left: 270px;
    gap: 40px;
    width: calc(100% - 270px); 
    overflow: auto;
    padding: 20px;
    box-sizing: border-box;
  }
  
  /* Navigation Bar */

.dark-mode {
    background-color: #2c3e50;
    color: white;
}


.sidebar {
  background-color: #182E68;
  color: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 0 10px 10px 0;
  height: 95vh;
  width: 250px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.sidebar h2 {
    font-size: 20px;
    display: flex;
    align-items: center;
}

.sidebar h2 img {
    margin-right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin: 20px 0;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.sidebar ul li a img {
    width: 20px;
    margin-right: 10px;
}

.sidebar ul li a:hover {
    color: #1ABC9C;
}

.settings {
    margin-top: auto;
    padding-top: 20px;
}

.settings ul {
    list-style: none;
    padding: 0;
}

.settings ul li {
    margin: 15px 0;
}

.settings ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.settings ul li a img {
    width: 20px;
    margin-right: 10px;
}

.settings ul li a:hover {
    color: #1ABC9C;
}

.dark-mode-toggle {
    margin-top: 20px;
    justify-content: center;
}

.dark-mode-toggle button {
    background-color: #2C3E50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dark-mode-toggle button:hover {
    background-color: #1ABC9C;
}

.dark-mode-toggle button span {
    font-size: 16px;
}

.toggle {
  position: relative;
  width: 80px; 
  height: 40px; 
  background-color: #ccc;
  border-radius: 40px;
  cursor: pointer;
  align-self: flex-start;
  margin-top: 20px;
  }

  .toggle .circle {
      position: absolute;
      top: 2px;
      left: 2px;
      width: 36px;
      height: 36px;
      background-color: white;
      border-radius: 50%;
      transition: transform 0.3s;
  }

  .toggle.active .circle {
      transform: translateX(40px);
  }

  .toggle .sun,
  .toggle .moon {
      position: absolute;
      font-size: 16px;
      color: white;
      pointer-events: none;
      top: 50%;
      transform: translateY(-50%);
  }

  .toggle .sun {
      left: 10px;
  }

  .toggle .moon {
      right: 10px;
  }

main {
    margin-left: 270px;
    padding: 20px;
}

.welcome {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background-color: #ecf0f1;
    border-radius: 8px;
}

.section {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.section .card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 1;
    padding: 20px;
}

.footer {
    background-color: #7f8c8d;
    height: 100px;
    margin-top: 50px;
}

  
  /* Buttons Section */
  .buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-left:40px;
  }
  
  
  .button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 4px rgba(60, 60, 60, 0.1);
    background-color:#182E68;
  }

  .buttons :hover{
  background-color:#3051ad;
  border-radius: 50%;
  }

  /* Notes Table */
.notes {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 20px; 
}


.title-notes{
margin-bottom: 5px;
}

.notes table {
  width: 90%;
  table-layout: auto;
  border-collapse: collapse;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: solid;
}

.notes table th, .notes table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #ecf0f1;
}

.notes table th {
  background-color: #f1f2f6;
  font-weight: bold;
}

.notes table tbody tr:last-child td {
  border-bottom: none;
}

.notes table td:last-child {
  font-weight: bold;
}
  
.last-row td {
  font-weight: bold; 
  border-top: 2px solid black;
  background-color: #182E68;
  color: white;
}


/* fil d'ariane */
.breadcrumb {
  font-size: 14px;
  color: #555;
}

.breadcrumb a {
  text-decoration: none;
  color: #182E68;
}

.breadcrumb a:hover {
  text-decoration: underline;
  color: #1ABC9C;
}

.breadcrumb span {
  font-weight: bold;
}

/* header */
.header-right {
  display: flex;
  align-items: center;
  background-color: #FFFFFF;
  padding: 10px 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-left: 220px;
  justify-content: flex-end;
  gap: 20px;
}


/* Barre de recherche */
.search-container {
display: flex;
align-items: center;
gap: 5px;
max-width: 270px;
}

.search-input {
width: 100%;
padding: 8px 12px;
border: 1px solid #D1D5DB;
border-radius: 5px;
font-size: 14px;
}

.search-input:focus {
outline: none;
border-color: #1ABC9C;
}

.search-btn {
background-color: white;
border: none;
cursor: pointer;
font-size: 18px;
color: #182E68;
}

/* Actions utilisateur */
.user-actions {
display: flex;
align-items: center;
gap: 15px;
}

.action-btn {
background: none;
border: none;
font-size: 18px;
cursor: pointer;
}

.user-profile {
display: flex;
align-items: center;
gap: 10px;
}

.profile-pic {
width: 30px;
height: 30px;
border-radius: 50%;
background-image: url('images/profil.jpg');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}