@import "calendar/calendar.css";
@import "parent/panel.css";

:root {
  --primary-color: #4a90e2;
  --secondary-color: #f7b733;
  --accent-color: #fc4a1a;
  --light-bg: #f9fafb;
  --sidebar-width: 280px;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--light-bg);
  overflow-x: hidden;
  display: flex;
}

.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: linear-gradient(180deg, #4a90e2 0%, #357abd 100%);
  color: white;
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

#calendar {
  max-width: 100%;
  margin: 0 auto;
}

.fc-header-toolbar {
  margin-bottom: 1rem;
}

.fc-toolbar-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #007bff;
}

.fc-daygrid-event {
  background-color: #007bff !important;
  border: none !important;
  color: #fff !important;
  border-radius: 4px;
  padding: 2px 4px;
  font-size: 0.85rem;
}

.logo-container {
  padding: 1.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.logo {
  width: 100px;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.sidebar h2 {
  color: white;
  font-size: 1.5rem;
  margin: 0.5rem 0;
  text-align: center;
  font-weight: 600;
}

.nav-content {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 1rem;
}

/* Personnalisation de la barre de défilement */
.nav-content::-webkit-scrollbar {
  width: 6px;
}

.nav-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.nav-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.nav-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

.nav-item {
  margin: 0.3rem 1rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.nav-link.active {
  background-color: rgba(255, 255, 255, 0.2);
  color: white !important;
  font-weight: 600;
}

.nav-link i {
  font-size: 1.2rem;
}

.sidebar-bottom {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.logout-link {
  color: white !important;
  background-color: var(--accent-color);
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0.5rem;
  text-decoration: none;
}

.logout-link:hover {
  background-color: #e63900;
}

.help-link {
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0.5rem;
  text-decoration: none;
}

.impersonate-button {
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0.5rem;
  text-decoration: none;
}

.nav-category {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 1rem 1.5rem 0.3rem;
  margin-top: 0.5rem;
}

.notification-badge {
  background-color: var(--secondary-color);
  color: white;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  margin-left: auto;
}

.nav-link:hover i {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.main-content {
  flex-grow: 1;
  min-height: 100vh;
  transition: all 0.3s ease;
}

.header {
  background: white;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.header h1 {
  color: #2d3748;
  font-weight: 600;
  margin: 0;
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

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

  .main-content {
    margin-left: 0;
  }
}

.card {
  transition: transform 0.2s ease-in-out;
}

.card:hover {
  transform: translateY(-2px);
}

.hover-lift {
  transition: all 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

