* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

body,
html {
  height: 100%;
  background-color: #f7f7f7;
}
.container {
  display: flex;
  height: 100vh;
}

/* Sidebar toggle icon in header */
.sidebar-toggle {
  font-size: 24px;
  color: #333;
  cursor: pointer;
  display: none; /* by default hidden on desktop */
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* padding: 12px 0; */
  margin-bottom: 12px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 999;
}

.sidebar {
  width: 200px;
  height: 100vh;
  background-color: #fff;
  border-right: 1px solid #eee;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 10px 0 0 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  padding: 20px 0;
  box-shadow: 10px 0 0px rgba(0, 0, 0, 0.1);
}
.logo-section {
  text-align: center;
  padding: 0 20px;
}
.logo-section img {
  width: 150px;
  height: auto;
}
.logo-section hr {
  margin: 15px auto 0;
  width: 80%;
  border: none;
  border-top: 1px solid #eee;
}
.menu {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 20px;
  flex-grow: 1;
}
.menu a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #555;
  padding: 10px 15px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
  border-radius: 5px;
  overflow: hidden;
  z-index: 1; /* important */
}
.menu a.active::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 5px;
  background-color: #00ded5;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}
.menu a.active::before,
.menu a:hover::before {
  opacity: 1;
}
.menu a.active {
  background: linear-gradient(to right, #00ded5, #ffffff);
  color: #000;
  /* font-weight: ; */
}
.menu a i {
  font-size: 1.2rem;
}
.menu a:hover {
  background-color: #f0f0f0;
}
.logout {
  padding: 20px;
}
.logout a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #d60000;
  font-weight: bold;
  font-size: 0.95rem;
  transition: color 0.3s;
}
.logout a i {
  font-size: 1.2rem;
}
.logout a:hover {
  color: #b00000;
}

.right-page {
  padding: 10px 30px;
  flex: 1;
  background-color: #fff;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
}
.profile-img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ddd;
  /* cursor: pointer; */
}
.right-page h1 {
  font-size: 1.4rem;
  font-weight: bold;
  margin: 15px 0;
}
.right-page hr {
  border: none;
  border-top: 1px solid #eee;
  margin-bottom: 20px;
}
.tabs-search {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}
.tabs a {
  color: #555;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
}
.tab {
  flex: 1;
  padding: 8px 24px;
  min-width: 100px;
  text-align: center;
  border: 1px solid #eee;
  border-radius: 5px;
  background-color: #f8f8f8;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}
.tabs-wrapper {
  position: relative;
  display: inline-block;
}

.tabs-wrapper::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  background-color: #f8f8f8;
  border-radius: 8px;
  z-index: 0;
}
.tabs {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}
.tab.active {
  background-color: #00ded5;
  color: #000;
  font-weight: 500;
  border: none;
}
.tab:hover {
  background-color: #00ded5;
}

.search-box {
  position: relative;
  max-width: 250px;
  flex: 1;
}
.search-box input {
  width: 100%;
  padding: 10px 40px 10px 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.search-box i {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
}
.table-container {
  overflow-x: auto;
  flex: 1;
  max-height: 400px;
  border: 1px solid #eee;
  border-radius: 5px;
  margin-bottom: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
table thead {
  background-color: #f8f8f8;
}
table th,
table td {
  padding: 18px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
  color: #333;
}
table th {
  /* font-weight: 600; */
  font-size: 14px;
}
tbody td {
  font-size: 14px;
  color: #575757;
}
table td i {
  cursor: pointer;
  color: #555;
  transition: color 0.3s;
}

table td i:hover {
  color: #00ded5;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
}

.pagination span {
  color: #666;
  font-size: 12px;
}
.page-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}
.page-controls select {
  padding: 10px 35px 10px 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff
    url('data:image/svg+xml;utf8,<svg fill="%23666" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>')
    no-repeat right 10px center;
  background-size: 16px;
  cursor: pointer;
}
.page-controls button {
  padding: 8px 12px;
  border: none;
  background-color: #fff;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s;
}
.page-controls button.page-number {
  border: 1px solid #ccc;
}
.page-controls button.page-number:hover {
  border: 1px solid #ccc;
  background-color: #00ded5;
  color: white;
}
.page-controls button.active {
  background-color: #00ded5;
  color: #fff;
  border: none;
}
.page-controls button:hover {
  background-color: #eee;
  color: #000;
  border: none;
}
.action-icon {
  position: relative;
  width: 24px;
  height: 24px;
  background-color: #f0f0f0;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.action-icon i {
  position: absolute;
  font-size: 16px;
  color: #555;
}
.modal-overlay {
  background: rgba(0, 0, 0, 0.3);
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal {
  background: #ffffff;
  border-radius: 16px;
  width: 420px;
  padding: 40px 30px;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  animation: fadeIn 0.3s ease;
}
.modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: #e0fffc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-icon i {
  font-size: 32px;
  color: #00d6c9;
}
.modal h2 {
  font-size: 20px;
  font-weight: bold;
  color: #1e1e1e;
  margin-bottom: 10px;
  margin-top: 45px;
}
.modal p {
  font-size: 14px;
  color: #6f6f6f;
  margin-bottom: 30px;
}
.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.btn {
  padding: 12px 32px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.btn-no {
  background-color: #f0f0f0;
  color: #444444;
}
.btn-yes {
  background-color: #00d6c9;
  color: #ffffff;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Login page---- */

/* * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

body, html {
  height: 100%;
  background-color: #fff;
}

.container {
  display: flex;
  min-height: 100vh;
} */

/* LEFT SIDE IMAGE */
.left-side {
  flex: 1;
  display: flex;
  padding-left: 25px;
  padding-top: 25px;
  overflow: hidden;
}

.left-side img {
  width: 90%;
  height: 100vh;
  object-fit: cover;
  border-radius: 25px;
}

/* RIGHT SIDE FORM */
.right-side {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
}

.logo {
  text-align: center;
  margin-bottom: 30px;
}
.logo img {
  width: 125px;
  height: 125px;
}
.logo h1 {
  color: #004d66;
  margin-top: 10px;
}
.logo .tagline {
  font-size: 0.9rem;
  color: #777;
}
.logo-icon {
  font-size: 48px;
  color: #00cfc7;
}
.input-password {
  position: relative;
}
.input-password i.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #888;
  font-size: 20px;
}
.right-side h2 {
  text-align: center;
  margin-bottom: 10px;
}
.right-side p {
  text-align: center;
  margin-bottom: 30px;
  color: #666;
}
form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
label {
  font-size: 0.9rem;
  color: #333;
}
.input-group {
  display: flex;
  align-items: center;
  background-color: #f7f7f7;
  border-radius: 10px;
  border: 1px solid #aaa;
  overflow: hidden;
  padding: 5px 0;
}
.country-box {
  display: flex;
  align-items: center;
  background-color: #f7f7f7;
  padding: 8px 12px;
}
.flag-dropdown {
  display: flex;
  align-items: center;
  gap: 5px;
}
.flag-dropdown img {
  width: 15px;
  height: 10px;
  object-fit: cover;
  /* border: 1px solid #888; */
}
.flag-dropdown select {
  border: none;
  background: transparent;
  font-size: 1rem;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
}
.flag-dropdown .arrow {
  font-size: 0.5rem;
  color: #555;
}
.divider {
  width: 1px;
  height: 20px;
  background-color: #888;
  margin: 0 8px;
}
.country-code {
  font-size: 1rem;
  color: #333;
}
.vertical-separator {
  height: 30px;
  width: 1px;
  background-color: #f7f7f7;
}
.input-group input {
  flex: 1;
  border: none;
  padding: 10px;
  font-size: 1rem;
  background-color: #f7f7f7;
  outline: none;
}
.input-password {
  display: flex;
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
}
.input-password input {
  flex: 1;
  border: none;
  padding: 15px;
  outline: none;
  background-color: #f7f7f7;
}

.input-password button {
  border: none;
  background: #f7f7f7;
  padding: 10px;
  cursor: pointer;
}
.forgot {
  text-align: right;
}
.forgot a {
  color: #004d66;
  text-decoration: none;
  font-size: 0.9rem;
}
.login-btn {
  background-color: #00ded5;
  border: none;
  padding: 15px;
  color: black;
  font-size: 1rem;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}
.login-btn:hover {
  background-color: #00bdb6;
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  z-index: 999;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.addprescription {
  display: flex;
  align-items: center;
  gap: 12px;
}

.back-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-decoration: none;
}

.back-btn i {
  font-size: 20px;
  color: #000;
}

.Health {
  display: flex;
  gap: 12px;
  margin-left: auto;
}

.btn-custom {
  background-color: #13e0e0;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  color: #000;
  white-space: nowrap;
}

.btn-custom:hover {
  background-color: #0ccfcf;
}

.profile-card {
  width: 100%;
  max-width: 1000px;
  margin: auto;
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  font-family: Arial, sans-serif;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.profile-pic {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.name {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
}

.location {
  margin: 4px 0 0;
  font-size: 14px;
  color: #555;
}

.icon {
  margin-right: 4px;
}

hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 16px 0;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  height: 160px;
}

.detail span {
  color: #666;
  font-size: 14px;
}
.detail {
  font-size: 14px;
  font-weight: 400;
  color: #444;
}

.consult-section {
  width: 100%;
  margin: 40px auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  text-align: center;
}
.no-consults img {
  max-width: 100%;
  margin-bottom: 20px;
}
.no-consults p {
  font-size: 20px;
  font-weight: 600;
  color: #222;
}

.tab-buttons {
  display: flex;
  justify-content: flex-start;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
  padding: 5px;
  width: fit-content;
}

.tab-btn {
  padding: 12px 30px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.tab-btn.active {
  background-color: #00d6cf;
  color: #000;
}

.consult-section {
  width: 100%;
  margin: 30px auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
  font-family: "Segoe UI", sans-serif;
  padding: 20px;
}

.header-bar {
  display: flex;
  align-items: center;
  background: #e6fbfc;
  padding: 15px;
  font-size: 20px;
  font-weight: bold;
  border-radius: 12px 12px 0 0;
}

.header-bar a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #000;
  font-weight: 600;
  font-size: 18px;
}

.back-arrow i {
  font-size: 22px;
}

.back-arrow {
  margin-right: 10px;
  font-size: 22px;
}

.tab-menu {
  display: flex;
  justify-content: space-between;
  background: #f9f9f9;
  border-radius: 10px;
  padding: 10px;
  margin: 20px 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
}

.tab {
  flex: 1;
  padding: 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.3s;
}

.tab.active {
  background-color: #0ddbd5;
  color: #111;
  font-weight: bold;
}

.consult-form {
  width: 100%;
  margin: 30px auto;
  font-family: "Segoe UI", sans-serif;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
}

label {
  font-size: 16px;
  margin-bottom: 8px;
  text-align: start;
  color: #222;
}

.input-box {
  background: #f6f6f6;
  border: none;
  border-radius: 10px;
  padding: 12px 36px 12px 14px;
  font-size: 15px;
  width: 100%;
  box-sizing: border-box;
  background-size: 12px;
}
.input-box-time {
  background: #f6f6f6;
  border: none;
  border-radius: 10px;
  padding: 12px 36px 12px 14px;
  font-size: 15px;
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="gray"><polygon points="0,0 16,0 8,10"/></svg>');
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .left-side {
    display: none;
  }

  .right-side {
    padding: 20px;
    max-width: 100%;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: -220px;
    height: 100%;
    width: 200px;
    background-color: #fff;
    transition: left 0.3s ease;
    z-index: 1000;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    border-radius: 0px;
  }
  .sidebar.open {
    left: 0;
  }
  .sidebar-toggle {
    display: block;
  }
  .right-page {
    padding: 10px 15px;
  }
  .table-container {
    height: 200px;
    overflow-y: auto;
  }
  .pagination {
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    flex-wrap: wrap;
  }

  .tabs-search {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .tabs-wrapper,
  .search-box {
    width: 100%;
  }
  .tabs {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 5px;
  }

  .tab {
    flex: 1 1 auto;
    padding: 8px 6px;
    font-size: 11px;
    min-width: 24px;
    text-align: center;
    white-space: nowrap;
    height: 36px;
    line-height: 20px;
  }
  .search-box {
    width: 100%;
    max-width: 300px;
    margin: 10px auto 0;
    display: flex;
    align-items: center;
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 8px 12px;
    box-sizing: border-box;
  }
  .search-box input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px;
    font-size: 14px;
    color: #333;
    outline: none;
  }

  .search-box i {
    font-size: 18px;
    color: #666;
    margin-right: 8px;
  }
}

@media screen and (max-width: 768px) {
  .header-row {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Fix vertical alignment */
    gap: 12px;
  }

  .header-left {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .header-left h1 {
    font-size: 20px;
    margin: 0;
  }

  .profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }

  .Health .btn-custom {
    font-size: 12px;
    padding: 10px 16px;
    border-radius: 6px;
    line-height: 1.2;
  }

  .Health .btn-custom i {
    font-size: 14px;
  }

  .profile-card {
    min-height: 620px;
    padding: 15px;
    box-sizing: border-box;
  }

  .details-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .Health .btn-custom i {
    font-size: 14px;
  }

  .header-left {
    display: flex;

    align-items: center;
  }

  .header-left h1 {
    font-size: 20px;
  }

  .profile-img {
    width: 8px;
    height: 8px;
  }

  .addprescription {
    align-items: center;

    margin-top: -20px;
  }

  .addprescription h1 {
    font-size: 20px;
    margin: 0;
  }

  .Health {
    width: 100%;

    gap: 10px;
    justify-content: flex-start;
  }

  .btn-custom {
    width: 100%;
    font-size: 14px;
  }

  .profile-card {
    width: 100%;
    height: 900px;
    padding: 15px;
    box-sizing: border-box;
  }

  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 10px;
  }

  .consult-section {
    margin-top: 20px;
  }

  .tab-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .tab-btn {
    width: 100%;
  }

  .no-consults img {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
  }

  .no-consults p {
    text-align: center;
  }

  .sidebar-toggle {
    display: block;
    font-size: 22px;
  }

  .sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    width: 260px;
    height: 100vh;
    background-color: #fff;
    transition: left 0.3s ease;
    z-index: 1000;
  }

  .sidebar.open {
    left: 0;
  }

  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background: rgba(0, 0, 0, 0.4);
    z-index: 900;
  }
}

@media screen and (max-width: 768px) {
  .consult-section {
    padding: 15px;
  }

  .header-bar a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
  }

  .back-arrow i {
    font-size: 22px;
  }

  .header-title {
    font-size: 18px;
    font-weight: bold;
  }

  .tabs {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .tab {
    text-align: center;
    background-color: #f1f1f1;
    border-radius: 6px;
    font-size: 14px;
  }

  .form-row {
    flex-direction: column;
    display: flex;
    gap: 20px;
  }

  .form-group {
    width: 100%;
  }

  .input-box,
  .input-box-time {
    width: 94%;
    padding: 10px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
  }

  .input-box:focus,
  .input-box-time:focus {
    outline: none;
    border-color: #007bff;
  }

  .Health {
    display: flex;
    justify-content: center;
  }

  .btn-custom {
    width: 100%;
    max-width: 200px;
    padding: 10px;
    font-size: 16px;
    border-radius: 6px;
  }
}
