* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
}
p {
  margin: 0;
  padding: 0;
}
.sidebar {
  width: 250px;
  background-color: #076452;
  position: fixed;
  height: 100%;
  overflow-y: auto;
  transition: width 0.3s ease;
}
.sidebar.collapsed {
  width: 70px;
  overflow-x: hidden;
}
.content {
  transition: margin-left 0.3s ease, width 0.3s ease;
  margin-left: 250px;
  width: calc(100% - 250px);
  gap: 20px;
  box-sizing: border-box;
  /* padding: 10px 20px; */
}
.sidebar.collapsed ~ .content {
  margin-left: 70px;
  width: calc(100% - 70px);
}
.title_menu {
  width: 240px;
  padding: 10px 0;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  align-items: center;
}
.title_menu img {
  width: 75%;
}
.cross_button {
  background-color: #076452;
  border: none;
  color: white;
  border-radius: 10px;
  padding: 10px;
  margin: 0px 5px 0px 0px;
  flex: 1;
  cursor: pointer;
}
.cross_button:hover {
  background-color: #035242;
}
.border-line {
  border-top: 1px solid rgb(183, 178, 178);
  margin-bottom: 5px;
}
.body_menu {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.menu-item {
  position: relative;
  padding: 10px 15px;
  cursor: pointer;
  font-weight: bold;
  color: white;
  border-radius: 5px;
  width: 220px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transition: width 0.3s ease;
}
.menu-item.collapsed {
  width: 70px;
  padding: 0;
  justify-content: center;
}
.menu-item  {
  color: white;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}
.menu-item:hover {
  background-color: #035242;
  color: white;
}
.menu-item:hover  {
  color: white;
  text-decoration: none;
}
.menu-item  .fas {
  margin: 0px 15px 0px 5px;
  padding: 0;
  font-size: 18px;
  line-height: 18px;
}
.body_menu .menu-item  span {
  display: inline;
}
.title_menu img, .title_menu .cross_button, .title_menu .toggle-icon {
  transition: opacity 0.3s ease;
}
.sidebar.collapsed .body_menu .menu-item {
  width: 70px;
  padding: 0;
  justify-content: center;  
  border-radius: 5px;
}
.sidebar.collapsed .body_menu .menu-item  span {
  display: none;
}
.sidebar.collapsed .body_menu .menu-item  i {
  font-size: 20px;
  margin: 10px 0px;
}
.sidebar.collapsed .title_menu img,
.sidebar.collapsed .title_menu .cross_button {
  display: none;
}
.sidebar.collapsed .title_menu .toggle-icon {
  display: inline-block; 
}
.toggle-icon {
  display: none;
  justify-content: center;
  align-items: center;
  border: none;
  background-color: #076452;
  cursor: pointer;
  width: 70px;
  padding: 10px 15px;
}
.toggle-icon:hover {
  background-color: #035242;
}
.toggle-icon .fas {
  padding: 0;
  margin: 0;
  font-size: 18px;
  line-height: 18px;
  border: none;
  color: white;
}
.menu-item.active {
    background-color: #024e34; /* Highlight color */
    color: white;
}
.menu-item.active a {
    color: white;
    font-weight: bold;
}
.content_title{
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-bottom: 1px solid rgb(183, 178, 178);
  height: 68px;
  padding: 0px 20px;
  position: sticky; 
  top: 0;
  background: #fff;
  z-index: 1000;
}
.content_title_left h2{
  margin: 0;
  padding: 0;
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
  color: rgb(7, 100, 82);
}
.content_title_left p{
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: rgb(71, 107, 100);
}
.menu-item.active { 
    background-color: #228542; /* highlight color */ 
    border-radius: 5px; 
    font-weight: bold; 
}
.dashboard_lead_ticket{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 0px 20px;
  margin-top: 20px;
}
.dashboard_lead_ticket_sec{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.dashboard_button {
  border: 1px solid rgb(201, 197, 197);
  padding: 5px 12px;
  border-radius: 10px;
  display: flex; /* ensures icon + text align nicely */ 
  align-items: center; /* vertically center icon and text */ 
  gap: 6px; /* space between icon and text */
  text-decoration: none; /* remove underline */ 
  color: inherit; 
  cursor: pointer;  
}
.dashboard_button:hover { 
  background-color: #f0f0f0; 
}
.dashboard_button_lead{
  background-color: #4F8FF4;
  color: #FFFFFF;
}
.dashboard_button_lead:hover { 
  background-color: #3a6fd1; 
  color: #FFFFFF;
}
.dashboard_button_ticket{
  color: black;
}

.dashboard_button_ticket:hover { 
  color: black;
}

.dashboard_button svg { 
  width: 16px; 
  height: 16px; 
}
.dashboard_button { 
  text-decoration: none !important; 
}

.dashboard_row{
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
  gap: 20px; 
  padding: 20px 20px;
}
.no-underline { 
  text-decoration: none; 
  color: inherit;
}
.no-underline:hover { 
  text-decoration: none; 
}
.dashboard_display{
  border-radius: 12px;
  height: 160px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); 
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dashboard_display:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12); 
}
.dashboard_total {
  color: gray;
  border: 1px solid rgb(165, 161, 161);
}
.dashboard_new,
.lead-hot,
.ticket-query {
  background-color: #fff3e0;
  color: #ef6c00;
  border: 1px solid #ce6c1d;
}

.dashboard_connected,
.lead-warm,
.ticket-complain {
  background-color: #e3f2fd;
  color: #1565c0;
  border: 1px solid #2b66a9;
}

.dashboard_qualified,
.lead-cold,
.ticket-feedback {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #498e4e;
}

.dashboard_proposal {
  background-color: #f3e5f5;
  color: #6a1b9a;
  border: 1px solid #75389b;
}

.dashboard_won {
  background-color: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #36803b;
}

.dashboard_lost {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #bc3a3a;
}

.dashboard_garbage {
  background-color: #f5f5f5;
  color: #424242;
  border: 1px solid #9e9e9e;
}
.text-temp-hot { 
  color: #FF4500;
}
.text-temp-warm{
  color: orange;
}
.text-temp-cold{
  color: orange;
}

.dashboard_display_title{
  display: flex;
  justify-content: space-between; 
  align-items:center ; 
  width: 100%;
  margin-bottom: 10px;
}
.dashboard_display_title svg{
  /* color: rgb(7, 100, 82); */
  width: 22px;
  height: 22px;
}
.dashboard_display_title h6{
  font-size: 18px;
  font-weight: 600;
  color: rgb(7, 100, 82);
  margin: 0;
}
.dashboard_display_value{
  font-size: 28px;
  font-weight: 700;
  color: rgb(71, 107, 100);
  margin-bottom: 8px;
}
.dashboard_display_indi_title {
  font-size: 13px;
  font-weight: 500;
  color: rgb(65, 90, 85);
}

.dashboard_lead { 
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 10px; 
  margin: 0px 10px;
}

@media (max-width: 700px) { 
  .dashboard_lead { 
    grid-template-columns: 1fr; /* single column */ 
    grid-template-rows: auto auto; /* left then right stacked */
  } 
}
.section_border{
  border: 1px solid rgb(201, 196, 196);
  border-radius: 10px;
  margin-bottom: 20px;
}
.section_padding{ 
  padding-bottom: 20px;
}
.lead_title{
  font-size: 24px;
  font-weight: 600;
  color: #024e34;
}
.dashboard_lead_section_title{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin: 20px 25px;
}

/* dashboard_lead_section_view_all{
  border: 1px solid rgb(253, 253, 253);
  padding: 5px 12px;
  cursor: pointer;
  text-decoration: none;
} */

a.dashboard_lead_section_view_all { 
  border: 1px solid rgb(253, 253, 253);
  padding: 5px 12px; 
  cursor: pointer; 
  text-decoration: none; /* <-- apply here */ 
  color: inherit; /* optional: keeps text color consistent */ 
} 
a.dashboard_lead_section_view_all:hover { 
  border: 1px solid rgb(233, 228, 228); 
  background-color: rgb(233, 228, 228); 
  padding: 5px 12px; border-radius: 10px; 
  text-align: center; 
  text-decoration: none;
  color: #000;
}
.dashboard_lead_section_right{
  margin-bottom: 20px;
}

.message_list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message_row {
  background: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: background 0.2s ease;
  display: grid; 
  grid-template-columns: auto 1fr auto auto; /* icon | info | status | date */ 
  align-items: center; 
  gap: 16px;  
}
 
.message_row:hover {
  background: #f9f9f9;
  cursor: pointer;
}

.row_header { 
  width: 250px;
  margin-left: 20px;
} 
 
.row_info {
  display: flex; 
  flex-direction: row; 
  border-bottom: 1px solid #eee;
} 
.row_name { 
  font-size: 20px; 
  font-weight: 600; 
  color: #076452; 
  margin-right: 8px;
}
.row_status { 
  font-size: 14px; 
  font-weight: 500; 
  padding: 2px 6px; 
  border-radius: 4px; 
  text-align: center;
} 


.status-new,
.lead-hot
 {
  background: #e0f7fa;
  color: #006064;
}


.status-contacted {
  background: #e8f5e9;
  color: #2e7d32;
}
.status-closed {
  background: #e8f5e9;
  color: #2e7d32;
}

.status-qualified {
  background: #fff3e0;
  color: #ef6c00;
}

.status-proposal {
  background: #ede7f6;
  color: #4527a0;
}

.status-won {
  background: #e8f5e9;
  color: #1b5e20;
}

.status-closed {
  background: #e8f5e9;
  color: #1b5e20;
}
.status-lost {
  background: #ffebee;
  color: #c62828;
}

.status-unknown {
  background: #eeeeee;
  color: #616161;
}
.margin_side{
  margin: 0px 10px;
}
/*******************/

/*******************/
#searchForm{
  background-color: #FFFFFF;
  padding: 15px 0px;
  margin: 0px 5px ;
  border-radius: 15px;
}
/* #searchTitle, #searchKeyword, #searchType, #searchtracker_id, #searchphone_number, #searchtext, #searchstatus, #searchstartdate, #searchenddate{
 color: rgb(7, 100, 82);
} */

#searchForm input::placeholder{
 /* background-color: #EDE9DE; */
 color: rgb(7, 100, 82);
}

.display_section_top{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin: 0px 20px;
}
.display_section{
  display: flex;
  flex-direction: row;
  /* justify-content: space-between; */
  align-items: center;
  gap: 10px;  
}
#totalCount{
  color: #076452;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: Arial, sans-serif;
    font-size: 14px;
    /* table-layout: fixed; */
}
thead {
    background-color: #4CAF50;
    color: white;
}
/* th, td {
    padding: 12px 5px;
    text-align: center;
    word-wrap: break-word;
    border-bottom: 1px solid #ddd;
    border: 1px solid red;
} */
 .col-flexible{
  text-align: center;
  padding: 12px 5px;
 }
.col-small{
  max-width: 80px;
  text-align: center;
  padding: 12px 5px;
}
tr:hover {
    background-color: #f1f1f1;
}
tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}
tbody tr:nth-child(odd) {
    background-color: #ffffff;
}
.button_svg {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
}
.button_svg_edit{
    color: green;
    
}
.button_svg_edit:hover{
    background-color: green;
    color: white;
}
.button_svg_delete{
    color: red;
}
.button_svg_delete:hover{
    background-color: red;
    color: white;
}


/* Pagination container */
.pagination {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  list-style: none;
  padding: 0;
}

/* Pagination links and spans */
.pagination a{
  display: inline-block;
  margin: 0 5px;
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: #076452;
  font-size: 14px;
  transition: all 0.2s ease-in-out;
}
.pagination span {
  display: inline-block;
  margin: 0 5px;
  border-radius: 4px;
  text-decoration: none;
  color: #076452;
  font-size: 14px;
  transition: all 0.2s ease-in-out;
}

/* Hover effect: apply to li so both a and span change */
.pagination li:hover a,
.pagination li:hover span {
  background-color: #076452;
  color: #fff;
  border-color: #076452;
  cursor: pointer;
}

/* Active page */
.pagination .active span,
.pagination .active a {
  background-color: #076452;
  color: #fff;
  border-color: #076452;
  cursor: default;
}

/* Disabled links */
.pagination .disabled span {
  color: #aaa;
  border-color: #ddd;
  cursor: not-allowed;
  background-color: #f9f9f9;
}

.confirm-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ccc;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: none;
    width: 300px;
    text-align: center;
    border-radius: 8px;
}
.create-popup{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ccc;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: none;
    width: 600px;
    text-align: center;
    border-radius: 8px;
}
.createClientForm{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
  column-gap: 20px;
}

.form-group label{
    width: 100%;
    text-align: left;
    margin: 0;
}
.confirm-actions {
    margin-top: 15px;
    display: flex;
    justify-content: right;
    gap: 20px;
}
.form-group select {
  padding-right: 40px !important;
}
/**********************/
.form-container-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 20px 0px;
}

form#myForm {
    margin: 0px auto;
    padding: 5px 20px 20px 20px;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.width-70 {
  width: 70%;
}
.width-100 {
  width: 100%;
}
form#myForm label.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
     color: rgb(71, 107, 100);
}
form#myForm input[type="text"],
form#myForm input[type="password"]{
    width: 100%;
    padding: 7px 12px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}
form#myForm select{
    width: 100%;
    padding: 7px 12px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    appearance: none;          
    background-color: #fff;
}
form#myForm .custom-select-wrapper {
    position: relative;
}

form#myForm .custom-select-wrapper select {
    width: 100%;
    padding: 7px 12px;
    padding-right: 40px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    height: 40px;
    box-sizing: border-box;
    appearance: none;
    background-color: #fff;
    cursor: pointer;
}
form#myForm .custom-select-wrapper::after {
    content: '';
    position: absolute;
    top: 45%;
    right: 14px;
    width: 0;
    height: 0;
    pointer-events: none;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #555;
    transform: translateY(-50%);
}
.keyword_cover{
  display: flex;
  justify-content: center;
}
#checkKeywordsBtn {
    background-color: #076452;
    color: white;
    border: none;
    padding: 10px 100px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 14px;
    margin-top: 10px;
}
.select-with-arrow {
  /* appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: url('https://cdn-icons-png.flaticon.com/512/60/60995.png') no-repeat right 10px center;
  background-size: 16px; */
  /* min-width: 100px; */
  width: 100%;
  max-width: 150px;
}