/* Global Styles */
body {
  padding-top: 60px; /* Offset for the fixed navbar */
  background-color: #fafafa;
}

.navbar {
  padding: 0.8rem 2rem;
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
}

.form-control.search-bar {
  border-radius: 25px;
  border: 1px solid #ddd;
  box-shadow: none; /* Remove shadow */
}

.btn-outline-primary {
  border-radius: 25px;
  font-weight: bold;
}

.profile-picture {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 2px solid #ddd;
}

h2 {
  font-size: 2rem;
  font-weight: bold;
}

h5 {
  font-weight: bold;
}

p {
  font-size: 1rem;
}

.btn-outline-primary {
  font-size: 0.9rem;
  font-weight: 600;
}

.post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.post-image:hover {
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

/* Adjust spacing for smaller screens */
@media (max-width: 576px) {
  h2 {
    font-size: 1.5rem;
  }

  .profile-picture {
    width: 120px;
    height: 120px;
  }

  .post-image {
    margin-bottom: 1.5rem;
  }
}

/* Custom Search Form Styles */
.search-form {
  position: relative;
}

.search-input {
  border-radius: 25px;
  padding: 0.6rem 1.5rem;
  border: 1px solid #ddd;
  box-shadow: none; /* Remove shadow */
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: none; /* Remove shadow */

}

.search-button {
  border-radius: 25px;
  padding: 0.6rem 1.5rem;
  font-weight: bold;
  border: 2px solid #007bff;
}

.search-button:hover {
  background-color: #007bff;
  color: white;
  border-color: #0056b3;
  transition: background-color 0.3s ease;
}

/* Perfectly Round Image */
.rounded-circle-image {
  width: 200px; /* Taille personnalisable */
  height: 200px; /* Taille personnalisable */
  border-radius: 100%; /* Assure que l'image est circulaire */
  margin-right: 50px;
}

/* Table Styles */
.table {
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
}

.table thead th {
  background-color: #343a40;
  color: white;
  text-align: center;
  font-weight: bold;
}

.table td, .table th {
  vertical-align: middle;
  padding: 1rem;
  text-align: center;
}

.table tbody tr:hover {
  background-color: #f1f1f1; /* Change color on hover */
  transition: background-color 0.3s ease;
}

/* Add border-radius and make the table responsive */
.table-bordered {
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
}

.table-bordered th, .table-bordered td {
  border: 1px solid #ddd;
}

.table-responsive {
  border-radius: 10px;
  overflow: hidden;
}

.form-row {
  margin-bottom: 1.5rem;
}

/* Select box animations and styling */
.animated-select {
  border-radius: 25px;
  padding: 5px;
  border: 1px solid #ddd;
  font-size: 1.1rem;
  background-color: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  height: 50px;
}

.animated-select:focus {
  border-color: #007bff;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.5); /* Add glow effect */
  outline: none;
}

/* Button animation */
.filter-btn {
  border-radius: 25px;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  font-weight: bold;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.filter-btn:hover {
  background-color: #0056b3;
  box-shadow: 0 0 12px rgba(0, 123, 255, 0.6); /* Button glow effect */
  transition: box-shadow 0.3s ease;
}

.filter-btn:focus {
  outline: none;
}

@media (max-width: 768px) {
  .animated-select, .filter-btn {
    font-size: 1rem;
    padding: 0.6rem;
  }
}


/* Post card styling */
.post-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.card-title {
  font-weight: bold;
  font-size: 1.5rem;
}

.card-text {
  font-size: 1rem;
  color: #555;
}

.btn-primary {
  border-radius: 25px;
  padding: 0.5rem 1.5rem;
  font-weight: bold;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  background-color: #0056b3;
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

/* Profile Picture Container Styles */
.profile-section {
  position: relative;
  margin-right: 20px;
}

.profile-picture-container {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 50px;
}

.profile-picture {
  width: 35px;
  height: 35px;
  border-radius: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.profile-picture-container:hover .profile-picture {
  transform: scale(1.1); /* Slight zoom effect on hover */
}

.edit-icon {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: #007bff;
  border-radius: 100%;
  padding: 5px;
  color: white;
  font-size: 0.8rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
 
}

.profile-picture-container:hover  .edit-icon {
  opacity: 1;
  visibility: visible;
}

/* Block Styling for Lessons, Exercises, and Corrections */
.lesson-block, .exercise-block, .correction-block {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #ddd;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effect */
.shadow-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Block Title Styling */
.lesson-title, .exercise-title, .correction-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #4b4c4e;
  margin-bottom: 0.5rem;
}

/* Block Description Styling */
.lesson-description, .exercise-description, .correction-description {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .lesson-block, .exercise-block, .correction-block {
    padding: 15px;
  }
}


