/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Poppins', Arial, sans-serif;
  /* background-color: #ffffff; */
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Container / Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
}

/* Headings */
h1, h2, h3, h4, h5 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* Buttons */
button, .btn {
  background: #4461d7;
  color: #fff;
  border: none;
  padding: 10px 30px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  /* transition: background 0.2s ease; */
}
button:hover, .btn:hover {
  background: #4461d7;
}

/* Responsive Grid (example for cards, lists, etc.) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

/* ===== MODAL STYLES ===== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1999;
  display: none;
}

.modal {
  position: fixed;
  top: 50%; 
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  width: 90%;
  max-width: 600px;
  z-index: 2000;
  display: none;
  flex-direction: column;
  overflow: hidden; 
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, calc(-50% - 20px)); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

.modal-body {
  padding: 1rem;
  max-height: 70vh;
  /* overflow-y: auto; */
}

.close-modal {
  padding: 0px 16px;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  /* line-height: 0; */
  color: #ffffff;
  background: #4461d7;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Phones (Portrait) */
@media (max-width: 600px) {
  body {
    font-size: 14px;
  }

  .container {
    padding: 0.5rem;
  }

  .modal {
    top: 55px;
    left: 21px;
    right: 0;
    bottom: 0;
    transform: none;
    width: 92%;
    height: 80%;
    border-radius: 16px 16px 16px 16px;
  }

  @keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }

  .modal-body {
    max-height: calc(100% - 60px);
  }
}

/* Tablets */
@media (min-width: 601px) and (max-width: 1024px) {
  body {
    font-size: 15px;
  }

  .container {
    padding: 1rem 1.5rem;
  }

  .modal {
    width: 80%;
    max-width: 700px;
  }
}

/* Desktops */
@media (min-width: 1025px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 2rem;
  }
}
/* Base sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  background: #fff;
  box-shadow: 2px 0 8px rgba(0,0,0,0.15);
  z-index: 3000;
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 1rem;
}
.sidebar:hover {
    background: #1b3161;
}
/* Default: hidden on small screens */
.sidebar {
  width: 250px;
  transform: translateX(-100%);
}

/* When open (mobile toggle) */
.sidebar.open {
  transform: translateX(0);
}

/* Overlay for mobile */
.overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: none;
}
.overlay.active {
  display: block;
}

/* Sidebar header */
.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* margin-bottom: 1rem; */
}
.sidebar-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #000;
}

/* Nav list */
.sidebar nav ul {
  list-style: none;
  /* margin-top: 15px; */
}
.sidebar nav ul li {
  margin-bottom: 1.3rem;
}
.sidebar nav ul li a.hometabjq{
  margin-top: 1.3rem;

}
.sidebar nav ul li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  padding: 5px 11px;
}
.sidebar nav ul li a:hover {
    color: #ffffff;
    padding: 11px 14px;
    margin: 0px;
}
/* ===== Responsive ===== */

/* Tablets + Desktop: always visible */
@media (min-width: 769px) {
  .sidebar {
    transform: translateX(0);   /* always visible */
    position: relative;         /* behave like part of layout */
    width: 250px;
    box-shadow: none;
  }
  .overlay {
    display: none !important;   /* no overlay on desktop */
  }
  .sidebar-close {
    display: none;              /* no close button on desktop */
  }
}
.clients-table-wrapper {
    /* overflow: scroll; */
}
.dropdown-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(240, 240, 240, 0.6); /* semi-transparent light grey */
  z-index: 999; /* below dropdown menu */
  display: none;
}
/* Base dropdown styles */
.dropdown {
  position: relative;
  display: inline-block;
  z-index: 4000;
} 
/* Show dropdown in open state */
.dropdown.open .dropdown-menu {
  display: block;
}

/* Dropdown items */
.dropdown-item {
  padding: 0.7rem 1.5rem !important;
  display: block;
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
}

.dropdown-item:hover {
  background: #384966;
}
 
 

 /* Quick Add Dropdown Menu */
.dropdown-menu {
  display: none; /* hidden by default */
  position: absolute; /* absolute relative to dropdown button */
  top: 100%; /* below button */
  left: 0;
  background: #03153e;
  /* border: 1px solid #ddd; */
  /* border-radius: 6px; */
  padding: 5px 0;
  list-style: none;
  min-width: 235px;
   /* must be above sidebar and header */
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Show menu when open */
.dropdown.open .dropdown-menu {
  display: block;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .dropdown-menu {
    position: fixed; /* ensure above sidebar */
    top: 60px; /* adjust based on header height */
    left: 10px;
    right: 10px;
    width: auto;
    border-radius: 10px;
    max-height: 60vh;
    overflow-y: auto;
    z-index: 3000;
  }
}
button#quickAddDropdown:after {
    content: "\25be";
}

.btn-cancel {
    padding: 12px 30px;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
    color: #ffffff;
    background: #4461d7;
    margin-top: 14px;
}
a.quick-add {
    background: #0d2355;
}


.breadcrumb {
  display: flex;
  justify-content: space-between; /* left + right alignment */
  align-items: center;
  background: #dce8fb;
  padding: 8px 15px;
  /* border-radius: 6px; */
  margin-bottom: 15px;
}

.breadcrumb-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-right .quick-add {
  display: inline-block;
  padding: 6px 12px;
  background: #0b3799;
  color: #fff;
  font-size: 0.9rem;
  border-radius: 6px;
  text-decoration: none;
}

.breadcrumb-right .quick-add i {
  margin-right: 5px;
}

.breadcrumb-right .quick-add:hover {
  background: #0f2b4a;
}

h2.casehead 
 {
    font-size: 15px;
    margin-left: 11px;
    /* background: #f6f6f6; */
    padding: 5px 5px;
    color: #575656;
}

.tab-content {
    /* margin-left: 10px; */
}

/*//form steppers*/

.stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0 25px;
  position: relative;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
  font-size: 14px;
  color: #777;
}

.step::before {
  content: attr(data-step);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #555;
  font-weight: bold;
  margin-bottom: 5px;
}

.step.active::before {
  background: #3b82f6; /* blue highlight */
  color: #fff;
}

.step span {
  display: block;
  margin-top: 5px;
  font-size: 12px;
}

/* line connector */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 14px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: #e0e0e0;
  z-index: -1;
}

.step.active ~ .step::after {
  background: #e0e0e0; /* keep others grey */
}


/*// modal projeact add form*/
/* Form grid (already from before) */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 6px;
  color: #333;
  margin-top: 10px;
}

.form-group input,.form-group select,
.form-group textarea {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}

.form-group.full-width {
  grid-column: span 2;
}

@media (max-width: 767px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
}
.project-desc a, .project-name a {
    color: #666;
    text-decoration: none;
}
.project-desc a:hover, .project-name a:hover {
    color: #3b82f6; 
}
.project-name:hover ~ .project-icon,
.project-desc:hover ~ .project-icon {
  background-color: #1d4ed8;
}
 
.searchmodal button:hover {
    background: none;
    color: #0b3799;
    border-bottom: 2px solid #0b3799;
}
 
hr {
    margin-bottom: 20px;
}

.modal-actions {
    margin-top: 15px;
}
span#selectedMembers {
/*    display: block;*/
    background: #f3f3f3;
    padding: 5px 10px;
    border-radius: 15px;
}
select#teamSelect option {
    padding: 3px 0px;
}
.dropdown-menu li {
    margin-bottom: 0px !important;
}
i.fa.fa-bars {
    font-size: 17px;
}
.sidebar i.fa.fa-house {
    padding-top: 31px;
}
.custom-select-trigger:hover, .main_cont .form-select:hover {
    background: #ffffff;
    border: 1px solid #4461d7 !important;
}
.form-select {
    display: block;
    width: 100%;
    padding: .375rem 0.45rem .375rem 0.45rem;
    -moz-padding-start: calc(0.75rem - 3px);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.8;
    color: #ffbf00;
    background-color: #212529;
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: .375rem;
    transition: border-color .15s 
ease-in-out, box-shadow .15s 
ease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
a.editbutton {
    background: #0b3799;
    color: #ffffff;
    padding: 4px 8px 6px 10px;
    border-radius: 6px;
    font-size: 13px;
}
table#projectTable {
    /* text-align: center; */
}
img.logoimage {
    width: 58px;
    margin-right: 10px;
}
td.text-center {
    text-align: center;
}
a {
    text-decoration: none;
}
.fa .fa-times {
    font-size: 16px;
}