*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}



body {
background-color: #f8f9fa; /* light grey background */
font-family: 'Arial', sans-serif;
margin: 0px;
padding: 20px;
}

h2 {
text-align: center;
margin-bottom: 30px;
color: #333;
font-size: 2rem;
}

button,.btn {
cursor: pointer;
border-radius: 5px;
transition: all 0.3s ease;
}

button:hover,.btn:hover {
opacity: 0.9;
}

.container{
max-width: 1200px;
margin: 0 auto;
}

/* Responsive adjustments for small screens */
@media (max-width: 576px) {
body {
    padding: 10px;

}

h2 {
    font-size: 1.5rem;

}
}


.form-card {
background-color: #ffffff;
border-radius: 10px;
box-shadow: 0 4px 8px 6px rgba(0,0,0,0.1);
padding: 20px;
}

.form-title {
font-size: 1.5rem;
font-weight: 600;
 margin-bottom: 15px; 
 /* padding-bottom: 15px; */
color: #222;
}


.form-control {
border-radius: 5px;
padding: 10px;
transition: 0.3s;
border: 1px solid #ccc;
}

.form-control:focus {
border-color: #007bff; /* Bootstrap primary color */
box-shadow: 0 0 5px rgba(0,123,255,0.3);
outline:none;
}

#submitBtn {
margin-top: 10px;
padding: 10px 20px;
font-weight: 500;
}

/* Responsive tweaks for small screens */
@media (max-width: 576px) {
.form-card {
    padding: 15px;
}

#submitBtn {
    width: 100%;
}


#sortSelect{
    width: 30% !important;
}
#searchInput{
    width: 70% !important;
}



}



/* Container grid layout for column display */
#profileContainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Individual cards */
#profileContainer .card {
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  transition: transform 0.2s;
  padding: 15px;
  background-color: #fff;
}

#profileContainer .card:hover {
  transform: translateY(-3px);
}

/* Card body flex (no image now) */
#profileContainer .card-body {
  display: flex;
  flex-direction: column; /* stack content vertically */
  gap: 8px;
}

/* Skill Badges */
.badge-skill {
  margin-right: 5px;
  margin-bottom: 3px;
  font-size: 0.8rem;
  padding: 5px 8px;
  background-color: #007bff;
  color: #fff;
  border-radius: 5px;
}

/* Search & Sort Section */
.search-sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

#searchInput {
  flex: 1;
}

#sortSelect {
  width: auto;
}

/* Buttons inside cards */
#profileContainer .btn {
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
}

/* Update button */
.update-btn {
  background-color: #f8d670; /* yellow */
  color: #000;
  margin-right: 5px;
  width: 60px;

}

.update-btn:hover {
  background-color: #e0a800;
}

/* Delete button */
.delete-btn {
  background-color:rgb(201, 40, 40); /* red */
  color: #fff;
  margin-top: 3px;
  width: 60px;

}

.delete-btn:hover {
  background-color: #b02a37;
}

/* Responsive tweaks */
@media (max-width: 576px) {
  #profileContainer .card-body {
    flex-direction: column;
    gap: 10px;
  }

  .search-sort {
    flex-direction: column;
    gap: 10px;
  }

  #sortSelect {
    width: 100%;
  }
}
