@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Saira:ital,wght@0,100..900;1,100..900&display=swap');
*{    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
}
body{
    background-color: #f8f8f8;
}

#history-main{
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-x: auto;
    
}
#historyheading{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
#historyheading>section{
    color: #008994;
    font-weight: bold;
    font-size: 18px;
}
.main-tabs {
    display: flex;
    background-color: #fff;
    overflow-x: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    
    max-width: max-content;
    width: 100%;
    z-index: 1;
    border-radius: 10px 10px 0px 0px;
}

.tab {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    color: #333;
    font-weight: 500;
    gap: 5px;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid #008a946b;
}

.tab i {
    font-size: 20px;
    color: #008994;
    transition: color 0.3s ease;
}
.tab span {
    text-wrap: nowrap;
}

/* Hover animation */
.tab:hover {
    background-color: #f0f9fa;
    transform: translateY(-2px); /* subtle lift effect */
}

.tab:hover i {
    color: #005f66; /* slightly darker for hover */
}


.tab:hover span {
    color: #005f66;
}.tab.active {
    background-color: #008a942a;
    border-bottom: 2px solid #008994;
    border-radius: 10px 10px 0px 0px;
}
.tab.active i{
    color: #008994;
}

.tab.active span {
    color: #008994;
}

    .container {
      background: #fff;
      border-radius: 12px;
      padding: 20px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
      width: 100%;
      overflow-x: auto;
    }

    .header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
    }

    .header h2 {
      margin: 0;
      font-size: 20px;
    }

.filter-box {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.search-box input {
  padding: 7px;
  width: 200px;
  gap: 10px;
  border: 1px solid #878787;
  border-radius: 6px;
}


    select {
      padding: 6px 10px;
      border: 1px solid #ccc;
      border-radius: 8px;
      font-size: 14px;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      margin-top: 15px;
      overflow-x: auto;
    }
    th{
        background-color: #008a941f;
    }

    th, td {
      padding: 12px 10px;
      text-align: left;
      border-bottom: 1px solid #eee;
      font-size: 14px;
    }

    th {
      font-size: 14px;
      color: #555;
    }
.contract-remodulation {
  background-color: #ffe0b2;
  color: #e65100;
}

.contract-independent {
  background-color: #e0f2f1;
  color: #00695c;
}

.contract-residential-apartment {
  background-color: #e3f2fd;
  color: #1565c0;
}

.contract-serviced-apartment {
  background-color: #ede7f6;
  color: #4527a0;
}

.contract-industrial-complex {
  background-color: #fce4ec;
  color: #c2185b;
}

.contract-commercial {
  background-color: #f3e5f5;
  color: #6a1b9a;
}

.contract-farmhouse {
  background-color: #f1f8e9;
  color: #558b2f;
}

.contract-venture-development {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.contract-other {
  background-color: #eceff1;
  color: #455a64;
}

.contract-label {
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  font-weight: 500;
  text-transform: capitalize;
}




    .green-dot { 
      height: 10px; 
      width: 10px;
      border-radius: 50%; 
      background: #37b24d; 
      display: inline-block;
      margin-right: 2px;
    }
    .yellow-dot { 
      height: 10px; 
      width: 10px;
      border-radius: 50%; 
      background: #f59f00;
      display: inline-block;
      margin-right: 2px;
     }
    .red-dot {
      height: 10px; 
      width: 10px;
      border-radius: 50%; 
      background: #e03131; 
      display: inline-block;
      margin-right: 2px;
    }
    .blue-dot {
      height: 10px; 
      width: 10px;
      border-radius: 50%; 
      background: blue; 
      display: inline-block;
      margin-right: 2px;
    }


    .action button {
      background: #4dabf7;
      color: white;
      border: none;
      padding: 6px 12px;
      border-radius: 6px;
      cursor: pointer;
      font-size: 13px;
    }

    .action button:hover {
      background: #339af0;
    }
    .profile {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .profile img {
      width: 35px;
      height: 35px;
      border-radius: 50%;
    }
    .profile>div>span{
      font-weight: 600;
    }

    .residential>span {
      background-color: #e3e5f3a8;
      color: #716ea3;
      font-weight: 600;
      padding: 5px 10px;
      border-radius: 20px;
    }

    .commercial>span {
      background-color: #ffffe2;
      color: #bd9c44;
      font-weight: 600;
      padding: 5px 10px;
      border-radius: 20px;
    }

    .industrial>span {
      background-color: #fff0f2;
      color: #a96376;
      font-weight: 600;
      padding: 5px 10px;
      border-radius: 20px;
    }
    .view-details-btn{
      background-color: transparent;
      border: none;
      outline: none;
      cursor: pointer;
    }
    .view-details-btn>i{
      font-size: 18px;
      color: #005f66;
    }
.pagination {
  margin-top: 15px;
  text-align: center;
}

.pagination button {
  padding: 5px 10px;
  margin: 0 2px;
  border: 1px solid #333;
  background-color: #fff;
  cursor: pointer;
  border-radius: 4px;
}

.pagination button.active {
  background-color: #333;
  color: white;
}

.lead-modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0; top: 20px;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
  }

  /* Modal Content */
  .lead-modal-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px 25px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.3s ease;
    position: relative;
    font-family: 'Segoe UI', sans-serif;
  }

  /* Close Button */
  .lead-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    color: #888;
    cursor: pointer;
    transition: color 0.3s;
  }

  .lead-modal-close:hover {
    color: #e74c3c;
  }

  /* Modal Header */
  #leadModalDetails h3 {
    margin-top: 0;
    font-size: 22px;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
  }

  /* Modal Paragraphs */
  #leadModalDetails p {
    margin: 8px 0;
    font-size: 16px;
    color: #333;
  }

  #leadModalDetails p strong {
    color: #555;
  }

  /* Animations */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
.lead-image-container {
  text-align: center;
  margin-bottom: 15px;
}

.lead-profile-pic {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #ddd;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

@media (max-width:768px) {
  #history-main{
    padding-top: 38px;
  }
}

