/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f8fc;
    
  }
  
  @font-face {
    font-family:"Inter";
    src: url(fonts/Inter/Inter-VariableFont_opsz,wght.ttf);
}
  .container {
    display: flex;
    padding-top: 20px; /* Si vous avez une navbar en haut */
  }
  
/* Main Content */
.content {
    flex: 1;
    padding: 20px;
    margin-left: 270px;
    position: relative;
  }
  
    /* 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: 200px;
      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: #77E2C6;;
  }
  
  .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: #77E2C6;
  }
  
  .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: #77E2C6;;
  }
  
  .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;
  }
  
  
  /* fil d'ariane */
  .breadcrumb {
      font-size: 14px;
      color: #555;
    }
    
    .breadcrumb a {
      text-decoration: none;
      color: #182E68;
    }
    
    .breadcrumb a:hover {
      text-decoration: underline;
      color: #77E2C6;;
    }
    
    .breadcrumb span {
      color: #555;
      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;
}

.user-actions a{
    text-decoration: none;
    color: #182E68;
}

.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;
} 




/* Contenu principal */
main {
    margin-left: 250px;
    padding: 20px;
}

.page-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.profile-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-bottom: 40px;
}

.profile-sidebar {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.profile-sidebar ul {
    list-style: none;
}

.profile-sidebar ul li {
    margin-bottom: 15px;
    font-size: 18px;
}

.profile-sidebar ul li a {
    text-decoration: none;
    color: #343a40;
}

.profile-sidebar ul li a:hover {
    text-decoration: underline;
}

.profile-details {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.profile-photo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.profile-photo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 20px;
}

.profile-photo button {
    background: #40c4b8;
    color: #ffffff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.profile-photo button:hover {
    background: #36afa6;
}

.profile-info h1 {
    font-size: 20px;
    color: #343a40;
}

.profile-info textarea {
    width: 100%;
    padding: 5px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    margin-top: 10px;
}

.profile-info .toolbar {
    margin-top: 10px;
    display: flex;
    gap: 5px;
}

.profile-info .toolbar button {
    border: 1px solid #ced4da;
    background: #f8f9fc;
    padding: 5px 10px;
    border-radius: 3px;
}

.profile-info .send-button {
    background: #40c4b8;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    margin-top: 10px;
    border: none;
    cursor: pointer;
}

.profile-info .send-button:hover {
    background: #36afa6;
}

/* Section Mes Contacts */
.contacts,
.documents,
.projects,
.absences {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    margin-bottom: 20px;
}

.contacts ul {
    display: flex;
    gap: 10px;
}

.contacts ul li {
    width: 50px;
    height: 50px;
    background: #40c4b8;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Projets */
.projects ul {
    list-style: none;
}

.projects ul li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

/* Absences */
.absences .chart {
    text-align: center;
    font-size: 14px;
}

@keyframes progress {
  0% {
    stroke-dasharray: 0 100;
  }
}

@keyframes progress-retard {
  0% {
    stroke-dasharray: 0 100;
  }
}

@keyframes progress-retard-justifie {
  0% {
    stroke-dasharray: 0 100;
  }
}

.circle-svg {
  display: block;
  margin: 10px auto;
  width: 150px;
  height: 150px; 
}

.circle-svg text {
  text-align: center;
  color: black;
  font-size: 10px;
}

.circle-svg path.percent {
  stroke: #77E2C6; 
  fill: none;
  stroke-width: 4;
  animation: progress 1s ease-out forwards;
}

.circle-svg path.retard {
  stroke: #18275C;
  fill: none;
  stroke-width: 4;
  animation: progress-retard 1s ease-out forwards;
}

.circle-svg path.retard-justifie {
  fill: none;
}

.circle-svg path.around {
  stroke: #EFF4FF;
  fill: none;
  stroke-width: 4; 
}

.absences-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.absences-graph {
    flex: 1;
    display: flex;
    justify-content: center;
}

.absences-legend {
    flex: 1;
    padding-left: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.color-box {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 3px;
}

.absences-legend span {
    font-size: 16px;
    color: #18275C;
}
