/* style.css */

/* Reset and base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    background: #f9f9f9;
    color: #333;
}

/* Header (atleast used in doctor_patient .html header) */
header {
    background: #004466;
    color: #fff;
    padding: 1rem 2rem 1rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand {
    display: flex;
    align-items: center;
    gap: 1rem; 
   
}
.logo {
    width: 70px;
    height: 70px;
    margin-right: 0px;
    
    display: block;
}
.company-name {
    font-size: 2.0rem;
    font-weight: bold;
}
nav a {
    color: #fff;
    margin-left: 1.5rem;
    text-decoration: none;
    font-weight: 500;
}
nav a:hover {
    text-decoration: underline;
}

/* Hero */
.hero {
    background: linear-gradient(to right, #0077b6, #00b4d8);
    color: #fff;
    text-align: center;
    padding: 4rem 2rem;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.2rem;
}

/* Clients */
.clients {
    background: #fff;
    padding: 2rem;
    text-align: center;
}
.clients h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #004466;
    text-align: center;

}
.clients-container {
    overflow-x: auto;
}
.clients-scroll {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
    width: max-content;
    animation: scrollLeft 30s linear infinite;
}
.client {
    background: #e0f7fa;
    border-radius: 10px;
    padding: 1rem 2rem;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-weight: bold;
}
@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Customer Stories */

.customer-stories {
    background: #f0f8ff;
    padding: 2rem;
    text-align: center;
}

.customer-stories h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #004466;
}


.flip-cards-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.flip-card {
    background: transparent;
    width: 250px;
    height: 200px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.flip-card-front {
    background-color: #e0f7fa;
    color: #004466;
    font-weight: bold;
    font-size: 1.1rem;
}

.flip-card-back {
    background-color: #0077b6;
    color: white;
    transform: rotateY(180deg);
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.4;
}




/* Customer Stories */



.story {
    background: #fff;
    border-left: 5px solid #0077b6;
    padding: 1rem;
    margin: 1rem auto;
    max-width: 800px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-style: italic;
}

/* Footer */
footer {
    background: #004466;
    color: #fff;
    padding: 2rem;
  
}
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.footer-content h3 {
    margin-bottom: 1rem;
}
.address, .quick-links {
    width: 45%;
    min-width: 250px;
}
.quick-links ul {
    list-style: none;
}
.quick-links li {
    margin-bottom: 0.5rem;
}
.quick-links a {
    color: #fff;
    text-decoration: none;
}
.quick-links a:hover {
    text-decoration: underline;
}
.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #ccc;
}




.hero-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 2rem;
    background: linear-gradient(to right, #cce6fc, #ffffff);
    flex-wrap: wrap;
}

.hero-text {
    max-width: 50%;
}

.hero-text h1 {
    font-size: 2.5rem;
    color: #004466;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.cta-button {
    background: #0077b6;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #005f87;
}

.hero-image {
    max-width: 45%;
}

.hero-image img {
    width: 100%;
    max-height: 350px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .hero-split {
        flex-direction: column;
        text-align: center;
    }

    .hero-text, .hero-image {
        max-width: 100%;
    }

    .hero-image img {
        max-height: 250px;
    }
}



.custom-card-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.3s ease;
  border-radius: 12px 12px 0 0;
}

.custom-card-img:hover {
  transform: scale(1.05);
}

.card {
  border-radius: 12px;
  overflow: hidden;
  background-color: #111;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  position: relative;
}

.card-caption {
  background: rgba(0, 0, 0, 0.6);
  text-align: center;
  color: #fff;
  padding: 10px;
  position: absolute;
  bottom: 0;
  width: 100%;
  font-size: 1.2rem;
}

.cards-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
}

.card {
  flex: 1;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  background-color: #111;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  position: relative;
}

.tech-heading {
  text-align: center;
  font-size: 2rem; /* Increase as needed */
  font-weight: bold;
  margin-bottom: 1rem;
  color: #004466;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background-color: #111;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.card-details {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 1rem;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s ease;
  font-size: 1.2rem; /* ⬅️ Font size increased */
  text-align: center;
  height: 160px;      /* Optional: taller */
  overflow-y: auto;
}


/* Show card-details on hover */
.card:hover .card-details {
  opacity: 1;
  transform: translateY(0);
}

/* our mission details start */
.our-mission {
    /*background: #c1dff7;*/
    background: linear-gradient(to right, #cce6fc, #ffffff);
    padding: 4rem 2rem;
    text-align: center;
}

.mission-container {
    max-width: 900px;
    margin: 0 auto;
}

.our-mission h2 {
    font-size: 2.2rem;
    color: #004466;
    margin-bottom: 1rem;
}

.our-mission p {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.8;
}
/* our mission details end */




/*about section */
.about-section {
  padding: 1rem;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.03);
  margin-top: 0rem;
  
}

.about-section p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #333;
}




/* contact us page */
.contact-section {
  padding: 1rem;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.03);
  margin-top: 0rem;
  color: #333;
}

.contact-section p {
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.contact-details {
  list-style: none;
  padding-left: 0;
  font-size: 1.1rem;
  margin-bottom: 10.5rem;
}

.contact-details li {
  margin-bottom: 0.7rem;
}

.contact-details a {
  color: #007bff;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}


/* login page */
.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background-color: #f9f9f9;
    min-height: 70vh;
}

.login-container {
    background: white;
    padding: 40px;
    max-width: 400px;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
}

.login-container h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.login-subtext {
    color: #666;
    margin-bottom: 20px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.login-form input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.cta-button {
    background-color: #1e40af;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #1c3c99;
}

.signup-link {
    margin-top: 20px;
    font-size: 0.95rem;
}

.flash-messages {
    list-style: none;
    color: red;
    margin-bottom: 10px;
}


/* signup page */

.signup-section {
    background: #f9f9f9;
    padding: 50px 20px;
}

.signup-container {
    max-width: 400px;
    margin: auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0,0,0,0.1);
}

.signup-container h2 {
    text-align: center;
    margin-bottom: 10px;
}

.signup-subtext {
    text-align: center;
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

.signup-form label {
    display: block;
    margin-top: 12px;
    font-weight: 600;
}

.signup-form input {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.signup-button {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background-color: #1e40af;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

.signup-button:hover {
    background-color: #0056b3;
}

.signup-link {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
}

.signup-link a {
    color: #1e40af;
    text-decoration: none;
}

.signup-link a:hover {
    text-decoration: underline;
}

#password-error {
    color: red;
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

/* ========== DASHBOARD HEADER ========== */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #004d7a;
    color: #fff;
    padding: 15px 30px;
    font-size: 1.2rem;
    position: relative;
    z-index: 10;
}

/* Hospital name on left */
.hospital-name {
    font-weight: bold;
}

/* User menu */
.user-menu {
    position: relative;
}

.user-icon {
    background-color: #fff;
    color: #004d7a;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    /*font-size: 1.2rem;*/
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    font-size: 28px; /* Adjust this value to make the emoji larger or smaller */
    margin-left: 20px;
    transition: transform 0.2s;
}

.user-icon:hover {
    transform: scale(1.5); /* Optional: slight zoom on hover */
    background-color: #e0e0e0;
}

/* Dropdown menu */
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 50px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 5px;
    min-width: 150px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
}

.dropdown-menu a.dropdown-item {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
}

.dropdown-menu a.dropdown-item:hover {
    background-color: #f2f2f2;
}

/* Class toggled by JS */
.show {
    display: block;
}

/* Flash messages */
.flash-messages {
    margin: 15px;
    list-style-type: none;
    padding: 0;
}

.flash-message {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.flash-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Placeholder for main content */
.dashboard-main {
    padding: 30px;
    font-family: 'Segoe UI', sans-serif;
    color: #333;
}



/* ========== DASHBOARD HEADER END========== */


/* ========== Hospital Profile Page========== */

.profile-container {
    max-width: 600px;
    margin: 60px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-size: 18px;
}

.profile-container h2 {
    margin-bottom: 20px;
    color: #333;
}

.profile-container p {
    margin: 10px 0;
    line-height: 1.6;
}

.back-button {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    color: #007BFF;
}



.profile-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    background-color: #f9f9f9;
}

.profile-card {
    background-color: white;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
}

.profile-card h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.profile-field {
    margin-bottom: 20px;
}

.profile-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #34495e;
}

.profile-field span {
    display: block;
    padding: 10px;
    background: #f2f2f2;
    border-radius: 5px;
    font-size: 16px;
}





/* ========== Hospital Profile Page========== */

.edit-icon {
    margin-left: 10px;
    cursor: pointer;
    font-size: 18px;
    color: #007bff;
}

.edit-icon:hover {
    color: #0056b3;
}

.profile-field input {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 100%;
    margin-top: 5px;
}

.profile-field button {
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.profile-field button:hover {
    background-color: #0056b3;
}



.editable-field {
    display: flex;
    align-items: center;
    gap: 10px;
}
/*

.edit-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
}
*/

.save-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}


.editable-field input {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    background-color: #f2f2f2;
    border: none;
    border-radius: 5px;
}

/*
.edit-btn {
    background-color: #007BFF;
    border: none;
    color: white;
    font-size: 18px;
    border-radius: 5px;
    padding: 6px 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}
*/

.edit-btn:hover {
    background-color: #0056b3;
}

.full-width {
    width: 100%;
}

.edit-btn img {
    width: 16px;
    height: 16px;
}





.input-edit-wrap {
    display: flex;
    align-items: center;
    width: 100%;
}



.input-edit-wrap input {
    flex: 1;
    padding: 10px 15px;
    background-color: #f2f2f2;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    transition: background-color 0.3s ease;
    width: 100%;
    padding-right: 40px;
}

.input-edit-wrap input:focus {
    background-color: #fff;
    outline: 1px solid #3498db;
}

.edit-btn {
    background-color: #007bff;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    margin-left: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}



.delete-profile-container {
    text-align: center;
    margin-top: 1px;
    margin-bottom: 10px;
}

.delete-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.delete-btn:hover {
    background-color: #c0392b;
}



/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.confirm-btn {
    background-color: #e74c3c;
    color: white;
    padding: 10px 20px;
    border: none;
    margin-right: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.cancel-btn {
    background-color: #ccc;
    color: black;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.confirm-btn:hover {
    background-color: #c0392b;
}

.cancel-btn:hover {
    background-color: #999;
}


.profile-footer {
    background-color: #004466;
    padding: 20px 0;
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid #ddd;
    
}

.profile-footer .footer-content p {
    margin: 5px 0;
    color: #fff;
    font-size: 14px;
     padding: 0 30px;
}

.profile-footer .footer-content a {
    color: #007BFF;
    text-decoration: none;
}

.profile-footer .footer-content a:hover {
    text-decoration: underline;
}






/* Add Doctor on Dashboard Start */

.doctor-section {
    text-align: right;
    margin: 20px 40px 0 0;
}

.add-doctor-btn {
    background-color: #2c3e50;
    color: white;
    padding: 8px 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 20px;
}

.doctor-form {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background: #f4f4f4;
    border-radius: 8px;
}

.doctor-form input {
    width: 100%;
    padding: 8px;
    margin: 8px 0 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.doctor-form button {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
}



.refresh-btn {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.refresh-btn:hover {
    background-color: #45a049;
}

.doctor-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #04224d; /* Light blue or any color you prefer */
    padding: 16px 10px 0 10px;
    border-radius: 0px;
    margin-bottom: 0px;
}
.doctor-list-title {
    color: white;
}

/* Add Doctor on Dashboard End */




/* ========= Stylish Doctor Table ========= */
.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px auto;
    margin-bottom:20%;
    font-size: 16px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.styled-table thead tr {
    background-color: #2c3e50;
    color: #ffffff;
    text-align: left;
}

.styled-table th, .styled-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #ddd;
}

.styled-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.styled-table tbody tr:hover {
    background-color: #f1f1f1;
}

.doctor-link {
    color: #007BFF;
    text-decoration: none;
    font-weight: 500;
}

.doctor-link:visited {
    color: #007BFF; /* same as normal link to avoid the purple visited effect */
}

.doctor-link:hover {
    text-decoration: underline;
}

.delete-doctor-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.delete-doctor-btn:hover {
    background-color: #c0392b;
}


 
.doctor-form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.doctor-form-buttons button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

/* Save Doctor - Blue */
.doctor-form-buttons button[type="submit"] {
    background-color: #0ac960;
}

.doctor-form-buttons button[type="submit"]:hover {
    background-color: #036e35;
}

/* Back Button - Gray */
.doctor-form-buttons button[type="button"] {
    background-color: #6c757d;
}

.doctor-form-buttons button[type="button"]:hover {
    background-color: #5a6268;
}

.empty-state {
  text-align: center;
  padding: 30px 0;
  color: #666;

}



.dashboard-footer {
    background-color: #004466; /* Same as header */
    color: #ffffff;
    text-align: center;
    padding: 20px 10px;
    position: relative;
    bottom: 0;
    width: 100%;
    margin-top: 0%;
}

.dashboard-footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-footer .footer-link {
    color: #007BFF;
    text-decoration: underline;
    margin-left: 10px;
}

.dashboard-footer .footer-link:hover {
    color: #fff;
}

/* ---------------------------------------doctor_patienthtml start--------------------------------------- */

/* add-patient-section on doctor_patienthtml start */

.add-patient-section {
    background: linear-gradient(135deg, #fbfcfb, #fbfcfb);
    margin: 0px auto 0px auto;
    padding: 25px;
   /*  background-color: #f8f9fa;*/ 
    border-radius: 8px;
    max-width: 600px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);

}

.add-patient-section h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #2c3e50;
}

.add-patient-section form input[type="text"],
.add-patient-section form input[type="datetime-local"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 0px;
    margin-bottom: 0px;
}

.add-patient-section .submit-btn {
    background-color: #1abc9c;
    color: white;
    border: none;
    margin-top: 15px;
    padding: 10px 18px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.add-patient-section .submit-btn:hover {
    background-color: #16a085;
}


/* add-patient-section on doctor_patienthtml end */

/* Table-section on doctor_patienthtml Start */


.patients-section-header {
    width: 100%;
    background-color: #2c3e50;
    padding: 10px 24px;
    margin: 10px 0 0px 0;
    border-radius: 0px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}


.doctor-patient-table {
   
    width: 100%;
    margin: 0px auto 40px auto;
    padding: 0px 0px 20px 0px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 10px;
   
}

.doctor-patient-table h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.doctor-patient-table table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Segoe UI', sans-serif;
}

.doctor-patient-table th, .doctor-patient-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.doctor-patient-table th {
    background-color: #1f64a8;
    font-weight: bold;
    color: #ffffff;
}

.doctor-patient-table tr:hover {
    background-color: #f9f9f9;
}

.doctor-patient-table td {
    color: #444;
    font-size: 15px;
}

/* Table-section on doctor_patienthtml End */

/* Background doctor_patienthtml End */
.doctor-patient-bg {
    min-height: 100vh;
    background: linear-gradient(to right, #f5f7f6, #f9f9f9);
    padding: 0px 0;
}


.date-filter-input {
    width: 5px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}




/* Background doctor_patienthtml  End */



.doctor-dashboard-bg {
    min-height: 100vh;
    background: linear-gradient(to right, #f5f7f6, #f9f9f9);
    padding: 20px 0;
}




.doctor-patient-footer {
    background-color: #004466; /* Same as header */
    color: #ffffff;
    text-align: center;
    padding: 20px 10px;
    position: relative;
    bottom: 0;
    width: 100%;
    margin-top: 0%;
}

.doctor-patient-footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.doctor-patient-footer .footer-link {
    color: #ffffff;
    text-decoration: underline;
    margin-left: 10px;
}

.doctor-patient-footer .footer-link:hover {
    color: #fff;
}










.doctor-options-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #022345;
    padding: 16px 24px;
    margin: 0px auto 0px auto;
    border-radius: 12px;
    width: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    flex-wrap: wrap;
    gap: 10px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-group label {
    font-weight: 500;
    margin-right: 5px;
}

.filter-group input[type="text"] {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.quick-actions {
    display: flex;
    gap: 12px;
}

.quick-btn,
.next-btn {
    padding: 8px 16px;
    background-color: #32b739;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s ease;
}

.quick-btn:hover,
.next-btn:hover {
    background-color: #27962d;
}












.patients-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffff;
    margin: 0;
}

.patients-tools-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.patients-tools-panel input[type="text"] {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    min-width: 150px;
    background-color: white;
}

.quick-btn,
.next-btn {
    padding: 8px 12px;
    background-color: #32b739;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.quick-btn:hover,
.next-btn:hover {
    background-color: #27962d;
}



/* Pagination container */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 8px;
}

/* Pagination buttons */
.pagination button {
    background-color: #32b739;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

/* Disabled button */
.pagination button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Hover effect */
.pagination button:hover:not(:disabled) {
    background-color: #28962d;
}

/* Active page button */
.pagination button.active {
    background-color: #1e7e24;
    font-weight: bold;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #1e7e24;
}



/* Pagination styles */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination button {
    margin: 0 5px;
    padding: 6px 12px;
    border: none;
    background-color: #f0f0f0;
    color: #333;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.pagination button:hover {
    background-color: #ddd;
}

.pagination button.active {
    background-color: #32b739;
    color: white;
}

.pagination button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}



/* Next Patient Button Styling */
.next-patient-btn {
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    padding: 8px 16px;
    transition: background-color 0.3s;
}

.next-patient-btn:hover {
    background-color: #0056b3;
}
/* Next Patient Button Styling */


/* Start Patient List Button Styling */
.start-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    margin-left: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.start-btn:hover {
    background-color: #218838;
}
/* start Patient List Button Styling */


/* Start Button Pop Up  */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Popup box */
.popup-box {
  background: #fff;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  width: 350px;
  animation: fadeIn 0.3s ease;
}

.popup-box h3 {
  margin-bottom: 20px;
  font-size: 18px;
  color: #333;
}

/* Button styling */
.popup-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.popup-btn {
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.yes-btn {
  background-color: #28a745;
  color: white;
}

.yes-btn:hover {
  background-color: #218838;
}

.no-btn {
  background-color: #dc3545;
  color: white;
}

.no-btn:hover {
  background-color: #c82333;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
/* Start Button Pop Up  */



.status-in-progress {
    background-color: #fff3cd; /* light yellow */
    font-weight: bold;          /* optional */
    text-align: center;         /* optional */
}


























/* Add Patient Modern Bar */
.add-patient-bar {
  background: #03767e;
  padding: 15px 25px;
  margin: 0px auto;
  border-radius: 0px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  justify-content: center;
}

.add-patient-bar form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 900px;
}

.add-patient-bar input {
  flex: 1;
  min-width: 200px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.add-patient-bar input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
  outline: none;
}

.add-patient-bar .add-btn {
  background: linear-gradient(90deg, #2563eb, #1e40af);
  color: #fff;
  border: none;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s;
}

.add-patient-bar .add-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(90deg, #1d4ed8, #1e3a8a);
}



.edit-btn-small {
    background: transparent;
    border: none;
    font-size: 15px;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.2s ease;
}

.edit-btn-small:hover {
    transform: scale(1.2);
}



/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}


.patients-header-updated {
    background: #2c3e50;
    padding: 16px 10px;
    border-radius: 0px;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08); /* softer but noticeable shadow */
    border: 0px solid #93c5fd; /* subtle border to define edges */
}

.patients-title-updated {
    font-size: 18px;
    font-weight: 700;
    color: #f0f2f7; /* deep blue */
    margin: 0;
}

.patients-controls-updated {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-group-updated,
.action-group-updated {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.date-filter-input-updated,
.search-input-updated {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid #cbd5e1;
    background-color: #fefefe;
    transition: all 0.2s;
}

.date-filter-input-updated:focus,
.search-input-updated:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
    outline: none;
}

.quick-btn-updated {
    background-color: #2563eb;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-btn-updated:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2);
}





/* Edit Appointment Button */
./* Edit Appointment Button Style */




.table-container {
    max-height: 500px; /* Adjust to your design */
    overflow-y: auto;
    border: 1px solid #ccc;
}

#patientsTable {
    width: 100%;
    border-collapse: collapse;
}

#patientsTable th, #patientsTable td {
    padding: 10px 12px;
    text-align: left;
}

#patientsTable thead {
    position: sticky;
    top: 0;
    background-color: #2c3e50; /* Header color */
    color: #fff;
    z-index: 1;
}

#patientsTable tbody tr:nth-child(even) {
    background-color: #e6f7f8; /* Light tint of #03767e */
}

#patientsTable tbody tr:nth-child(odd) {
    background-color: #ffffff; /* White */
}

#patientsTable tbody tr:hover {
    background-color: #cce9ea; /* Slight hover highlight */
}

/* Optional: Scrollbar styling for Webkit browsers */
.table-container::-webkit-scrollbar {
    width: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.table-container::-webkit-scrollbar-thumb {
    background-color: #03767e; 
    border-radius: 4px;
}




/* ------------------------ */
/* TOAST / POPUP MESSAGES   */
/* ------------------------ */
#toast-container {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.toast {
  background-color: #03767e;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(-20px);
  animation: slideIn 0.4s forwards;
  font-size: 15px;
  text-align: center;
  min-width: 260px;
}

.toast.success {
  background-color: #03767e;
}

.toast.error {
  background-color: #d9534f;
}

.toast.info {
  background-color: #5bc0de;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}



/* Add Doctor Modern Bar */
.add-doctor-bar {
  background: #03767e;
  padding: 15px 25px;
  margin: 0px auto;
  border-radius: 0px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  justify-content: center;
}

.add-doctor-bar form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 900px;
}

.add-doctor-bar input {
  flex: 1;
  min-width: 200px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.add-doctor-bar input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
  outline: none;
}

.add-doctor-bar .add-btn {
  background: linear-gradient(90deg, #2563eb, #1e40af);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s;
}

.add-doctor-bar .add-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(90deg, #1d4ed8, #1e3a8a);
}



.doctor-list-header {
  background: #2c3e50;
  padding: 16px 10px;
  border-radius: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.doctor-list-title {
  font-size: 18px;
  font-weight: 700;
  color: #f0f2f7;
  margin: 0;
}

.doctor-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.refresh-btn {
  background-color: #32b739;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}

.refresh-btn:hover {
  background-color: #2ea231;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(50, 183, 57, 0.3);
}


/* Header Panel */
.doctors-header-panel {
    background: #2c3e50; /* same deep blue as patients header */
   
    border-radius: 0;
    margin-bottom: 0; /* small gap between panel and table */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: none; 
    padding-bottom: 0; 
  
}

.doctors-title {
    font-size: 18px;
    font-weight: 700;
    color: #f0f2f7;
    margin: 0;
}

.doctors-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.doctors-search-input {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid #cbd5e1;
}

.doctors-search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
    outline: none;
}

.doctors-refresh-btn {
    background-color: #32b739;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.doctors-refresh-btn:hover {
    background-color: #2ea231;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(50, 183, 57, 0.3);
}

/* Table Styling */
.doctors-table-container {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 0 0 8px 8px;
    border-top: 0;
    margin-top: 0;
    padding-top: 0; 
}

.doctors-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin-top: 0;
}

.doctors-table th, .doctors-table td {
    padding: 10px 12px;
    text-align: left;
}

.doctors-table thead {
    position: sticky;
    top: 0;
    background-color: #1f64a8; /* same teal as add-patient/add-doctor bar */
    color: #fff;
    z-index: 1;
}

.doctors-table tbody tr:nth-child(even) {
    background-color: #e6f7f8;
}

.doctors-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.doctors-table tbody tr:hover {
    background-color: #cce9ea;
}

/* Delete button */
.delete-doctor-btn {
    background-color: #dc2626;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.delete-doctor-btn:hover {
    background-color: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.2);
}



/* Patient Details Styling Start */



/* Patient Details Page */
body {
    background: #f3f8f9;
    font-family: Arial, sans-serif;
}

.patient-details-container {
    width: 98%;
    max-width: 1600px;
    margin:  auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0px 4px 25px rgba(0,0,0,0.08);
}

.header-title {
    font-size: 32px;
    font-weight: 700;
    color: #03767e;
    margin-bottom: 5px;
}

.sub-info {
    color: #555;
    margin-bottom: 25px;
}

.info-section-title {
    font-size: 30px;
    font-weight: bold;
    color: #222;
    margin-top: 30px;
}

.info-block {
    background: #f6fafa;
    padding: 16px;
    margin-top: 10px;
    border-radius: 10px;
    line-height: 1.7;
    font-size: 17px;
}

.back-btn {
    display: inline-block;
    margin-top: 0px;
    background: #03767e;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
}

.back-btn:hover {
    background: #025960;
}



/* Doctor Notes Editable Section */
.doctor-notes-input {
    width: 100%;
    height: 500px;
    padding: 14px;
    font-size: 16px;
    border: 1px solid #cbd5d6;
    border-radius: 10px;
    background: #fdfefe;
    resize: both;
    outline: none;
    transition: border 0.2s ease;
    resize: vertical; 
}

.doctor-notes-input:focus {
    border-color: #03767e;
    box-shadow: 0 0 4px rgba(3,118,126,0.3);
}


.save-notes-btn {
    margin-top: 15px;
    background: #03767e;
    color: white;
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.save-notes-btn:hover {
    background: #025960;
}




/* Patient Details Styling Start */


.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 16px;
}

.history-table th {
    background: #03767e;
    color: white;
    padding: 10px;
    text-align: left;
}

.history-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    white-space: pre-wrap;
}

.history-table tr:hover {
    background: #f2fafa;
}

.notes-btn-wrapper {
    display: flex;
    justify-content: flex-end;  /* pushes button to the right */
    margin-top: 10px;
}



.notes-actions-row {
    display: flex;
    gap: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 15px;
}

/* PRINT SETTINGS */
/* PRINT ONLY DOCTOR NOTES */


/* Screen view: hide print area */
.print-area {
    display: none;
}

/* Print view */
/* Hide print area on screen */
.print-area {
    display: none;
}


/* PRINT LAYOUT */

/* Age / Gender input fields */
.screen-age-gender {
    display: flex;
    gap: 15px;               /* space between Age and Gender boxes */
    margin-bottom: 20px;     /* space below the row */
}

.screen-age-gender .print-input {
    width: 120px;            /* fixed width for consistency */
    padding: 6px 10px;       /* padding inside input */
    font-size: 16px;         /* readable font */
    border: 1px solid #ccc;  /* light border */
    border-radius: 4px;      /* rounded corners */
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1); /* subtle inner shadow */
}

.screen-age-gender .print-input:focus {
    outline: none;
    border-color: #007bff;  /* blue border on focus */
    box-shadow: 0 0 3px rgba(0,123,255,0.5);
}



@media print {
    @page {
        size: A4;
        margin: 120px 60px 80px 60px;
        /* top | right | bottom | left */
        /* adjust bottom margin for footer height */
    }
    body {
        margin: 0;
        padding: 0;
        background: white;
        font-family: "Times New Roman", serif;
    }

    body * {
        visibility: hidden;
    }

    .print-area,
    .print-area * {
        visibility: visible;
    }

    .print-area {
        display: block;
        width: 100%;
 
        
    }



    .print-patient-info-row {
        display: flex;
        justify-content: space-between;
        font-size: 16px;
        margin-bottom: 10px;
    }

    .print-patient-info-row .patient-name-info div {
        margin-bottom: 2px;
    }

    .print-content {
        margin-top: 20px;
        padding: 0 60px; /* left/right margins */
    }

    .print-notes-text {
        font-size: 16px;
        line-height: 1.8;
        white-space: pre-wrap;
        text-align: justify;
    }

    /* Hide all UI elements not needed for print */
    .doctor-notes-input,
    .notes-actions-row,
    .info-section-title,
    .info-block,
    .history-table,
    .screen-age-gender {
        display: none !important;
    }
}



/* PRINT SETTINGS */

.action-btn {
    background: #03767e;
    color: white;
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background 0.2s ease;
}

.action-btn:hover {
    background: #025960;
}








/* ============================
   Analytics PAGE LAYOUT
============================ */
.analytics-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

/* ============================
   PAGE TITLE
============================ */
.analytics-container h1 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 10px;
    color: #2b2b2b;
}

/* ============================
   TOP STATS CARDS
============================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    text-align: center;
    transition: 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card h2 {
    font-size: 18px;
    color: #555;
    margin-bottom: 8px;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #0066cc;
    margin-bottom: 10px;
}

.stat-change {
    font-size: 14px;
    color: #28a745;
    font-weight: 600;
}

.stat-change.down {
    color: #d9534f;
}

/* ============================
   CHART SECTION
============================ */
.chart-section {
    margin-top: 40px;
    margin-bottom: 50px;
}

.chart-section h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2b2b2b;
}

.chart-box {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* ============================
   PATIENT TABLE
============================ */
.patient-table-section {
    margin-top: 50px;
}

.patient-table-section h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2b2b2b;
}

.analytics-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    font-size: 15px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.analytics-table th {
    background: #0066cc;
    color: white;
    padding: 14px;
    text-align: left;
    font-weight: 600;
}

.analytics-table td {
    padding: 12px;
    border-bottom: 1px solid #eaeaea;
}

.analytics-table tr:hover {
    background: #f5faff;
}

/* ============================
   RESPONSIVE
============================ */
@media only screen and (max-width: 768px) {
    .analytics-container {
        padding: 10px;
    }

    .stat-card {
        padding: 20px;
    }

    .analytics-table td,
    .analytics-table th {
        font-size: 13px;
        padding: 10px;
    }
}


.chart-title {
    text-align: left;
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 15px;
    margin-top: 25px;
    color: #333;
}






/* ============================
   Appointments start
============================ */

.search-bar-container {
    text-align: center;
    margin: 20px 0;
}

.search-bar {
    width: 50%;
    padding: 10px 40px 10px 15px; /* extra right padding for icon */
    border-radius: 25px;
    border: 1px solid #ccc;
    font-size: 16px;
    outline: none;
    transition: all 0.2s ease;
    background-color: #f3f8f9;
    background-size: 18px 18px;
}


.search-bar:focus {
    border-color: #3498db;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.3);
}



.appointment-card {
    background: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.1s;
}

.appt-info h3 { margin: 0; font-size: 20px; }
.appt-info p { margin: 4px 0; color: #555; }

.status.waiting { color: #e69500; font-weight: bold; }
.status.completed { color: green; font-weight: bold; }
.status.cancelled { color: red; font-weight: bold; }

.appt-actions a {
    margin-left: 8px;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
}

.btn-update, .btn-cancel {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    border: none;
}

.btn-update {
    background-color: #3498db;
    color: white;
}

.btn-update:hover {
    background-color: #217dbb;
}

.btn-cancel {
    background-color: #e74c3c;
    color: white;
}

.btn-cancel:hover {
    background-color: #c0392b;
}


.flash-container {
    margin: 15px auto;
    width: 40%;
}

.flash {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 500;
}

.flash.success {
    background-color: #d4edda;
    color: #155724;
}

.flash.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* ============================
   Appointments End
============================ */



/* ============================= */
/* Live Queue Public Page Styles */
/* ============================= */

.live-queue-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f2f4f7;
    margin: 0;
    padding: 10px;
}

.live-queue-title {
    text-align: left;
    color: #2c3e50;
    margin-bottom: 10px;
  
  }


.live-queue-table {
    width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
}

.live-queue-table thead {
    background-color: #3498db;
    color: #ffffff;
}

.live-queue-table th,
.live-queue-table td {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.live-queue-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.live-queue-table tbody tr:hover {
    background-color: #eef6fc;
}

/* Mobile Responsive 


@media screen and (max-width: 768px) {

    .live-queue-table,
    .live-queue-table thead,
    .live-queue-table tbody,
    .live-queue-table th,
    .live-queue-table td,
    .live-queue-table tr {
        display: block;
    }

    .live-queue-table thead {
        display: none;
    }

    .live-queue-table tr {
        margin-bottom: 15px;
        background-color: #ffffff;
        box-shadow: 0 0 5px rgba(0,0,0,0.08);
        border-radius: 8px;
        overflow: hidden;
    }

    .live-queue-table td {
        text-align: left;
        padding-left: 50%;
        position: relative;
    }

    .live-queue-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        font-weight: 600;
    }
}
*/

.refresh-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.refresh-btn:hover {
    background-color: #2980b9;
}

.refresh-container {
    text-align: right;
    margin: 0 50px 20px 0;
}





/* Desktop: already looks fine */


/* Mobile adjustments */
@media screen and (max-width: 768px) {
    .patients-section-header-aa {
        flex-direction: column; /* stack title and button */
        text-align: center;
        gap: 10px;
        padding: 10px 15px;
        width: 95%;      /* keep it centered */
        margin: 10px auto; /*  auto horizontal margins to center */
    }

    .patients-title {
        font-size: 18px;
        color: #ffffff;
        margin: 0;
    }

    .refresh-btn {
        align-self: center; 
        font-size: 14px;
        padding: 6px 12px;
    }
}




/* ============================= */
/* Live Queue Public Page Styles END*/
/* ============================= */


/* ================= ABOUT PAGE UPGRADE Start ================= */

.about-hero {
    background: linear-gradient(to right, #cce6fc, #ffffff);
    color: #004466;
    text-align: center;
    padding: 80px 20px;
}

.about-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.about-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.about-content {
    max-width: 1500px;
    padding: 20px;
}


.about-content h2 {
    margin-top: 40px;
    margin-bottom: 10px;
    color: #004466;
    
}

.about-content p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #444;
}


.about-cta {
    background: #f0f8ff;
    text-align: center;
    padding: 60px 20px;
}

.about-cta h2 {
    margin-bottom: 20px;
    color: #004466;
}

/* ================= ABOUT PAGE UPGRADE END ================= */



/* ================= CONTACT PAGE ================= */

.contact-hero {
    background: linear-gradient(to right, #cce6fc, #ffffff);
    color: #004466;
    text-align: center;
    padding: 80px 20px;
}

.contact-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.contact-content {
    max-width: 1000px;
    margin: 60px auto;
    padding: 20px;
}

.contact-content h2 {
    margin-bottom: 15px;
    color: #004466;
}

.contact-content p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #444;
}

.contact-details {
    list-style: none;
    padding: 0;
}

.contact-details li {
    margin-bottom: 15px;
    font-size: 1rem;
}

.contact-details a {
    color: #004466;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-cta {
    background: #f0f8ff;
    text-align: center;
    padding: 60px 20px;
}

.contact-cta h2 {
    margin-bottom: 20px;
    color: #004466;
}