.footer-link {
    color: #6c757d;          /* soft gray for natural look */
    text-decoration: none;    /* no underline */
    transition: color 0.3s, transform 0.2s;
}

.footer-link:hover {
    color: #000;             /* darkens slightly on hover */
    transform: translateY(-1px); /* subtle lift for interactivity */
}

.footer {
    font-size: 0.9rem;
}

html, body {
    height: 100%;
    margin: 0;
}

/* Main content expands to push footer down */
main {
    flex: 1;
}

body {
    background-color: #f8f9fa; /* keeps page background soft & neutral */
    font-family: 'Segoe UI', Roboto, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.clickable {
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}

.clickable:hover {
    background-color: #f8f9fa;
}

.view {
    background-color: white;
    color: black;
    border: 1px solid #ccc;
}

button.view.active {
    background-color: #42B0CB !important;
    color: white !important;
    border-color: #338CFF;
}

.text-end {
    position: absolute;
    right: 0;
    margin-right: 10px;
}

.consultation-card {
    transition: box-shadow 0.3s ease;
    border-left: 4px solid #007bff;
    background-color: #f8f9fa;
}

.consultation-card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.record-section {
    border-radius: 10px;
    background-color: #f9f9f9;
}

.float-button {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 20px;
    text-align: center;
}

#add-form-container {
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
}

#org-panel, #doc-panel, .report-segment {
  min-height: 100%;
}

.card {
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  overflow: hidden;
}

/* ==== List Styling ==== */
.list-group-item {
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.list-group-item:hover {
  background-color: #f0f0f0;
}

.list-group-item.active {
  background-color: #0d6efd;
  color: white;
  font-weight: 500;
}

/* ==== Header Styling ==== */
.card-header {
  background-color: #f8f9fa;
  font-weight: bold;
  font-size: 1.1rem;
  border-bottom: 1px solid #dee2e6;
}

/* ==== Report Placeholder Text ==== */
#report-panel p.text-muted {
  font-style: italic;
  font-size: 0.95rem;
  color: #6c757d;
}

/* ==== Report Segments ==== */
.report-segment {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid #e4e4e4;
  border-radius: 0.75rem;
  background-color: #fff;
}

/* ==== Responsive Layout Adjustments ==== */
@media (max-width: 768px) {
  #org-panel, #doc-panel, .col-md-6 {
    flex: 100%;
    max-width: 100%;
  }
}

#editorSelectButton {
  min-width: 60px;
  background: none;
  color: white;
  border: none;
  padding: 4px;
  cursor: pointer;
}


.review-container {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  margin-top: 2rem;
}

.review-container h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.review-list {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.review-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #ccc;
}

.qty {
  float: right;
  font-weight: bold;
}

.confirm-btn, .cancel-btn {
  padding: 0.75rem 1.5rem;
  margin-right: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.confirm-btn {
  background: #4CAF50;
  color: white;
}

.cancel-btn {
  background: #f44336;
  color: white;
}



/* Login and registrtaion */
.auth-body {
  min-height: calc(100vh - 80px);
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f8f9fa;
  padding: 5vh 0; 
}

.auth-container {
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  border-radius: 1rem;
  background-color: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-weight: 600;
    color: #2c3e50;
}

.logo-container {
    text-align: center;
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 18px;
    position: relative;
}

input, select, textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #ccd1d9;
    background-color: #fefefe;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
    border-color: #5a67d8;
    box-shadow: 0 0 6px rgba(90, 103, 216, 0.4);
    outline: none;
}

label {
    font-size: 13px;
    color: #444;
    margin-top: 6px;
    display: block;
}

button[type="submit"], .continue-btn, #verify-btn {
    width: 100%;
    background-color: #5a67d8;
    border: none;
    padding: 12px;
    color: white;
    border-radius: 10px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

button[type="submit"]:hover, .continue-btn:hover, #verify-btn:hover {
    background-color: #434190;
}

.auth-link-text {
    margin-top: 12px;
    font-size: 0.9rem;
    text-align: center;
}

.auth-link-text a {
    color: #5a67d8;
    font-weight: 500;
    text-decoration: none;
}

.auth-link-text a:hover {
    text-decoration: underline;
}

.auth-message {
    background-color: #ffe0e0;
    color: #b40000;
    padding: 10px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    text-align: center;
}

.prescription-notify {
  position: absolute;
  top: 6px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  background-color: red;
  border-radius: 50%;
  z-index: 10;
  box-shadow: 0 0 3px rgba(0,0,0,0.2);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.prescription-notify.hide {
  opacity: 0;
  transform: scale(0.7);
}

#orders-link .orders-notify {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: red;
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
  box-shadow: 0 0 2px rgba(0,0,0,0.3);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#orders-link .orders-notify.hide {
  opacity: 0;
  transform: scale(0.7);
}

/* blur only main area */
.blurred-bg {
  filter: blur(6px);
  transition: filter 0.3s ease;
}

/* overlay background */
.verify-slip-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(3px);
  background: rgba(255, 255, 255, 0.3);
  z-index: 1050;
  display: flex;
  justify-content: center;
  align-items: center;
}

.verify-slip-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* slip container */
.verify-slip-box {
  background: #fffefc;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 2rem 2.5rem;
  width: 90%;
  max-width: 420px;
  font-family: 'Poppins', sans-serif;
  border: 1px dashed #ccc;
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

/* subtle animation */
@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* title */
.verify-title {
  text-align: center;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
  letter-spacing: 0.3px;
}

/* receipt body */
.verify-details {
  border-top: 1px dashed #ddd;
  border-bottom: 1px dashed #ddd;
  padding: 1rem 0;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
  color: #444;
}

.verify-details ul {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0;
}

.verify-details li {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

/* bottom buttons */
.verify-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
}

.verify-btn {
  flex: 1;
  border: none;
  border-radius: 8px;
  padding: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.verify-edit-btn {
  background: #f2f2f2;
  color: #333;
}

.verify-edit-btn:hover {
  background: #e6e6e6;
}

.verify-place-btn {
  background: #2e8b57;
  color: #fff;
}

.verify-place-btn:hover {
  background: #267a4b;
}

.verify-slip-overlay.show .verify-slip-box {
  transform: translateY(0);
}


/* Base container (hidden by default) */
.address-dropdown {
  width: 100%;
  background: #ffffff;
  border-radius: 14px;
  margin-top: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    max-height 0.35s ease,
    opacity 0.25s ease,
    transform 0.3s ease;
}

/* When active (visible state) */
.address-dropdown.active {
  max-height: 500px; /* enough for 3–4 address cards */
  opacity: 1;
  transform: translateY(0);
  padding: 12px 14px;
  overflow-y: auto;      
}

.address-dropdown::-webkit-scrollbar {
  width: 6px;
}
.address-dropdown::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

/* Inner container: stack addresses neatly */
.address-dropdown-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Add Address Button Style (will be added dynamically later) */
.add-address-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #0d6efd;
  color: #0d6efd;
  border-radius: 10px;
  padding: 10px 0;
  font-weight: 500;
  background: #f8f9fa;
  cursor: pointer;
  transition: all 0.2s ease;
}
.add-address-btn:hover {
  background: #e9f2ff;
}

/* Individual Address Card */
.address-option {
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 10px 12px;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.address-option:hover {
  border-color: #0d6efd;
  box-shadow: 0 1px 5px rgba(13,110,253,0.1);
}

/* Address Label + Text */
.address-option .address-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #212529;
}
.address-option .address-text {
  font-size: 0.88rem;
  color: #6c757d;
}

/* Deliver Here Button */
.deliver-btn {
  background-color: #0d6efd;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}
.deliver-btn:hover {
  background-color: #0b5ed7;
}

/* Edit Icon/Button */
.edit-btn {
  background: none;
  border: none;
  color: #0d6efd;
  font-size: 0.9rem;
  cursor: pointer;
}
.edit-btn:hover {
  text-decoration: underline;
}

/* Rotate Arrow (>) smoothly when active */
.address-toggle-btn {
  transition: transform 0.25s ease;
}
.address-toggle-btn.active {
  transform: rotate(90deg);
}

/* ---------- Responsive Tweaks ---------- */

/* Mobile view adjustments */
@media (max-width: 576px) {
  .address-dropdown.active {
    padding: 10px 10px;
  }

  .address-option {
    padding: 8px 10px;
  }

  .deliver-btn {
    width: 100%;
    padding: 8px;
    font-size: 0.9rem;
  }
}

#address-card-container #phone-text {
    min-height: 1.2em; /* roughly one text line */
}

#address-toggle-btn {
  align-self: center !important;
  margin-top: 4px; 
}

.address-dropdown > div {
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}


#edit-address-form {
  animation: fadeIn 0.15s ease-in;
}

#edit-address-form .form-label {
  font-weight: 500;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-2px); }
  to { opacity: 1; transform: translateY(0); }
}


/*mine*/
.mt-4 {
  margin-top: 1.5rem !important;
  /*margin-bottom: 2rem;*/
}
