* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {  
  background-color: #ebecf0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

header {
  width: 50%;
  height: 50px; 
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  
}

input {
  width: 50%;
  margin: 0 auto;
  padding: 10px;
  border: none;
  border-radius: 50px;
  outline: none;
}

.btn,
.details { 
  padding: 8px;
  margin: 0 50px;
  border-radius: 50px;
  border: none;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  outline: none;
}

.btn {
  width: 10%;
  background: #9958B6;
}

.btn:last-child {
  background: #E61769;
}

#data-table {
  border-radius: 16px;
  background-color: #fff;
  padding: 24px;
  border:2px solid #edeef1;
  box-shadow: rgba(0,0,0,0.05) 0px 6px 24px 0px, rgba(0,0,0.0.08) 0px 0px 0px 1px;
  text-align: left;
  overflow-x: auto;
}

#data-table table {
  max-width: fit-content;
  border-collapse: collapse;
}

#data-table caption {
  font-size: 1.12rem;
  font-weight: 500;
  text-align: left;
  margin: 8px 0px;
}

#data-table th {
  padding: 20px 16px;
  font-size: 0.875rem;
  color: #a0a7b1;
}

#data-table thead, #data-table tfoot {
  border-top: 2px solid #edeef1;
}

#data-table tfoot {
  margin-top: 16px;  
}

#data-table td {
  padding: 8px 16px;
  vertical-align: middle;
}

#data-table tbody tr:nth-child(odd){
  background-color: #f6f9ff;
}

#data-table tbody tr:hover{
  background-color: #e2ecff;
}

.table-row-count {
  font-size: 0.8rem;
  font-weight: 500;
  background-color: #f1f2f6;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  margin-left: 16px;
  border-radius: 8px;
}

.logo {
  border-radius: 50%;
  width: 30%;
  height: 30%;
  object-fit: cover;
}

.details {
  width: 50%;
  background: #3EAE4A;  
}

.modal-overlay {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  position: fixed;
  top: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 370px;
  width: 100%;
  background: #fff;
  border-radius: 24px;
  padding: 25px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

.profile-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 150px;
  width: 100%;
  border-radius: 24px 24px 0 0 ;
  background-color: #4070f4;
}

.image {
  position: relative;
  height: 150px;
  width: 150px;
  border-radius: 50%;
  padding: 3px;
  background-color: #4070f4;
  margin-bottom: 10px;

}

.image .profile-img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
}

.profile-card .text-data {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333;
}

.text-data .name {
  font-size: 22px;
  font-weight: 500;
}

.text-data .created {
  font-size: 15px;
  font-weight: 400;
}

.profile-card .analytics {
  display: flex;
  align-items: center;
  margin-top: 25px;
}

.analytics .data {
  display: flex;
  align-items: center;
  color: #333;
  padding: 0 20px;
  border-right: 2px solid #e7e7e7;
}

.data i {
  font-size: 18px;
  margin-right: 6px;  
}

.data:last-child {
  border-right: none;
}

.close {
  margin-top: 10px;  
  display:flex;
  align-items: center;
  justify-content: center;
}

.return {
  font-size: 24px; 
  border-radius: 50%;
  background-color: transparent;  
  color: #333;
  text-decoration: none;   
}

.return i:hover {
  opacity: 0.7;
}

@media screen and (min-width: 768px) {
  header {
    width: 70%;   
  }
  
  input {
    width: 60%;
    margin-left: 20px;
  }
  
  .btn {
    width: 15%;
  }
  
  .details {
    width: 70%;
  }
  
  .table-row-count {
    margin: 10px 16px;
  }
  
  .profile-card {
    max-width: 350px;
  }
  
  .profile-card::before {
    height: 140px;
  }
  
  .image {
    height: 140px;
    width: 140px;
  }
  
  .text-data .name {
    font-size: 20px;
  }
  
  .text-data .created {
    font-size: 14px;
  }
}

@media screen and (max-width: 767px) {
  body {
    padding: 8px;
  }
  
  header {
    width: 90%;    
  }
  
  input {
    width: 90%;
  }
  
  .btn {
    width: 30%;
    margin: 0;
  }
  
  .details {
    width: 50%;
    
  }
  
  .table-row-count {
    margin: 10px 0;
  }
  
  .profile-card {
    max-width: 300px;
    padding: 15px;
  }
  
  .profile-card::before {
    height: 120px;
    border-radius: 12px 12px 0 0;
  }
  
  .image {
    height: 120px;
    width: 120px;
  }
  
  .text-data .name {
    font-size: 18px;
  }
  
  .text-data .created {
    font-size: 13px;
  }
  
  .analytics .data {
    padding: 0 10px;
  }
  
  .close {
    margin-top: 5px;
  }
}

@media screen and (max-width: 479px) {
  header {
    width: 90%;
  }
  
  input {
    width: 95%;
  }
  
  .btn {
    width: 40%;
  }
  
  .details {
    width: 95%;
  }
  
  .table-row-count {
    margin: 5px 0;
  }
  
  .profile-card {
    max-width: 250px;
    padding: 10px;
  }
  
  .profile-card::before {
    height: 100px;
  }
  
  .image {
    height: 100px;
    width: 100px;
  }
  
  .text-data .name {
    font-size: 16px;
  }
  
  .text-data .created {
    font-size: 12px;
  }
  
  .analytics .data {
    padding: 0 5px;
  }
  
  .close {
    margin-top: 3px;
  }
}

