/* Navbar Specific Styles */
nav {
    background-color: #eae9e9;
    color: #000000;
    display: flex;
    justify-content: space-between;
    padding: 0em 1em;
    align-items: center;
}

.btn-cancel {
  width: 100%;
  padding: 10px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.btn {
    padding: 10px;
    margin: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 75%;
}

.login-container-large {
    height: 85vh;
}

.login-container-small {
    height: 45vh;
}

.small-btn {
    margin: 5px;
    width: 200px;
    font-size: 10px;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    align-items: center;
}

.small-btn button:hover{
    background-color: #0056b3;
}

.table-wrapper {
    overflow-x: auto;
    max-width: 100%;
}

.table-wrapper table {
    width: max-content;
    border-collapse: collapse;
    min-width: 100%;
}

.table-wrapper th, td {
    padding: 12px 20px; 
    white-space: nowrap;
}

.table-wrapper th {
    background-color: #f0f0f0;
}

.button-container button{
    width: 300px;           
    padding: 10px;
    background-color: #007bff; 
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.button-container button:hover{
    background-color: #0056b3;
}

.button-container {
    display: grid;
    justify-content: center;  
    flex-wrap: wrap;          
}

.delete-button-container button{
    width: 300px;           
    padding: 10px;
    background-color: #c82333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }

.delete-button-container button:hover{
    background-color:#76151f;
}
  
.delete-button-container {
    display: grid;
    justify-content: center;  
    flex-wrap: wrap;          
}

.btn-logout-button{
    margin-top: 5px ;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    padding: 10px;

}

input[type="button"] {
    width: 30%;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

input[type="button"]:hover {
    background-color: #0056b3;
}

.btn-logout-button:hover{
    background-color: #0056b3;
}

nav h1 {
    text-align: left;
    margin: 0;
    font-size: 1.5em;
    padding: 10px;
}

nav>ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav>ul>li {
    margin-left: 10px;
    background-color: #eae9e9;
    display: flex;
    align-items: center;
    margin-top: 10px;
    border: none;
}

nav>ul>li>a {
    color: rgb(30, 22, 22);
    text-decoration: none;
    font-size: 1em;
    padding: 0.2em 0.2em;
    display: block;
}

nav>ul>li>a:hover {
    text-decoration: underline;
    color: #000000;
}
nav>ul>li:last-child {
    margin-top: 0px;}

.home {
    text-decoration: none;
    font-size: xx-large;
    color: #000000;
}

.form-group {
    margin-bottom: 15px;
    text-align: center;
    margin-top: 20px;
 }
 
.help-text {
    padding: 10px;
    text-align: left;
    font-size: 0.9em;
    color: #777777;
    margin-top: 5px;
}

.form-group label {
    font-size: 18px;
    font-weight: 500;
    
}

.error {
    color: red;
    font-size: 0.9em;
    margin-top: 5px;
}

.register_form {
    width: 40%;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    /* position: absolute; */
}

.register-container{
    display: flex;
    justify-content: center; 
    align-items: center; 
    height: 80vh;
}

.login_form {
    width: 30%;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    /* position: absolute; */
}

.login-container{
    display: flex;
    justify-content: center; 
    align-items: center; 
    height: 40vh;
}

.generic-container{
    display: flex;
    justify-content: center; 
    align-items: center; 
    height: 40vh;
}

.generic_form {
    width: 35%;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

body,html {
    font-family: Calibri, Arial, sans-serif;
    background-color: #f2f2f268;
    height: 100%;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 20px;
}

table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: white;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

td {
    text-align: center;
    border: 1.3px solid #ddd;
    /* white-space: nowrap; */
    /* Prevent text wrapping in cells */
    overflow: hidden;
    /* Hide content if it overflows */
    /* text-overflow: ellipsis; */
    /* Display ellipsis (...) for truncated content */
}

th {
    background-color: #eae9e9;
    padding: 10px 0px;
}

p input[type="checkbox"] {
    padding-right: 150px;
    vertical-align: middle;
    cursor: pointer; 
}

tr:hover {
    background-color: #f5f5f5;
}

.btn-delete:hover {
    background-color:#76151f;
    cursor: pointer;   

}

.btn-delete {
    color: white;
    border: none;
    border-radius: 20%;
    background-color: #c82333;
    padding: 5px 8px;
    cursor: pointer;
}
    
.btn-edit:hover ,.btn-remind:hover {
    background-color: black;

}

.btn-edit, .btn-remind {
    color: white;
    border: none;
    border-radius: 20%;
    background-color: rgb(87, 83, 83);
    padding: 5px 6px;
    cursor: pointer;
}

.search-container {
    margin-bottom: 20px;
}

.search-container input[type=text] {
    width: 90%;
    padding: 10px;
    margin-right: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.search-container button {
    padding: 10px 0px;
    width: 7%;
    background-color: #007bff;
    color: #ddd;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
}

.search-container button:hover {
    background-color: #0056b3;
}

.form-container {
    max-width: 400px;
    margin: 50px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.checkbox-modules{
    font-weight: normal;
    padding: 5px;
}

.checkbox-container {
    display: flex;
    align-items: center;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 5px;
}

input[type="text"],
input[type="password"],
input[type="email"] , input[type="number"] , input[type="date"] , input[type="datetime-local"] , input[type="time"] {
    padding: 10px;
    border-radius: 5px;
    box-sizing: border-box;
    margin: 10px;
    width: 90%;
    font-size: 13px;
    border: 2px solid #ccc;
}

select{
    padding: 10px;
    border-radius: 5px;
    box-sizing: border-box;
    margin: 10px;
    width: 90%;
    font-size: 13px;
    border: 2px solid #ccc;
}

.btn-add{
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-add:hover {
    background-color: #0056b3;
}

ul {
      list-style-type: none;
      padding: 0;
      margin: 0;
  }

li {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 10px;
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 5px;
      background-color: #fff;
  }

li:last-child {
      margin-bottom: 0;
}

.greeting{
    margin-top: 40px;
    font-family: 'Poppins', sans-serif;
    font-size: 25;
    width: 50%;
    display: flex;
    flex-wrap: wrap;
    text-align: left;
    flex-direction: column;
    /* justify-content: center; */
}


.greeting h1,h3{
    margin-top: 0px;
    text-align: left;
}

.landing-img{
    position: absolute;
    height: 500px;
    left: 68%;
    top: calc(100% - 250px);  
}

.logos {
    position: fixed;
    bottom: 0px;
    background-color: white;
    width: 100%;
    height: 55px;
    border-top: 1px solid gray;
    border-top-style: outset;
    margin-top: auto;
    z-index: 9;
}

.merkaz {
    left: 10px;
    position: fixed;
    bottom: 0px;
    max-height: 50px;
}

.regulatory a, .policy a {
    padding: 10px 20px;
    color: gray; /* White text */
    text-decoration: none; /* Remove underline */
    font-size: 16px; /* Adjust font size */
    transition: background-color 0.3s ease; /* Smooth transition */
}

.regulatory a:hover, .policy a:hover {
    color: black;
    text-decoration: none; /* Keep it clean on hover */
}

.regulatory {
    left: 65%;
    position: fixed;
    max-height: 40px;
    margin-top: 18px;

}

.collaborator {
    left: 45%;
    position: fixed;
    bottom: 0px;
    max-height: 50px;
}

.policy {
    left: 75%;
    position: fixed;
    max-height: 50px;
    margin-top: 18px;

}

.hit {
    left: 90%;
    position: fixed;
    bottom: 0px;
    max-height: 50px;
}

.footer-rights {
    left: 17%;
    position: fixed;
    height: 25px;
    color: #666;
}

.footer-rights p {
    font-size: small;
    margin: 17px;
}

.patientdata {
    max-width: 40%;
    width: 40%;
}

.modules h2{
    text-align: center;
}

.modules {
    display: grid;
    position: absolute;
    padding: 10px;
    right: 30px;
    top: 0px;
    width: 40%;
}

.content {
    position: relative;
    padding-bottom: 100px;
    bottom: 50px;
    top: 0px;

}


/****************************************************/


.patient-info {
    margin-bottom: 30px;
}

.patientdata {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.patientdata th, .patientdata td {
    border: 1px solid #ddd;
    padding: 8px;
}

.patientdata th {
    background-color: #f2f2f2;
    text-align: left;
    width: 200px;
}

.button-container {
    margin-top: 10px;
}

.modules-section {
    /* position: absolute;
    right: 5%;
    top: 55%;
    margin-top: 20px;
    width: 25%; 
    margin-top: 1.5rem; */
    width: 100%;
}

.measurements-section {
    /* position: absolute;
    right: 31%;
    top: 55%;
    margin-top: 20px;
    width: 25%; 
    margin-top: 1.5rem; */
    width: 100%;
}

.custom-dashboard-section {
    /* position: absolute;
    right: 57%;
    top: 55%;
    margin-top: 20px;
    width: 25%; 
    margin-top: 1.5rem; */
    width: 100%;
}

.modules-container, .measurements-container , .custom-dashboard-container {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px; /* Space between buttons */
    max-height: 400px; 
    overflow-y: auto; /* Enable vertical scrolling */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.measurement-row {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between buttons */
}

.modules-container .btn, .measurements-container .btn , .custom-dashboard-container .btn {
    width: 200px; 
    padding: 8px 12px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
}

.modules-container .btn:hover, .measurements-container .btn:hover  , .custom-dashboard-container .btn:hover {
    background-color: #0056b3;
}

/* Ensure links don't disrupt the layout */
.modules-container a, .measurements-container a  , .custom-dashboard-container a {
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modules-container .btn, .measurements-container .btn  , .custom-dashboard-container .btn {
        width: 100%; /* Full width on smaller screens */
        flex: 1; /* Take up all available space */
    }

    .measurement-row {
        flex-direction: column;
        align-items: stretch;
    }
}

.btn-send {
    width: 40px; /* Smaller width for send button */
    height: 40px; /* Ensure it's square */
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 50%; /* Make it circular */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.btn-send:hover {
    background-color: #218838;
}

.btn-settings {
    width: 40px; /* Smaller width for settings button */
    height: 40px; /* Ensure it's square */
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%; /* Make it circular */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.btn-settings:hover {
    background-color: #0056b3;
}

.btn-send i , .btn-settings i {
    font-size: 16px; /* Adjust icon size as needed */
}

.measurement-row .button-container .module.btn:hover {
    background-color: #5a6268;
}

.measurement-name{
    width: 50%;
    padding: 10px;
    font-size: 15px;
    text-align: center;
    background-color: #8584e5;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    margin: 10px;
}

/* ===== Model Section ===== */

    /* Close Button Style */
    .close-modal {
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 25px;
        font-weight: bold;
        cursor: pointer;
        transition: transform 0.2s;
      }
    
    .close-modal:hover {
        transform: scale(1.1);
    }
    
    /* Alert Style */
    .alerta {
    background-color: salmon;
    padding: 10px;
    }
    
    body.modal-open {
    overflow: hidden;
    }
    
    /* Overlay Style */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 1000; /* Ensure it sits above other elements */
        transition: opacity 0.3s ease;
        opacity: 0;
      }
    
      /* Modal Overlay - Visible When Active */
      .modal-overlay.active {
        display: flex; /* Show the modal and center it */
        opacity: 1;
      }
    
      .modal-title {
        text-align: center;
        font-size: 1.8rem;
        margin-bottom: 15px;
      }
    
      /* Modal Content Style */
      .modal-content {
        background-color: #ffffff;
        color: #333333;
        padding: 20px 30px;
        border-radius: 8px;
        width: 500px;
        max-width: 90%;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        position: relative;
    
        max-height: 80vh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
      }

      /* Form Scrollable Area */
    .form-scroll-container {
        overflow-y: auto;
        max-height: 300px;
        margin-bottom: 20px;
    }

    .divider {
        border: none;
        border-top: 1px solid #ccc;
        margin: 15px 0;
    }

    /* Uniform label style */
    .form-group label {
        display: block;
        margin-bottom: 6px;
        text-align: left;
        font-weight: 600;
    }


    /* Uniform input style */
    .form-group .form-control {
        width: 90%; 
        padding: 8px;
        font-size: 16px;
        margin-bottom: 12px;
        box-sizing: border-box;
        border: 1px solid #ccc;
        border-radius: 4px;
        color: #333;
    }

    /* Footer Section for Buttons */
    .modal-footer {
        display: flex;
        justify-content: flex-end;
        margin-top: 20px;
        gap: 10px; /* spacing between buttons */
    }

    .modal-action-btn {
        background-color: #e0e0e0;
        color: #333;
        border: none;
        padding: 10px 16px;
        border-radius: 4px;
        font-weight: 600;
        cursor: pointer;
        transition: background-color 0.2s;
    }
      
      .modal-action-btn:hover {
        background-color: #ccc;
      }

    .bundle-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .bundle-item {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    }

    .bundle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    }

    .bundle-title {
    font-weight: 600;
    font-size: 16px;
    }

    .bundle-actions {
    display: flex;
    gap: 8px;
    }

    .med-chips , .activity-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px;
        border: 1px solid #eee;
        border-radius: 10px;
        background: #fafafa;
        max-width: 80%;
        overflow: hidden;
        max-height: 110px;
        overflow-y: auto;
    }

    .med-chip , .activity-chip {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        max-width: 100%;
        white-space: nowrap;
        padding: 6px 10px;
        border: 1px solid #ddd;
        border-radius: 999px;
        background: #fff;
        font-size: 13px;
    }

    .med-chip-name , .activity-chip-name {
    font-weight: 600;
    }

    .med-chip-form , .activity-chip-form {
    opacity: 0.75;
    }

    .med-empty,
    .bundle-empty , .activity-empty {
        font-style: italic;
        color: #777;
    }

    .med-actions , .activity-actions {
        display: flex;
        gap: 8px;
        margin-bottom: 8px;
    }

    .med-list , .activity-list {
        max-height: 300px;
        overflow-y: auto;
        border: 1px solid #ccc;
        padding: 10px;
        background: #fff;
    }

    .med-row , .activity-row {
        padding: 5px 0;
    }

    .button-group {
        display: flex;
        gap: 10px;
    }
    .button-group button {
        padding: 10px 15px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }
    .medication-log {
        margin-top: 30px;
        background-color: #f8f9fa;
        padding: 20px;
        border-radius: 8px;
        border: 1px solid #dee2e6;
    }   

    .log-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }
    
    .log-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 15px;
    }
    
    .log-table th,
    .log-table td {
        padding: 12px;
        text-align: left;
        border-bottom: 1px solid #ddd;
    }
    
    .log-table th {
        background-color: #007bff;
        color: white;
        font-weight: bold;
    }
    
    .log-table tr:hover {
        background-color: #f5f5f5;
    }
    
    .date-taken {
        color: #28a745;
        font-weight: bold;
    }
    
    .loading {
        text-align: center;
        padding: 20px;
        color: #6c757d;
    }
    
    .no-logs {
        text-align: center;
        padding: 20px;
        color: #6c757d;
        font-style: italic;
    }
    
    .filter-controls {
        display: flex;
        gap: 15px;
        margin-bottom: 15px;
        align-items: center;
    }
    
    .filter-controls label {
        font-weight: bold;
        margin-right: 5px;
    }
    
    .filter-controls input,
    .filter-controls select {
        padding: 8px;
        border: 1px solid #ccc;
        border-radius: 4px;
    }

    /* Search results styling */
    #suggestions {
        border-collapse: separate;
        border-spacing: 0;
    }

    #suggestions-body tr {
        border-bottom: 1px solid #eee;
    }

    #suggestions-body tr:last-child {
        border-bottom: none;
    }

    #suggestions-body td {
        padding: 12px;
        vertical-align: middle;
    }

    .search-bundle-row {
        background: #fff;
        border: 1px solid #e6e6e6;
        border-radius: 12px;
        display: block;
        padding: 12px;
        margin-bottom: 8px;
    }

    .search-bundle-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 10px;
    }

    .search-bundle-header form { 
        margin: 0;
        flex-shrink: 0;
    }

    .search-bundle-header .btn-add { 
        padding: 8px 16px;
        font-size: 14px;
        white-space: nowrap;
        min-width: 100px;
    }

    .search-bundle-title {
        font-weight: 600;
        font-size: 16px;
        flex-grow: 1;
    }

    .search-med-chips , .search-activity-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px;
        border: 1px solid #eee;
        border-radius: 10px;
        background: #fafafa;
        max-height: 110px;
        overflow-y: auto;
    }

    .search-med-chip , .search-activity-chip {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        white-space: nowrap;
        padding: 6px 10px;
        border: 1px solid #ddd;
        border-radius: 999px;
        background: #fff;
        font-size: 13px;
    }

    .search-med-chip-name , .search-activity-chip-name {
        font-weight: 600;
    }

    .search-med-chip-form , .search-activity-chip-description {
        opacity: 0.75;
    }