/* Custom Colors */
:root {
    --primary-color: #1a2f4a;
    --secondary-color: #3abd0e;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-bg: #f8f9fa;
    --dark-text: #343a40;
    --light-text: #ffffff;
    --lighter-blue: #2a5085; /* Lighter shade of blue for Recommended Products accordion */
    --wordpress-blue: #03172d; /* Dark blue for WordPress integration */
    --bulk-testing-primary: #007bff;
    --bulk-testing-success: #28a745;
    --bulk-testing-warning: #ffc107;
    --bulk-testing-danger: #dc3545;
}

/* General Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #3E6AA5;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    color: var(--dark-text);
}

main {
    flex: 1;
}

/* Navigation */
.navbar {
    background-color: #03172D !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    margin-bottom: 0;
    padding: 0 1rem;
    height: 56px;
}

.navbar > .container {
    position: relative;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: white !important;
    padding: 0;
}

.navbar-nav.me-auto {
    padding-top: 2px;
}

.nav-link, .nav-link.dropdown-toggle {
    color: white !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin-top: 5px;
}

.nav-link.active {
    color: var(--light-text);
}

/* Home Container */
.home-container {
    background-color: white;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 1200px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Tabs Container with Search and Filter */
.home-container .tabs-container {
    align-items: center;
    position: relative;
    display: flex;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 10px;
    padding-left: 20px;
    border-bottom: 1px solid #dee2e6;
}

.home-container .tab {
    display: inline-flex;
    align-items: center;
    height: 48px;
    padding: 0 1.5rem;
    margin-right: 5px;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    background-color: #dce0e8;
    color: #495057;
    position: relative;
    transition: all 0.2s;
}

.home-container .tab.active {
    background-color: #03172D;
    color: #fff;
    border: 1px solid #03172D;
    border-bottom: 2px solid #03172D;
    z-index: 1;
    font-weight: 500;
}

.home-container .tab:hover:not(.active) {
    background-color: #e9ecef;
}

.home-search-container {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    margin-right: 20px;
}

.home-search-container .search-box {
    position: relative;
    height: 41px;
    margin-top: 0;
    border: 1px solid #ced4da !important;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.home-search-container .search-box input {
    border-radius: 8px;
    border: 1px solid #ced4da !important;
    padding: 0.375rem 0.75rem;
    font-size: 0.9rem;
    height: 38px;
    width: 220px;
    background-color: #f8f9fa;
}

/* Search and Filter Container */
.search-filter-container {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 38px;
}

.search-box {
    position: relative;
    height: 38px;
}

.search-box input {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 0.375rem 0.75rem;
    font-size: 0.9rem;
    height: 38px;
    width: 360px;
}

.search-box input:focus {
    border-color: #ced4da;
    box-shadow: none;
    background-color: white;
}

.search-box input::placeholder {
    color: #6c757d;
    opacity: 0.8;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 5px;
    height: 38px;
}

.filter-btn {
    border: 1px solid;
    background-color: white;
    color: #333;
    padding: 0.375rem 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    border-radius: 8px;
    height: 38px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    white-space: nowrap;
    min-width: 100px;
    justify-content: center;
}

.filter-btn:hover {
    opacity: 0.9;
}

.filter-btn.in-stock {
    border-color: #28a745;
    color: #28a745;
}

.filter-btn.out-of-stock {
    border-color: #dc3545;
    color: #dc3545;
}

.filter-btn.coming-soon {
    border-color: #ffc107;
    color: #212529;
}

.filter-btn.in-stock.active {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
}

.filter-btn.out-of-stock.active {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
}

.filter-btn.coming-soon.active {
    background-color: #ffc107;
    color: #212529;
    border-color: #ffc107;
}

/* Sortable Table Headers */
.sortable {
    cursor: pointer;
    position: relative;
    padding-right: 20px !important;
    user-select: none;
    transition: background-color 0.2s;
    background-color: #03172D !important;
    color: white !important;
}

.sortable:hover {
    background-color: #14253a !important;
}

.sortable::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    opacity: 0.3;
}

.sortable.asc::after {
    border-bottom: 5px solid white;
    opacity: 1;
}

.sortable.desc::after {
    border-top: 5px solid white;
    opacity: 1;
}

/* Table Styles */
.table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead {
    background-color: #03172D;
    color: white;
}

.table thead tr {
    height: 50px;
}

.table thead th {
    padding: 12px 15px;
    font-weight: 500;
    text-align: left;
    border-bottom: none;
    position: relative;
    background-color: #03172D;
    color: white;
}

.table thead th:first-child {
    border-top-left-radius: 8px;
}

.table thead th:last-child {
    border-top-right-radius: 8px;
}

/* Removed transition to prevent any hover effects */

/* Removed row hover background color */

.table td {
    padding: 12px 15px;
    vertical-align: middle;
    border-top: 1px solid #e9ecef;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Fixed column widths */
.table th:nth-child(1), 
.table td:nth-child(1) {
    width: 15%;
}

.table th:nth-child(2), 
.table td:nth-child(2) {
    width: 25%;
}

.table th:nth-child(3), 
.table td:nth-child(3) {
    width: 20%;
}

.table th:nth-child(4), 
.table td:nth-child(4) {
    width: 110px;
}

.table th:nth-child(5), 
.table td:nth-child(5) {
    width: calc(40% - 110px + 15%);
}

.table th:nth-child(6), 
.table td:nth-child(6) {
    width: 15%;
}

/* Status Badge Styles */
.badge {
    padding: 6px 10px;
    font-weight: 500;
    font-size: 0.8rem;
    border-radius: 8px;
    display: inline-block;
    text-align: center;
    min-width: 80px;
}

.badge.bg-success {
    background-color: #28a745 !important;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .tabs-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-filter-container {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
        flex-wrap: wrap;
    }
    
    .search-box {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .filter-buttons {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .table th, 
    .table td {
        padding: 8px 10px;
    }
    
    .filter-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

/* Content Container */
.content-container {
    position: relative;
    background-color: white;
    border-radius: 8px;
    padding-top: 0.5rem;
    padding-right: 2rem;
    padding-bottom: 2rem;
    padding-left: 2rem;
}

.tab-content {
    display: none;
    padding: 0;
    background: transparent;
}

.tab-content.active {
    display: block;
    background-color: white;
    border-radius: 0 8px 8px 8px;
}

/* Logo Container */
.logo-container {
    text-align: center;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    background-color: transparent;
}

.logo-container img {
    max-width: 200px;
}

.logo-container form {
    width: 100%;
    max-width: 300px;
}

/* Button Styles */
.new-session-btn, .btn-success, .btn-primary {
    background-color: var(--secondary-color) !important;
    color: var(--light-text);
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.new-session-btn:hover {
    background-color: var(--color-primary-200) !important;
    color: var(--color-navy-800) !important;
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-success:hover {
    background-color: var(--color-primary-200) !important;
    color: var(--color-navy-800) !important;
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-primary:hover {
    background-color: var(--color-primary-200) !important;
    color: var(--color-navy-800) !important;
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.25rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    height: 40px;
}

.btn-danger {
    background-color: var(--danger-color);
    color: var(--light-text);
}

.btn-info {
    background-color: var(--info-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-info:hover {
    background-color: #138496;
    color: white;
    opacity: 0.9;
}

.btn-info i {
    margin-right: 5px;
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

/* Prescribing Session Question Containers */
.question-container {
    border-bottom: 1px solid #E9ECEF;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 65px;
    padding: 0;
    margin: 0;
}

.question-container:last-child {
    border-bottom: none;
    box-shadow: none;
}

.question-content {
    flex: 1;
    padding-left: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.question-text {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
}

.question-hint {
    font-size: 0.8rem;
    color: #6C757D;
    margin: 0;
    line-height: 1.3;
}

/* Response Toggle Buttons */
.response-toggle {
    width: auto;
    min-width: 80px;
    max-width: 100px;
    height: 34px;
    padding: 0 1rem;
    border: 1px solid #ced4da;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-weight: 500;
    border-radius: 0.25rem;
    margin: 0 15px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.response-toggle.active {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    font-weight: 600;
}

.response-toggle[data-value="Yes"] {
    border-color: var(--secondary-color);
    background-color: var(--secondary-color);
    color: white;
}

.response-toggle[data-value="No"] {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: white;
}

.response-toggle:hover {
    opacity: 0.9;
}

/* Button Group Styling */
.btn-group {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

/* Time Options for Cannabis Preferences */
.time-options-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-right: 15px;
}

.time-option {
    display: flex;
    align-items: center;
}

.time-label {
    font-weight: 500;
    margin-right: 10px;
}

/* Search Container */
.search-container {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.search-container input {
    flex: 1;
    max-width: 340px;
    height: 42px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.75rem;
}

/* Remove focus styles for search input */
.search-container input:focus {
    outline: none;
    box-shadow: none;
    border-color: #dee2e6;
}

.search-container .btn {
    height: 42px;
    padding: 0 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Table Styles */
.table-responsive {
    margin-top: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: white;
}

.table {
    margin-bottom: 0;
    border-collapse: collapse !important;
    width: 100%;
}

.table thead th {
    background-color: #03172D;
    color: white;
    padding: 1rem;
    font-weight: 500;
    border: none;
}

#recentPrescriptions tr {
    height: 60px !important;
    border-bottom: 1px solid #dee2e6;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
    transform-origin: top;
    background-color: white;
    display: table-row;
}

.table tbody td {
    padding: 10px 16px;
    vertical-align: middle !important;
    background-color: white;
    height: 60px !important;
    line-height: 1.2;
    border-bottom: 1px solid #dee2e6;
}

/* Action Cell */
.home-prescriptions-table .actions-cell {
    white-space: nowrap;
    min-width: 250px;
    padding: 10px 16px !important;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: inherit;
    height: 60px !important;
    border-bottom: none !important;
    gap: 0.5rem;
    background-color: white;
}

/* Action Button Styles */
.btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    height: 32px !important;
    line-height: 1;
    white-space: nowrap;
    margin: 0;
    flex-shrink: 0;
}

.btn-sm:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: white; /* Keep the text color white on hover */
}

.btn-view {
    background-color: rgba(255,255,255,.9) !important;
    color: var(--color-navy-800) !important;
    border: 1px solid var(--color-primary-200) !important;
}

.btn-view:hover {
    background-color: rgba(255,255,255,.95) !important;
    color: var(--color-navy-800) !important;
}

.btn-continue {
    background-color: var(--secondary-color) !important;
    color: white;
}

.btn-continue:hover {
    background-color: var(--color-primary-200) !important;
    color: var(--color-navy-800) !important;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
}

.btn-delete:hover {
    background-color: #c82333;
}

/* Disclaimer Modal Styles */
.disclaimer-content h4 {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.disclaimer-content h4:first-child {
    margin-top: 0;
}

.disclaimer-content p {
    margin-bottom: 1rem;
}

.disclaimer-content ul {
    margin-bottom: 1.5rem;
}

.disclaimer-content li {
    margin-bottom: 0.5rem;
}

.disclaimer-divider {
    margin: 1.5rem 0;
    border-top: 1px solid #dee2e6;
}

.disclaimer-content .form-check {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    padding-left: 1.5rem; /* Move the entire checkbox group to the right */
}

.disclaimer-content .form-check.highlight {
    background-color: #fff3cd; /* Yellow highlight */
}

.disclaimer-content .form-check-input {
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0; /* Remove top margin to center vertically */
    flex-shrink: 0; /* Prevent checkbox from shrinking */
    position: relative; /* Override Bootstrap's absolute positioning */
    margin-left: 0; /* Override Bootstrap's negative margin */
    float: none; /* Override Bootstrap's float */
}

.disclaimer-content .form-check-input:checked {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.disclaimer-content .form-check-label {
    font-weight: 600;
    font-size: 1.1rem;
    padding-left: 0.75rem;
    margin-bottom: 0; /* Remove bottom margin to center vertically */
    display: flex;
    align-items: center;
    min-height: 1.5rem; /* Match checkbox height */
}

#disclaimerModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding: 1.5rem;
}

#disclaimerModal .modal-content {
    border-radius: 8px;
}

#disclaimerModal .modal-header {
    background-color: var(--primary-color);
    color: white;
    border-bottom: none;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 1rem 1.5rem;
}

#disclaimerModal .modal-footer {
    border-top: none;
    padding: 1rem 1.5rem 1.5rem;
}

#disclaimerModal .btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

#disclaimerModal .btn-primary:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    opacity: 0.65;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .table td, 
    .table th {
        padding: 0.75rem 0.5rem;
    }
    
    .actions-cell {
        flex-wrap: wrap;
    }
    
    .btn-sm {
        padding: 0.25rem 0.4rem;
    }
}

/* Modal Styles */
.modal-backdrop.show {
    opacity: 0.5;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-dialog {
    max-width: 1156px;
}

.modal-content {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-header {
    padding: 0.75rem 1rem;
    background: none;
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
}

.modal-body {
    padding: 1.5rem 2rem 1.5rem 2rem;
    background: none;
}

.modal-footer {
    padding: 0.75rem 1rem;
    margin-top: 0;
    border-top: 1px solid #dee2e6;
}

/* Profile Styles */
.user-profile-details {
    margin: 0;
    padding: 0;
    background-color: white;
    border-radius: 8px;
}

.user-profile-details p {
    margin-bottom: 0.5rem;
}

.profile-item {
    margin-bottom: 0.75rem;
}

.profile-item:last-child {
    margin-bottom: 0;
}

.profile-item label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: var(--dark-text);
    font-size: 0.875rem;
}

.profile-item input {
    height: 34px;
    padding: 0.375rem 0.75rem;
    background: white;
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.profile-item input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 47, 74, 0.25);
}

.profile-item input:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
    color: #6c757d;
}

.profile-item p {
    margin: 0;
    padding: 0.5rem;
    border-radius: 4px;
}

/* Alert Styles */
.alert {
    border-radius: 4px;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Toast Alert Styles - Consistent styling for all toast notifications */
.toast-container .alert {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 4px;
    color: #fff;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 400px;
    opacity: 1;
    animation: fadeIn 0.3s ease-out;
}

.toast-container .alert-success {
    background-color: #2ecc71 !important;
    color: #fff !important;
}

.toast-container .alert-danger {
    background-color: #e74c3c !important;
    color: #fff !important;
}

.toast-container .alert-warning {
    background-color: #f39c12 !important;
    color: #fff !important;
}

.toast-container .alert-info {
    background-color: #3498db !important;
    color: #fff !important;
}

/* Animation for toast alerts */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Status and Button Styles */
.btn-edit {
    background-color: #ffc107;
    color: #000;
}

.btn-edit:hover {
    background-color: #e0a800;
    color: #000;
}

/* Delete Confirmation Modal */
.modal-confirm {
    color: #636363;
}

.modal-confirm .modal-content {
    padding: 20px;
    border-radius: 5px;
    border: none;
}

.modal-confirm .modal-header {
    border-bottom: none;
    position: relative;
}

.modal-confirm .modal-title {
    text-align: center;
    font-size: 26px;
    margin: 30px 0 -15px;
}

.modal-confirm .modal-footer {
    border: none;
    text-align: center;
    border-radius: 5px;
    font-size: 13px;
}

.modal-confirm .icon-box {
    color: #fff;
    position: absolute;
    margin: 0 auto;
    left: 0;
    right: 0;
    top: -70px;
    width: 95px;
    height: 95px;
    border-radius: 50%;
    z-index: 9;
    background: #dc3545;
    padding: 15px;
    text-align: center;
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1);
}

.modal-confirm .icon-box i {
    font-size: 58px;
    position: relative;
    top: 3px;
}

.modal-confirm .modal-dialog {
    margin-top: 80px;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.progress-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.progress-step::before {
    content: '';
    height: 2px;
    background-color: #e9ecef;
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    z-index: -1;
}

.progress-step.active::before {
    background-color: var(--primary-color);
}

.progress-step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
}

.progress-step.active .progress-step-circle {
    background-color: var(--primary-color);
    color: white;
}

.progress-step-label {
    font-size: 0.875rem;
    color: #6c757d;
}

.progress-step.active .progress-step-label {
    color: var(--primary-color);
    font-weight: bold;
}

/* Animation */
.fade-enter {
    opacity: 0;
}

.fade-enter-active {
    opacity: 1;
    transition: opacity 300ms ease-in;
}

.fade-exit {
    opacity: 1;
}

.fade-exit-active {
    opacity: 0;
    transition: opacity 300ms ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tabs-container {
        flex-direction: column;
    }
    
    .tab {
        text-align: center;
        padding: 10px;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .home-container {
        margin: 10px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Result Item Styles */
.result-item {
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
}

.result-item:last-child {
    border-bottom: none;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.toast {
    min-width: 250px;
    max-width: 400px;
    background-color: #333;
    color: white;
    border-radius: 5px;
    padding: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0.95;
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
}

.toast-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
}

.toast-message {
    flex-grow: 1;
    font-size: 14px;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0 0 0 10px;
    opacity: 0.7;
}

.toast-close:hover {
    opacity: 1;
}

.toast-info {
    background-color: #3498db;
}

.toast-success {
    background-color: #2ecc71;
}

.toast-warning {
    background-color: #f39c12;
}

.toast-error {
    background-color: #e74c3c;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 0.95;
    }
}

/* Prescribing Session Styles */
.prescribing-session-container {
    background-color: #ffffff00;
    min-height: calc(100vh - 56px);
    padding: 20px;
    max-width: 1200px;
    margin-top: 20px;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 20px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
}

/* Session Tabs */
.session-tabs {
    display: flex;
    gap: 2px;
    background-color: #dcdcdc;
    padding: 12px 15px 0;
    border-radius: 8px 8px 0 0;
    position: relative;
    align-items: center;
    min-height: 56px;
    flex-wrap: wrap;
}

.session-tab {
    padding: 12px 24px;
    color: white;
    text-decoration: none;
    border-radius: 8px 8px 0 0;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 0.9rem;
    height: 44px;
    display: flex;
    align-items: center;
    background-color: #808080; /* Default grey state */
    cursor: pointer;
    opacity: 0.7;
    border: none;
    outline: none;
}

.session-tab.active {
    background-color: #03172D; /* Blue state */
    color: #ffffff;
    cursor: pointer;
    opacity: 1;
    pointer-events: auto;
}

.session-tab.completed {
    background-color: #28A745; /* Green state */
    color: #ffffff;
    cursor: pointer;
    opacity: 1;
    pointer-events: auto;
}

.session-tab.disabled {
    background-color: #808080; /* Grey state */
    color: #ffffff;
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
}

.session-tab:not(.disabled):hover {
    opacity: 0.9;
}

.session-tab:focus {
    outline: none;
}

.session-id-container {
    position: absolute;
    right: 15px;
    color: #212529;
    font-size: 0.9rem;
    height: 44px;
    display: flex;
    align-items: center;
}

.session-content {
    background-color: white;
    border-radius: 0 !important;
    padding: 30px 30px;
    margin-bottom: 0;
}

.session-content-results {
    background-color: white;
    border-radius: 0;
    padding: 30px 30px;
    margin-bottom: 0;
}

.session-footer-container {
    background-color: var(--color-primary-700) !important;
    border-radius: 0 0 8px 8px;
    padding: 15px 20px;
    border-top: 2px solid var(--color-primary-200) !important;
}

.session-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Consistent button styling for session footer */
.btn-exit,
.btn-info,
.btn-session-continue {
    height: 37px;
    padding: 8px 24px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    min-width: 120px;
    text-decoration: none !important;
}

.btn-exit {
    background-color: #DC3545;
    color: white;
    border: none;
}

.btn-exit:hover {
    background-color: #c82333;
    color: white;
    opacity: 0.9;
    transform: translateY(-1px);
    text-decoration: none !important;
}

.btn-exit i {
    font-size: 1rem;
}

.btn-info {
    background-color: var(--info-color);
    color: white;
    border: none;
    font-size: 1rem;
}

.btn-info:hover {
    background-color: #138496;
    color: white;
    opacity: 0.9;
}

.btn-info i {
    font-size: 1rem;
}

.btn-session-continue {
    background-color: var(--secondary-color) !important;
    color: white;
    border: none;
    font-size: 1rem;
}

.btn-session-continue:hover {
    background-color: var(--color-navy-800) !important;
    color: var(--color-white) !important;
    opacity: 0.9;
    transform: translateY(-1px);
    text-decoration: none !important;
}

.btn-session-continue i {
    font-size: 1rem;
}

/* Page Header Styles */
.page-header {
    margin-bottom: 20px;
    padding: 15px 20px;
    background-color: #f8f9fa;
}

.page-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.page-header .subtext {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

/* Medical History Question Styles */
.medical-history-container {
    max-width: 100%;
}

/* Final Options Page Styles */
.form-select {
    position: relative;
    width: 560px !important;
    padding: 7px;
    border-radius: 5px;
    text-align: left;
    background-color: white !important;
    color: black !important;
    border: 2px solid #dc3545;
}

.form-select:focus {
    border-color: #03172D;
    box-shadow: 0 0 5px rgba(3, 23, 45, 0.25);
    outline: 0;
}

/* Style for the placeholder option */
.form-select option[value=""][disabled] {
    color: #6c757d;
}

/* Style for the select element when showing placeholder */
.form-select:invalid {
    color: #6c757d;
}

/* Style for actual options */
.form-select option:not([value=""][disabled]) {
    color: #212529;
}

/* Ensure options remain white with dark text when focused/selected */
.form-select:focus option {
    background-color: white !important;
    color: black !important;
}

/* Severity and Onset Buttons */
.severity-buttons,
.onset-buttons {
    display: flex;
    gap: 10px;
    margin-right: 15px;
    align-items: center;
    height: 34px;
}

.severity-btn,
.onset-btn {
    width: auto;
    min-width: 120px;
    height: 34px;
    padding: 0 1rem;
    border: 1px solid #ced4da;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-weight: 500;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Make onset buttons wider to match width of the three severity buttons */
.onset-btn {
    min-width: calc(360px / 2 - 5px); /* Total width of 3 buttons is ~360px, so each of 2 buttons should be ~175px */
}

.severity-btn.active,
.onset-btn.active {
    border-color: var(--color-blue-500) !important;
    background-color: var(--color-blue-500) !important;
    color: var(--color-white) !important;
}

.severity-btn:hover,
.onset-btn:hover {
    opacity: 0.9;
}

/* Product name input capitalization */
.product-name-input {
    text-transform: capitalize;
}

/* Fix Dropdown Alignment for compact dropdowns */
.form-select-compact {
    height: 38px;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    width: 100% !important;
    max-width: 100% !important;
    background-color: white !important;
    color: black !important;
    border: 1px solid #ced4da;
    text-align: left;
}

/* Product management buttons */
#add-product .btn-success,
#add-product .btn-secondary {
    padding: 8px 24px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    min-width: 120px;
    font-size: 1rem;
}

#add-product .btn-success {
    background-color: var(--secondary-color) !important;
    color: white;
    border: none;
}

#add-product .btn-success:hover {
    background-color: var(--color-primary-200) !important;
    color: var(--color-navy-800) !important;
    opacity: 0.9;
    transform: translateY(-1px);
}

#add-product .btn-secondary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

#add-product .btn-secondary:hover {
    background-color: #14253a;
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Edit modal styles */
#editProductModal .modal-content {
    border-radius: 12px;
}

#editProductModal .modal-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: 10px 10px 0 0;
}

#editProductModal .modal-title {
    font-weight: 600;
}

#editProductModal .btn-close {
    filter: brightness(0) invert(1);
}

#editProductModal .form-label {
    font-weight: 500;
    color: var(--primary-color);
    display: block;
    width: 100%;
    text-align: left;
    padding-left: 0;
}

#editProductModal .btn-success,
#editProductModal .btn-secondary,
#editProductModal .btn-danger {
    padding: 8px 24px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    min-width: 120px;
    font-size: 1rem;
}

#editProductModal .btn-success {
    background-color: var(--secondary-color) !important;
    color: white;
    border: none;
}

#editProductModal .btn-success:hover {
    background-color: var(--color-primary-200) !important;
    color: var(--color-navy-800) !important;
    opacity: 0.9;
    transform: translateY(-1px);
}

#editProductModal .btn-secondary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

#editProductModal .btn-secondary:hover {
    background-color: #14253a;
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Delete confirmation modal styling */
#deleteConfirmModal .modal-dialog {
    max-width: 620px;
}

#deleteConfirmModal .modal-content {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

#deleteConfirmModal .modal-header {
    background-color: #03172D;
    color: white;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 1rem;
}

#deleteConfirmModal .modal-title {
    font-weight: 500;
    color: white;
}

#deleteConfirmModal .btn-close {
    filter: brightness(0) invert(1);
}

#deleteConfirmModal .modal-body {
    padding: 1.5rem;
}

#deleteConfirmModal .modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem;
}

/* Ensure modal backdrop is properly darkened */
.modal-backdrop.show {
    opacity: 0.5 !important;
}

/* Results Page Styles */
.results-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.session-id {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.accordion-item {
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    overflow: hidden;
}

.accordion-button {
    padding: 1.25rem;
    font-size: 1.1rem;
    font-weight: 500;
    background-color: #f8f9fa;
    border: none;
    border-radius: 0.5rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.125);
}

.accordion-body {
    padding: 1.25rem;
    background-color: #ececec;
}

.results-page .accordion-body {
    padding: 1.25rem;
    background-color: #dc3545;
}

.notes-section textarea {
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 0.75rem;
    font-size: 1rem;
    resize: vertical;
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding: 1rem 0;
}

.right-buttons {
    display: flex;
    gap: 1rem;
}

.btn-danger.exit-btn {
    padding: 0.5rem 1.5rem;
}

.btn-login {
    -webkit-appearance: button; /* Vendor prefix for WebKit browsers */
    appearance: button; /* Standard property for compatibility */
    height: 52px;
    background-color: var(--color-primary-700);
    border: none;
    border-radius: 4px;
    color: white;
}

.btn-primary.copy-btn,
.btn-success.open-btn {
    padding: 0.5rem 1.5rem;
}

/* Responsive styles for results page */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .right-buttons {
        width: 100%;
        flex-direction: column;
    }

    .btn-danger.exit-btn,
    .btn-primary.copy-btn,
    .btn-success.open-btn {
        width: 100%;
    }
}

/* Results Page Header */
.results-header {
    background-color: var(--primary-color);
    padding: 1.25rem 2rem;
    border-radius: 8px 8px 0 0;
}

.results-header h1 {
    color: white;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 500;
}

/* Results Page Accordion Styles */
.prescribing-session-container .accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.125);
    margin-bottom: 20px !important; 
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.prescribing-session-container .accordion-button {
    padding: 1.25rem;
    font-size: 1.1rem;
    font-weight: 500;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
}

.prescribing-session-container .accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
    box-shadow: none;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* Bulk Testing Dashboard Styles */
.bulk-testing-container .card-header {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.bulk-testing-container .card-header h4,
.bulk-testing-container .card-header h5 {
    color: white !important;
}

.bulk-testing-container .btn-primary {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

.prescribing-session-container .accordion-button::after {
    filter: brightness(0) invert(1);
}

.prescribing-session-container .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.prescribing-session-container .accordion-button:focus {
    box-shadow: none;
    outline: none;
}

.prescribing-session-container .accordion-collapse {
    border-top: none;
}

.prescribing-session-container .accordion-body {
    background-color: #e8e8e8;
    padding: 20px;
}

/* Results Page Footer Buttons */
.prescribing-session-container .footer-right {
    display: flex;
    gap: 1rem;
}

.prescribing-session-container .btn-secondary.copy-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    min-width: 120px;
}

.prescribing-session-container .btn-continue.open-btn {
    background-color: var(--secondary-color);
}

/* Responsive styles for results page */
@media (max-width: 768px) {
    .prescribing-session-container .footer-right {
        flex-direction: column;
        width: 100%;
    }

    .prescribing-session-container .btn-secondary.copy-btn,
    .prescribing-session-container .btn-continue.open-btn {
        width: 100%;
    }
}

/* Add consistent border radius to the content areas */
.notes-section, 
.pathway-section,
.monitoring-content {
    background: #f8f9fa;
    border-radius: 8px !important;
    padding: 15px;
    margin-bottom: 0;
}

/* Style for the consideration sections */
.consideration-section {
    margin-bottom: 15px;
    padding-bottom: 15px;
}

.consideration-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.consideration-section h4 {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 8px;
}

/* Style for notes content */
.notes-content {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    white-space: pre-wrap;
    line-height: 1.5;
    color: #212529;
    min-height: 50px;
}

/* Styles for the treatment info section */
.treatment-info {
    background-color: #fff !important;
    padding: 15px;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.treatment-field {
    margin-bottom: 15px;
}

.treatment-field:last-child {
    margin-bottom: 0;
}

.treatment-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.treatment-field strong {
    color: var(--primary-color);
    flex: 0 0 50%;
    font-size: 1.1rem;
}

.treatment-value {
    text-align: right;
    flex: 0 0 50%;
    font-weight: 500;
    line-height: 1.5;
    color: #212529;
}

/* Update the pathway container styling */
.pathway-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pathway-section {
    background-color: #fff !important;
    border-radius: 8px !important;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pathway-section h3 {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 8px;
}

.pathway-content, .monitoring-content {
    background-color: #fff !important;
    border-radius: 8px !important;
    line-height: 1.5;
    white-space: pre-wrap;
    min-height: 120px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .pathway-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Recent Prescriptions Table Styles */
.home-prescriptions-table .actions-cell {
    white-space: nowrap;
    min-width: 250px;
    padding: 10px 16px !important;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: inherit;
    height: 60px !important;
    border-bottom: none !important;
    gap: 0.5rem;
    background-color: white;
}

/* Manage Products specific styles */
.manage-products .tab {
    display: inline-flex;
    align-items: center;
    height: 48px !important;
    padding: 0 1.5rem;
    margin-right: 5px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    background-color: #f0f0f0;
    color: #495057;
    position: relative;
    transition: all 0.2s ease;
}

.manage-products .tab.active {
    background-color: #03172D;
    color: #fff;
    border: 1px solid #03172D;
    border-bottom: 2px solid #03172D;
    margin-bottom: -1px;
    z-index: 1;
    font-weight: 500;
}

.manage-products .tab:hover:not(.active) {
    background-color: #e9ecef;
}

.manage-products #all-products .table-responsive {
    margin-top: 0;
}

/* Specific styles for My Recent Prescriptions table */
#recent-prescriptions .table th:last-child {
    width: 350px;
}

#recent-prescriptions .actions-cell {
    white-space: nowrap;
    min-width: 350px;
    width: 350px;
    padding: 10px 16px !important;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: inherit;
    height: 60px !important;
    border-bottom: none !important;
    gap: 0.75rem;
    background-color: white;
}

#recent-prescriptions .actions-cell .btn {
    margin-right: 5px;
    min-width: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#recent-prescriptions .actions-cell .btn-view,
#recent-prescriptions .actions-cell .btn-primary {
    min-width: 100px;
}

/* Edit Product Modal specific styles */
#editProductModal .modal-dialog {
    max-width: 1110px;
}

/* Darker background for the Edit Product modal */
#editProductModal.modal {
    background-color: rgba(0, 0, 0, 0.7); /* Darker background */
}

/* Make sure the backdrop is also darker */
#editProductModal + .modal-backdrop {
    opacity: 0.7;
}

/* Confirmation Modal */
.confirmation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    justify-content: center;
    align-items: center;
}

.confirmation-modal.show {
    display: flex;
}

.confirmation-modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.confirmation-modal-content h4 {
    margin-top: 0;
    color: var(--color-navy-800) !important;
    font-weight: 600;
}

.confirmation-modal-content p {
    color: var(--color-navy-800) !important;
    margin-bottom: 20px;
}

.confirmation-modal-buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    gap: 10px;
}

.confirmation-modal-button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.confirmation-modal-button.confirm {
    background-color: var(--color-primary-700) !important;
    color: var(--color-white) !important;
    border: 1px solid var(--color-primary-700) !important;
}

.confirmation-modal-button.confirm:hover {
    background-color: var(--color-navy-800) !important;
    color: var(--color-white) !important;
    border-color: var(--color-navy-800) !important;
}

.confirmation-modal-button.cancel {
    background-color: var(--color-primary-200) !important;
    color: var(--color-navy-800) !important;
    border: 1px solid var(--color-primary-200) !important;
}

.confirmation-modal-button.cancel:hover {
    background-color: var(--color-navy-800) !important;
    color: var(--color-white) !important;
    border-color: var(--color-navy-800) !important;
}

/* WordPress Session Expired Page Styles */
.wp-session-expired-header {
    background-color: var(--wordpress-blue);
    color: var(--light-text);
    text-align: center;
}

.wp-session-expired-body {
    text-align: center;
    padding: 3rem !important;
}

.wp-return-button {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 0.75rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 4px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.wp-return-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    color: var(--light-text);
    text-decoration: none;
}

/* Final Options Page Specific Styles */
.question-container .form-select {
    margin-right: 15px;
    width: 560px !important;
}

/* Make sure the question containers have enough height for the buttons */
.question-container {
    min-height: 65px;
    height: auto;
}

/* Ensure the buttons are properly aligned */
.severity-buttons,
.onset-buttons {
    display: flex;
    gap: 10px;
    margin-right: 15px;
    align-items: center;
    height: 34px;
}

/* Make the buttons consistent in size */
.severity-btn,
.onset-btn {
    width: auto;
    min-width: 180px;
    height: 34px;
    padding: 0 1rem;
    border: 1px solid #ced4da;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-weight: 500;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.severity-btn.active,
.onset-btn.active {
    border-color: var(--color-blue-500) !important;
    background-color: var(--color-blue-500) !important;
    color: var(--color-white) !important;
}

.severity-btn:hover,
.onset-btn:hover {
    opacity: 0.9;
}

/* Session Information Modal Styles */
.modal-layout-container {
    display: flex;
    gap: 2rem;
    height: 100%;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.values-section {
    flex: 0 0 280px; /* Reduced by 20% from 350px */
    border-right: 1px solid #dee2e6;
    padding-right: 2rem;
    overflow: visible;
}

.api-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #dee2e6;
    color: var(--primary-color);
}

.api-tabs {
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    gap: 0.5rem;
}

.api-tab {
    background: #f0f0f0;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    color: #333333; /* Dark text for better visibility */
    font-weight: 500;
    transition: all 0.2s ease;
}

.api-tab:hover:not(.active) {
    background: #e0e0e0;
}

.api-tab.active {
    background: var(--primary-color);
    color: white;
}

.has-data-indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #28a745;
}

.api-response-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 4px;
}

/* Accordion styles for response sections */
.response-section {
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
}

.response-section-header {
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.2s;
}

.response-section-header:hover {
    background-color: #e9ecef;
}

.response-section-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--primary-color);
}

.response-section-header .toggle-icon {
    transition: transform 0.3s;
}

.response-section-header.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.response-section-content {
    padding: 1rem;
    display: none;
}

.response-section-content.open {
    display: block;
}

.user-responses {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.response-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
}

.response-item:last-child {
    border-bottom: none;
}

.response-label {
    flex: 0 0 450px; /* Extended to accommodate longer labels */
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.response-value {
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    text-align: center;
    min-width: 60px;
}

.yes-value {
    background-color: #d4edda;
    color: #155724;
}

.no-value {
    background-color: #f8d7da;
    color: #721c24;
}

.value-group {
    margin-bottom: 1.5rem;
}

.value-group:last-child {
    margin-bottom: 0;
}

.group-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    padding-left: 20px; /* Added indentation */
}

.value-item {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    border-bottom: 1px solid #eee;
}

.value-item:last-child {
    border-bottom: none;
}

.value-label {
    font-weight: 500;
    padding-right: 1rem;
}

.value-state {
    font-weight: 600;
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    text-align: center;
    min-width: 60px;
}

.value-state.true {
    background-color: #d4edda;
    color: #155724;
}

.value-state.false {
    background-color: #f8d7da;
    color: #721c24;
}

.values-content {
    overflow-y: auto;
    max-height: 870px;
}

.error {
    color: #721c24;
    background-color: #f8d7da;
    padding: 1rem;
    border-radius: 4px;
}

.no-data {
    color: #6c757d;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

/* Modal specific overrides */
#localStorageModal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 1400px;
    margin: 0 auto;
}

#localStorageModal .modal-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: 12px 12px 0 0;
    padding: 1rem 1.5rem;
}

#localStorageModal .modal-title {
    font-weight: 600;
    color: white;
}

#localStorageModal .modal-body {
    padding: 1.5rem;
    max-height: none;
    overflow-y: visible;
}

#localStorageModal .btn-close {
    color: white;
    opacity: 0.8;
    filter: brightness(0) invert(1);
}

#localStorageModal .btn-close:hover {
    opacity: 1;
}

/* Additional modal styling to ensure consistency */
.local-storage-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

@media (max-width: 992px) {
    .modal-layout-container {
        flex-direction: column;
    }
    
    .values-section {
        flex: 0 0 auto;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
        padding-right: 0;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
}

/* Additional modal styling to ensure consistency */
.modal-dialog.modal-xl {
    max-width: 1400px;
    width: 95%;
    margin: 1.75rem auto;
}

.modal-backdrop.show {
    opacity: 0.5;
}

.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: none;
}

/* Fix for modal scrolling */
body.modal-open {
    overflow: auto;
    padding-right: 0 !important;
}

.modal {
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.api-json {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    font-family: monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
    max-height: 650px;
    overflow-y: auto;
}

.notes-content {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    white-space: pre-wrap;
    max-height: 400px;
    overflow-y: auto;
}

/* Ensure consistent modal styling */
.local-storage-grid {
    display: flex;
}

/* Product Rules Page - Core Styles */
.product-rules-container {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
}

.product-rules-container h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 25px;
}

/* Bulk Testing Container - Matching Product Rules */
.bulk-testing-container {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
}

.bulk-testing-container h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 600;
}

/* Bulk Testing Tabs */
.bulk-testing-container .nav-tabs {
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 2rem;
}

.bulk-testing-container .nav-tabs .nav-link {
    color: var(--primary-color);
    font-weight: 500;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1.5rem;
}

.bulk-testing-container .nav-tabs .nav-link:hover {
    border-color: transparent;
    background-color: rgba(58, 189, 14, 0.1);
}

.bulk-testing-container .nav-tabs .nav-link.active {
    color: var(--secondary-color);
    background-color: transparent;
    border-bottom-color: var(--secondary-color);
    font-weight: 600;
}

/* Bulk Testing Filter Section - Matching Product Rules */
.bulk-testing-container .filter-section {
    padding-top: 10px;
    padding-right: 20px;
    padding-bottom: 10px;
    border-radius: 5px;
}

.bulk-testing-container .filter-group {
    margin-bottom: 15px;
}

.bulk-testing-container .filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.bulk-testing-container .filter-button-container {
    display: flex;
    align-items: flex-end;
    height: 50px;
    margin-bottom: 15px;
}

.bulk-testing-container #runTestsBtn {
    height: 39px;
    padding: 0 1.5rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #3abd0e !important;
    border-color: #3abd0e !important;
}

.bulk-testing-container #runTestsBtn:hover {
    opacity: 0.9;
    transform: none !important;
}

/* Progress Section */
.bulk-testing-container .progress-section {
    background-color: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    display: none;
}

/* Sessions Table - Matching Product Rules */
.bulk-testing-container .table thead th {
    background-color: #03172D !important;
    color: white !important;
    position: relative;
    border-color: #03172D !important;
}

.bulk-testing-container th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 25px !important;
}

.bulk-testing-container th.sortable:hover {
    background-color: #14253a !important;
}

.bulk-testing-container th.sortable::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid rgba(255, 255, 255, 0.5);
}

.bulk-testing-container th.sortable.asc::after {
    border-bottom: 5px solid white;
}

.bulk-testing-container th.sortable.desc::after {
    border-bottom: none;
    border-top: 5px solid white;
}

/* Filter Section - New Structure */
.product-rules-container .filter-section {
    padding-top: 10px;
    padding-right: 20px;
    padding-bottom: 10px;
    border-radius: 5px;
}

.product-rules-container .filter-group {
    margin-bottom: 15px;
}

.product-rules-container .filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

/* Specific widths for form-selects in product rules */
.product-rules-container .symptom-filter .form-select {
    width: 100% !important;
    max-width: 620px !important;
}

.product-rules-container .severity-filter .form-select, 
.product-rules-container .onset-filter .form-select {
    width: 100% !important;
    max-width: 230px !important;
}

/* Filter button container */
.product-rules-container .filter-button-container {
    display: flex;
    align-items: flex-end;
    height: 50px;
    padding-bottom: 0;
    margin-top: 20px;
}

/* Filter button styling */
.product-rules-container #filterButton {
    height: 39px;
    padding: 0 1.5rem;
    white-space: nowrap;
    margin-top: 30px;
    min-width: 150px;
    font-weight: 500;
    font-size: 1rem;
    color: white !important;
    transition: background-color 0.2s;
    transform: none !important;
    border: none;
    text-align: center;
    justify-content: center;
}

.product-rules-container #filterButton.btn-success {
    background-color: #3abd0e !important;
}

.product-rules-container #filterButton:hover {
    opacity: 0.9;
    transform: none !important;
}

.product-rules-container #filterButton.btn-warning {
    background-color: #6c757d !important;
    color: white !important;
    font-size: 1rem;
    font-weight: 500;
}

/* Table styling */
.product-rules-container .table thead th {
    background-color: #03172D !important;
    color: white !important;
    position: relative;
    padding-right: 25px;
}

/* Sortable headers */
.product-rules-container th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 25px !important;
}

.product-rules-container th.sortable:hover {
    background-color: #14253a !important;
}

.product-rules-container th.sortable::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    margin-top: -2px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid rgba(255, 255, 255, 0.5);
}

.product-rules-container th.sortable.asc::after {
    border-bottom: 5px solid white;
}

.product-rules-container th.sortable.desc::after {
    border-bottom: none;
    border-top: 5px solid white;
}

/* Product link styling */
.product-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-link:hover {
    color: #2c4c7c;
    text-decoration: underline;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.toast {
    min-width: 250px;
    max-width: 400px;
    background-color: #333;
    color: white;
    border-radius: 5px;
    padding: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0.95;
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
}

.toast-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
}

.toast-message {
    flex-grow: 1;
    font-size: 14px;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0 0 0 10px;
    opacity: 0.7;
}

.toast-close:hover {
    opacity: 1;
}

.toast-info {
    background-color: #3498db;
}

.toast-success {
    background-color: #2ecc71;
}

.toast-warning {
    background-color: #f39c12;
}

.toast-error {
    background-color: #e74c3c;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 0.95;
    }
}

/* Product Rules Modal */
#productModal .modal-content {
    width: 100%;
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 382px;
}

#productModal .modal-header {
    background-color: #03172D;
    color: white;
    border-radius: 10px 10px 0 0;
}

#productModal .modal-title {
    color: white;
    font-weight: 600;
}

#productModal .btn-close {
    filter: brightness(0) invert(1);
}

#productModal .modal-body {
    padding: 1.5rem;
}

#productModal .modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem;
}

/* Manage Products Tab Alignment */
.manage-products .tabs-container {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    margin-bottom: 10px;
    padding: 0 20px;
    border-bottom: 1px solid #dee2e6;
}

.manage-products .tab {
    display: inline-flex;
    align-items: center;
    height: 48px;
    padding: 0 1.5rem;
    margin-right: 5px;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    background-color: #dce0e8;
    color: #495057;
    position: relative;
    transition: all 0.2s ease;
}

.manage-products .tab.active {
    background-color: #03172D;
    color: #fff;
    border: 1px solid #03172D;
    border-bottom: 2px solid #03172D;
    margin-bottom: -1px;
    z-index: 1;
    font-weight: 500;
}

/* Profile Modal Width */
#profileModal .modal-dialog {
    max-width: 500px;
}

#profileModal .modal-content {
    border-radius: 8px;
}

#profileModal .modal-header {
    background-color: #03172D;
    color: white;
    border-radius: 5px 5px 0 0;
}

#profileModal .btn-close {
    filter: brightness(0) invert(1);
}

/* Product modal width */
#productModal .modal-dialog {
    max-width: 620px;
}

/* Results Page Specific Styles - Moved from results.html */
.results-page {
    margin-top: 0; /* Reduced from 15px to move everything up */
}

/* Session Viewer Styles */
.main-content-wrap {
    background-color: #3E6AA5;
    min-height: calc(100vh - 56px);
    padding-top: 30px;
    padding-bottom: 30px;
}

.session-viewer-container {
    background-color: white;
    border-radius: 10px;
    padding: 25px 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.page-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.75rem;
}

.page-description {
    color: #6c757d;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.session-controls {
    margin-bottom: 30px;
}

.form-label {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.search-input-container {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.search-input-container {
    max-width: 250px; /* Limit width for session ID searches */
}

.search-input {
    padding-left: 40px;
    height: 46px;
    border-radius: 8px;
    background-color: #f8f9fa;
    border-color: #e9ecef;
}

.search-input:focus {
    background-color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(26, 47, 74, 0.15);
    border-color: var(--primary-color);
}

/* Filter controls styles */
.filter-controls {
    display: flex;
    gap: 16px;
}

.filter-select-container {
    width: 180px; /* Fixed width for filter dropdowns */
}

.form-select {
    height: 46px;
    border-radius: 8px;
    background-color: #f8f9fa;
    border-color: #e9ecef;
    width: 100%;
}

.form-select:focus {
    background-color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(26, 47, 74, 0.15);
    border-color: var(--primary-color);
}

.sessions-table-wrapper {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.sessions-table-container {
    margin-bottom: 0;
    overflow-x: auto;
}

#sessionsTable {
    margin-bottom: 0;
    width: 100%;
    table-layout: fixed;
}

#sessionsTable th {
    background-color: #03172D;
    color: white;
    border-bottom: none;
    padding: 16px 12px;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#sessionsTable th.sortable {
    cursor: pointer;
}

#sessionsTable th.sortable::after {
    content: '⇅';
    position: absolute;
    right: 8px;
    opacity: 0.6;
    color: #fff;
}

#sessionsTable th.sort-asc::after {
    content: '↑';
    opacity: 1;
    color: var(--secondary-color);
}

#sessionsTable th.sort-desc::after {
    content: '↓';
    opacity: 1;
    color: var(--secondary-color);
}

#sessionsTable tr {
    cursor: pointer;
    transition: background-color 0.2s;
}

#sessionsTable tr:hover {
    background-color: rgba(58, 189, 14, 0.05);
}

#sessionsTable td {
    padding: 14px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#sessionsTable tbody tr:last-child td {
    border-bottom: none;
}

/* Custom loading row */
#sessionsTable .loading-row td {
    padding: 40px 0;
    background-color: #f8f9fa;
}

/* Table column widths - balanced distribution with wider Nubu User ID */
#sessionsTable .col-session-id {
    width: 12%;
}

#sessionsTable .col-date {
    width: 18%;
}

#sessionsTable .col-user {
    width: 15%;
}

#sessionsTable .col-nubu-id {
    width: 25%; /* Wider column for Nubu User ID */
}

#sessionsTable .col-status {
    width: 10%;
}

#sessionsTable .col-tab {
    width: 12%;
}

#sessionsTable .col-actions {
    width: 8%;
    text-align: center;
}

.status-badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    font-size: 0.825rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: capitalize;
    text-align: center;
    min-width: 85px;
}

.status-complete {
    background-color: rgba(58, 189, 14, 0.15);
    color: #2a8008;
}

.status-in_progress {
    background-color: rgba(255, 193, 7, 0.15);
    color: #856404;
}

.status-unknown {
    background-color: rgba(108, 117, 125, 0.15);
    color: #495057;
}

/* Action buttons styling */
.view-session-btn {
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: 6px;
    transition: all 0.2s;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.view-session-btn:hover {
    background-color: #15263d;
    border-color: #15263d;
    transform: translateY(-1px);
}

.view-session-btn i {
    margin-right: 4px;
}

/* Session Details Modal Styles */
.session-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .session-overview-grid {
        grid-template-columns: 1fr;
    }
}

.session-overview-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.session-overview-item h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #dee2e6;
}

/* Modal tabs styling */
.modal-tabs-wrapper {
    overflow-x: auto;
    padding-bottom: 5px;
}

.session-tabs .nav-tabs {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 20px;
    display: flex;
    min-width: max-content;
    width: 100%;
}

.session-tabs .nav-item {
    flex: 1;
    text-align: center;
    white-space: nowrap;
}

.session-tabs .nav-link {
    color: #495057;
    font-weight: 500;
    padding: 8px 16px;
    border: none;
    margin-right: 3px;
    font-size: 0.9rem;
    width: 100%;
}

.session-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--secondary-color);
    background-color: transparent;
    font-weight: 600;
}

.selection-list {
    list-style-type: none;
    padding-left: 0;
}

.selection-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f2f2f2;
}

.selection-list li:last-child {
    border-bottom: none;
}

.api-data-section h4, 
.results-section h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #dee2e6;
}

.json-display {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
}

.tab-content .card-header {
    background-color: #f8f9fa;
    padding: 10px 15px;
}

.tab-content .card-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Hide the session tabs in results page */
body.results-page .session-tabs,
.prescribing-session-container.results-page ~ .session-tabs,
.prescribing-session-container.results-page .session-tabs {
    display: none !important;
}

/* Style for the top header in the blue area */
.results-header-top {
    height: 74px; /* Match the height of accordion headers */
    display: flex;
    align-items: center;
    padding: 0 25px;
    width: 1160px;
    position: relative;
    z-index: 10;
    background-color: var(--primary-color); /* Add blue background */
    border-radius: 12px 12px 0 0; /* Add rounded corners at top */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Add subtle shadow */
}

.results-header-top h1 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
    color: white;
}

/* Override brand.css with higher specificity */
.prescribing-session-container .results-header-top h1 {
    color: white !important;
}

/* Specific styles for the results page only */
.results-page .session-content {
    background-color: #ffffff !important; /* Override blue background */
    border-radius: 0 0 12px 12px !important; /* Only round the bottom corners */
    margin: 0 20px !important; /* Add equal spacing on sides */
    padding: 20px !important; /* Equal padding on all sides */
    border-top: none !important; /* Remove top border */
    margin-top: -1px !important; /* Connect with the header */
    transition: height 0.3s ease-out; /* Smooth height transitions */
}

/* Make the accordion look better */
.results-page .accordion-item {
    border-left: none !important;
    border-right: none !important;
    margin-bottom: 20px !important; /* Increased to 20px for consistent spacing */
    border-radius: 8px !important; /* Add rounded corners to accordion items */
    overflow: hidden !important; /* Ensure the border-radius is applied */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important; /* Subtle shadow for depth */
}

/* Apply the same spacing to other accordion items */
.prescribing-session-container .accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.125);
    margin-bottom: 20px !important; /* Consistent 20px spacing */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.results-page .accordion-item:first-of-type {
    border-top: none !important;
}

.results-page .accordion-item:last-of-type {
    margin-bottom: 0 !important; /* No margin on last item to balance spacing */
}

/* Match accordion button height to header */
.results-page .accordion-button {
    height: 74px;
    padding-left: 25px;
    border-radius: 4px !important; /* Match the accordion item border radius */
}

/* Footer styling to match the design */
.results-page + .session-footer-container {
    margin: 0 20px !important;
    border-radius: 0 0 12px 12px !important;
    margin-top: -1px !important; /* Connect with the content */
    transition: transform 0.3s ease-out; /* Smooth movement */
}

/* Dynamic container styles */
.prescribing-session-container.results-page {
    height: auto !important; /* Allow container to resize */
    min-height: auto !important; /* Override min-height */
    transition: height 0.3s ease-out; /* Smooth height transitions */
    padding: 0 !important; /* Remove padding from container */
}

/* Adjust accordion spacing */
.results-page .accordion {
    margin: 0 !important; /* Remove margin from accordion */
}

/* Ensure consistent spacing in accordion body */
.results-page .accordion-body {
    padding: 1.25rem;
    background-color: #f5f5f5 !important;
}

.prescribing-session-container .accordion-body {
    background-color: #e1e1e1 !important;
    padding: 20px;
}

/* Fix the red outline boxes */
.results-page .prescribing-session-container > div:first-child,
.results-page .prescribing-session-container > div:last-child {
    display: none; /* Hide the red outline boxes */
}

/* Ensure equal spacing around the accordion */
.results-page #resultsAccordion {
    margin: 0 !important;
    padding: 0 !important;
}

/* Styles for the products list */
.products-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.product-item:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.product-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.product-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    font-size: 0.9rem;
}

.product-type, .product-composition, .product-dosage {
    padding: 5px 0;
}

/* Update pathway container styles for consistency */
.pathway-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pathway-section {
    background-color: #fff !important;
    border-radius: 8px !important;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.pathway-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 8px;
    font-weight: 500;
}

.pathway-content, .monitoring-content {
    background-color: #fff !important;
    border-radius: 8px !important;
    line-height: 1.5;
    white-space: pre-wrap;
    min-height: 120px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
}

.pathway-content ul, .monitoring-content ul {
    padding-left: 20px;
}

.pathway-content p, .monitoring-content p {
    margin-bottom: 10px;
}

/* Media query for responsive pathway container */
@media (max-width: 768px) {
    .pathway-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Toast notifications for results page */
.prescribing-session-container .toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    animation: fadeIn 0.3s, fadeOut 0.3s 2.7s;
}

.prescribing-session-container .toast.success {
    background-color: #28a745;
}

.prescribing-session-container .toast.error {
    background-color: #dc3545;
}

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

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

/* Patient Age Modal Styles */
#patientAgeModal .modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#patientAgeModal .modal-dialog {
    width: 375px;
    max-width: 375px;
    margin: 0 auto;
    /* Position the modal properly in the viewport */
    position: relative;
    top: 25vh; /* Adjust this value as needed */
    transform: translateY(-50%);
}

#patientAgeModal .modal-header {
    background-color: #03172D;
    color: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding: 15px 20px;
}

#patientAgeModal .modal-title {
    font-weight: 600;
    font-size: 1.25rem;
}

#patientAgeModal .modal-body {
    padding: 20px;
}

/* Age dropdown specific styling */
#patientAgeModal .age-dropdown {
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 1rem;
    border: 1px solid #ced4da;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#patientAgeModal .form-select {
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 1rem;
    border: 1px solid #ced4da;
    width: 100%;
}

#patientAgeModal .form-select:focus,
#patientAgeModal .age-dropdown:focus {
    box-shadow: 0 0 0 0.25rem rgba(58, 189, 14, 0.25);
    border-color: var(--secondary-color);
}

#patientAgeModal .modal-footer {
    border-top: none;
    padding: 15px 20px;
    justify-content: flex-end;
}

#patientAgeModal .btn-secondary {
    background-color: var(--color-primary-200) !important;
    border-color: var(--color-primary-200) !important;
    color: var(--color-navy-800) !important;
    font-weight: 500;
    margin-right: 10px;
    border-radius: 5px;
}

#patientAgeModal .btn-success {
    background-color: var(--color-primary-700) !important;
    border-color: var(--color-primary-700) !important;
    color: var(--color-white) !important;
    font-weight: 500;
    border-radius: 5px;
}

#patientAgeModal .btn-success:disabled {
    background-color: rgba(58, 189, 14, 0.5);
    border-color: rgba(58, 189, 14, 0.5);
}

#patientAgeModal .btn-success:hover:not(:disabled) {
    background-color: var(--color-primary-200) !important;
    border-color: var(--color-primary-200) !important;
    color: var(--color-navy-800) !important;
}

#patientAgeModal .btn-secondary:hover {
    background-color: var(--color-primary-700) !important;
    border-color: var(--color-primary-700) !important;
    color: var(--color-white) !important;
}

/* Add custom styles to position the modal above the logo */
.modal-dialog-centered.modal-dialog-above-logo {
    display: flex;
    align-items: flex-start;
    min-height: calc(100% - 3.5rem);
    margin-top: 5vh;
}

/* Adjust the backdrop to make sure it covers the page properly */
.modal-backdrop.centered-modal-backdrop {
    opacity: 0.5;
}

/* Monitoring Plan Section Styles */
.monitoring-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px 15px 45px 15px; /* Reduced bottom padding */
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
}

.monitoring-section h3 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 12px;
    margin-left: 10px;
    margin-top: 5px;
}

.monitoring-subtitle {
    font-size: 16px;
    margin-bottom: 15px;
    margin-left: 10px;
    color: #495057;
    margin-top: 17px;
}

.monitoring-block {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.monitoring-block:last-of-type {
    border-bottom: none !important;
    margin-bottom: 45px; /* More space for the button */
}

.monitoring-block h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    margin-left: 10px;
    margin-top: 20px;
}

.monitoring-block h5 {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 8px;
    margin-left: 10px;
}

.monitoring-block p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 10px;
    margin-left: 10px;
}

.monitoring-block .text-danger {
    color: #dc3545;
    font-weight: 500;
}

.note-italic {
    font-style: italic;
    color: #6c757d;
    font-size: 0.9rem;
}

.textarea-container {
    padding: 0 10px;
    margin-bottom: 15px;
}

.monitoring-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    resize: vertical;
    min-height: 80px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.monitoring-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.adjustments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 10px;
}

.adjustment-item {
    margin-bottom: 10px;
}

.adjustment-item label {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
}

.followup-item {
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.followup-item:last-child {
    border-bottom: none;
}

.save-button-container {
    position: absolute; 
    bottom: 20px; /* Position closer to bottom */
    right: 15px;
    z-index: 10;
}

.btn-save-monitoring {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    height: 32px;
}

.btn-save-monitoring:hover {
    background-color: #14253a;
    opacity: 0.9;
}

.btn-save-monitoring i {
    font-size: 14px;
}

@media (max-width: 768px) {
    .adjustments-grid {
        grid-template-columns: 1fr;
    }
    
    .monitoring-block h4,
    .monitoring-block h5 {
        font-size: 14px;
    }
}

/* Remove border from adverse events section */
.monitoring-block:last-of-type {
    border-bottom: none !important;
    margin-bottom: 10px;
}

.monitoring-block p.text-danger:only-child {
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .adjustments-grid {
        grid-template-columns: 1fr;
    }
    
    .monitoring-block h4,
    .monitoring-block h5 {
        font-size: 14px;
    }
}

/* Ensure consistent button heights and icon positioning in session footer */
.session-footer .btn-info,
.session-footer .btn-session-continue,
.session-footer .btn-exit {
    height: 37px;
    padding: 8px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
}

.session-footer .btn-info i,
.session-footer .btn-exit i {
    font-size: 1rem;
    margin-right: 0;
}

.session-footer .btn-session-continue i {
    font-size: 1rem;
    margin-left: 0;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Product Modal Rule Info */
.rule-details .card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    width: 100%;
}

.rule-details .card-body {
    padding: 16px;
}

.rule-details .card-subtitle {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.rule-info-row {
    display: flex;
    margin-bottom: 12px;
    align-items: baseline;
}

.rule-info-row:last-child {
    margin-bottom: 0;
}

.rule-info-label {
    font-weight: 500;
    min-width: 200px;
    color: #6c757d;
    font-size: 0.95rem;
}

.rule-info-value {
    flex: 1;
    color: var(--dark-text);
    font-weight: 400;
    font-size: 0.95rem;
    padding-left: 35px;
}

/* Update existing product modal styles */
#productModal .modal-body {
    padding: 20px;
}

#productModal .modal-content {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#productModal .modal-header {
    background-color: var(--primary-color);
    color: white;
    padding: 16px 20px;
    border-bottom: none;
}

#productModal .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

#productModal .btn-close {
    color: white;
    opacity: 0.8;
    filter: brightness(0) invert(1);
}

#productModal .btn-close:hover {
    opacity: 1;
}

.info-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 8px;
}

.rule-details {
    margin-bottom: 24px !important;
}

.product-select-container {
    width: 100%;
    margin-bottom: 8px;
}

#productModal .form-select {
    width: 100% !important;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    font-size: 0.95rem;
}

#productModal .modal-footer {
    border-top: 1px solid #e0e0e0;
    padding: 16px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

#productModal .btn-secondary,
#productModal .btn-primary {
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 6px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

#productModal .btn-primary {
    background-color: var(--primary-color);
    border: none;
}

#productModal .btn-secondary {
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #ced4da;
}

#productModal .btn-primary:hover {
    background-color: #0e1a2b;
}

#productModal .btn-secondary:hover {
    background-color: #e2e6ea;
}

/* Mobile responsive adjustments */
@media (max-width: 576px) {
    .rule-info-row {
        flex-direction: column;
        margin-bottom: 16px;
    }
    
    .rule-info-label {
        min-width: unset;
        margin-bottom: 4px;
    }
    
    #productModal .modal-footer {
        flex-direction: row;
    }
    
    #productModal .btn-secondary,
    #productModal .btn-primary {
        flex: 1;
    }
}

.rule-info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.rule-info-table tr {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.rule-info-table tr:first-child {
    margin-top: 0;
}

.rule-info-table tr:last-child {
    margin-bottom: 0;
}

.rule-info-table .rule-info-label {
    width: 180px;
    text-align: left;
    padding-right: 35px;
    color: #6c757d;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

.rule-info-table .rule-info-value {
    flex: 1;
    text-align: left;
    color: var(--dark-text);
    font-size: 0.95rem;
    padding-left: 35px;
}

/* Remove the now-unused rule-info-row styles */
.rule-info-row {
    display: none;
}

/* Mobile responsive adjustments */
@media (max-width: 576px) {
    .rule-info-table .rule-info-label {
        width: 50%;
        font-size: 0.9rem;
        padding-right: 12px;
    }
    
    .rule-info-table .rule-info-value {
        font-size: 0.9rem;
        padding-left: 4px;
    }
    
    #productModal .modal-footer {
        flex-direction: row;
    }
    
    #productModal .btn-secondary,
    #productModal .btn-primary {
        flex: 1;
    }
}

/* Product Modal Styles */
#productModal .modal-content {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}

#productModal .modal-header {
    background-color: #03172D;
    color: white;
    padding: 16px 20px;
    border-bottom: none;
}

#productModal .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

#productModal .btn-close {
    color: white;
    opacity: 0.8;
    box-shadow: none;
    filter: brightness(0) invert(1);
}

#productModal .btn-close:hover {
    opacity: 1;
}

#productModal .modal-body {
    padding: 20px;
}

.info-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 16px;
}

/* Rule Information Card */
.rule-details {
    margin-bottom: 24px;
}

.rule-details .card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.rule-info-table {
    width: 100%;
}

.rule-info-table tr {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.rule-info-table tr:first-child {
    margin-top: 0;
}

.rule-info-table tr:last-child {
    margin-bottom: 0;
}

.rule-info-table .rule-info-label {
    width: 180px;
    text-align: left;
    padding-right: 35px;
    color: #6c757d;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

.rule-info-table .rule-info-value {
    flex: 1;
    text-align: left;
    color: #343a40;
    font-size: 0.95rem;
    padding-left: 35px;
}

/* Product Selection */
.product-select-container {
    width: 100%;
}

#productModal .form-select {
    width: 100% !important;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    font-size: 0.95rem;
    height: 45px;
}

/* Modal Footer */
#productModal .modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 16px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

#productModal .btn-secondary,
#productModal .btn-primary {
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 6px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

#productModal .btn-primary {
    background-color: #03172D;
    border: none;
}

#productModal .btn-secondary {
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

#productModal .btn-primary:hover {
    background-color: #14253a;
}

#productModal .btn-secondary:hover {
    background-color: #e2e6ea;
}

/* Mobile responsive adjustments */
@media (max-width: 576px) {
    .rule-info-table tr {
        flex-direction: column;
        margin-bottom: 16px;
    }
    
    .rule-info-table .rule-info-label {
        width: 100%;
        margin-bottom: 4px;
    }
    
    #productModal .modal-footer {
        flex-direction: row;
    }
    
    #productModal .btn-secondary,
    #productModal .btn-primary {
        flex: 1;
    }
}

/* Product Information Styles for Results Page */
.product-details-section {
    margin-bottom: 20px;
}

/* Symptom Information Box Styles */
.symptom-info-box {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0 20px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.symptom-info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #0c5460;
    font-size: 0.95rem;
}

.symptom-info-header i {
    color: #0c5460;
    font-size: 1.1rem;
}

.symptom-info-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.symptom-info-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0;
}

.symptom-info-row:last-child {
    margin-bottom: 0;
}

.symptom-label {
    flex: 0 0 auto;
    min-width: 320px;
    font-weight: 600;
    color: #0c5460;
    font-size: 0.9rem;
    padding-right: 15px;
    white-space: nowrap;
}

.symptom-value {
    flex: 1;
    color: #333;
    font-size: 0.9rem;
}

/* Responsive layout for smaller screens */
@media (max-width: 768px) {
    .symptom-info-row {
        flex-direction: column;
        margin-bottom: 12px;
    }

    .symptom-label {
        flex: none;
        margin-bottom: 5px;
        padding-right: 0;
    }
}

.product-details-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.product-details-section h3 i {
    margin-right: 8px;
    color: #3abd0e;
}

.product-info-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
}

.product-info-item {
    display: flex;
    border-bottom: none;
}

.info-label {
    width: 220px;
    font-weight: 600;
    color: #1a2f4a;
    padding: 5px 0;
}

.info-value {
    flex: 1;
    padding: 5px 0;
}

.btn-copy-details {
    background-color: #1a2f4a;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    box-sizing: border-box;
}

.btn-copy-details:hover {
    background-color: #152a43;
}

.btn-copy-product-name {
    background-color: #1a2f4a;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    box-sizing: border-box;
}

.btn-copy-product-name:hover {
    background-color: #152a43;
}

.detail-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.product-name-text {
    flex: 1;
    min-width: 0;
}

/* Clean Product Details Table Styling */
#recommendedProductsDetails {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0 20px 0;
}

.product-details-table {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.detail-row {
    display: flex;
    margin-bottom: 12px;
    align-items: flex-start;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-label {
    flex: 0 0 200px;
    font-weight: 600;
    color: var(--primary-color);
    padding-right: 15px;
}

.detail-value {
    flex: 1;
    color: var(--dark-text);
    line-height: 1.4;
    word-wrap: break-word;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .detail-row {
        flex-direction: column;
        margin-bottom: 15px;
    }
    
    .detail-label {
        flex: none;
        margin-bottom: 5px;
        padding-right: 0;
    }
}

.copy-button-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

/* Update the accordion header styling */
.accordion-button {
    background-color: #1a2f4a !important;
    color: white !important;
    font-weight: 500;
    padding: 15px 20px;
    border-radius: 4px !important;
}

.accordion-button:not(.collapsed) {
    background-color: #1a2f4a !important;
    color: white !important;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 20px;
    background-color: #f5f5f5;
}

.single-container {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Medical Professional Loading Styles - Small Modal */
.medical-loading-overlay {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    z-index: 10000 !important;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    margin: 0 !important;
    padding: 0 !important;
}

.medical-loading-overlay.show {
    display: flex;
    opacity: 1;
}

.medical-loading-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(26, 47, 74, 0.1);
    padding: 30px;
    text-align: center;
    min-width: 320px;
    max-width: 400px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
}

.medical-loading-overlay.show .medical-loading-container {
    transform: translate(-50%, -50%) scale(1);
}

.medical-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.medical-loading-icon {
    position: relative;
    width: 60px;
    height: 60px;
}

.medical-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(26, 47, 74, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    border-right-color: var(--secondary-color);
    animation: medical-spin 1.2s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
}

@keyframes medical-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.medical-loading-text h4 {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.025em;
}

.medical-loading-step {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 8px 0 0 0;
    font-weight: 400;
}

.medical-progress-bar {
    width: 100%;
    height: 4px;
    background-color: rgba(26, 47, 74, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 10px;
}

.medical-progress-fill {
height: 100%;
background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
border-radius: 2px;
width: 0%;
transition: width 0.3s ease;
width: 0%;
}

/* Profile Modal Styles - Modern Design */
.profile-modal-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 2000;
justify-content: center;
align-items: center;
opacity: 0;
transition: all 0.3s ease;
}

.profile-modal-overlay.show {
display: flex;
opacity: 1;
}

.profile-modal-container {
background-color: white;
border-radius: 12px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
border: 1px solid rgba(26, 47, 74, 0.1);
min-width: 500px;
max-width: 600px;
width: 90%;
max-height: 90vh;
overflow-y: auto;
transform: scale(0.9);
transition: transform 0.3s ease;
}

.profile-modal-overlay.show .profile-modal-container {
transform: scale(1);
}

.profile-modal-header {
padding: 30px 30px 20px 30px;
border-bottom: 1px solid rgba(26, 47, 74, 0.1);
}

/* Profile icon removed - no longer needed */

/* Profile title styling - left aligned with form fields */

.profile-title h4 {
color: var(--color-primary-700);
font-size: 1.25rem;
font-weight: 600;
margin: 0;
letter-spacing: -0.025em;
}

.profile-title p {
color: #6b7280;
font-size: 0.9rem;
margin: 4px 0 0 0;
font-weight: 400;
}

.profile-close-btn {
width: 32px;
height: 32px;
border: none;
background: rgba(107, 114, 128, 0.1);
border-radius: 50%;
color: #6b7280;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
flex-shrink: 0;
}

.profile-close-btn:hover {
background: rgba(239, 68, 68, 0.1);
color: #ef4444;
}

.profile-form-grid {
padding: 20px 30px;
display: grid;
gap: 20px;
}

.profile-field {
display: flex;
flex-direction: column;
gap: 8px;
}

.profile-field label {
font-weight: 500;
color: var(--color-navy-800);
font-size: 0.9rem;
margin: 0;
}

.profile-input {
padding: 12px 16px;
border: 2px solid #e5e7eb;
border-radius: 8px;
font-size: 0.95rem;
transition: all 0.2s ease;
background: white;
color: var(--color-navy-800);
}

.profile-input:focus {
outline: none;
border-color: var(--color-primary-500);
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.profile-input.disabled {
background: #f9fafb;
color: #6b7280;
cursor: not-allowed;
}

.profile-modal-footer {
display: flex;
justify-content: flex-end;
gap: 12px;
padding: 20px 30px 30px 30px;
border-top: 1px solid rgba(26, 47, 74, 0.1);
}

.profile-btn {
padding: 12px 24px;
border-radius: 8px;
font-weight: 500;
font-size: 0.95rem;
cursor: pointer;
transition: all 0.2s ease;
border: none;
display: flex;
align-items: center;
gap: 8px;
}

.profile-btn-cancel {
background-color: var(--color-primary-200);
color: var(--color-navy-800);
border: 1px solid var(--color-primary-200);
}

.profile-btn-cancel:hover {
background-color: var(--color-primary-300);
border-color: var(--color-primary-300);
}

.profile-btn-save {
background-color: var(--color-primary-700);
color: white;
border: 1px solid var(--color-primary-700);
}

.profile-btn-save:hover {
background-color: var(--color-primary-800);
border-color: var(--color-primary-800);
}

/* Responsive design for profile modal */
@media (max-width: 768px) {
.profile-modal-container {
min-width: 0;
width: 95%;
margin: 20px;
}
  
.profile-modal-header,
.profile-form-grid,
.profile-modal-footer {
padding-left: 20px;
padding-right: 20px;
}
  
.profile-modal-footer {
flex-direction: column;
}
  
.profile-btn {
width: 100%;
justify-content: center;
}
}

/* Background blur for page content during loading */
.page-content-blur {
filter: blur(3px);
pointer-events: none;
transition: filter 0.3s ease;
    pointer-events: none;
    transition: filter 0.3s ease;
}

.page-content-blur * {
    pointer-events: none;
}

/* Custom alert toast styling */
.custom-alert {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 10px;
    color: #fff;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 400px;
}

.custom-alert-success {
    background-color: #2ecc71;
}

.custom-alert-error {
    background-color: #e74c3c;
}

.custom-alert-icon {
    margin-right: 10px;
}

.custom-alert-message {
    flex-grow: 1;
}

.custom-alert-close {
    margin-left: auto;
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    opacity: 0.8;
    cursor: pointer;
}

.custom-alert-close:hover {
    opacity: 1;
}

/* Legacy AI styles removed - replaced with medical loading styles above */

/* Improved Dropdown Hover Effects */
.dropdown-menu .dropdown-item {
    transition: all 0.2s ease;
    padding: 8px 16px;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background-color: var(--primary-color) !important;
    color: white !important;
    transform: translateX(2px);
}

.dropdown-menu .dropdown-item:active,
.dropdown-menu .dropdown-item:hover:active {
    background-color: var(--primary-color) !important;
    color: white !important;
    transform: translateX(2px);
}

/* Delete Modal Styles - Matching Profile Modal Design */
.delete-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.delete-modal-overlay.show {
    display: flex;
    opacity: 1;
}

.delete-modal-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-width: 400px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.delete-modal-overlay.show .delete-modal-container {
    transform: scale(1);
}

.delete-modal-content {
    padding: 0;
}

.delete-modal-header {
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid rgba(26, 47, 74, 0.1);
}

.delete-title h4 {
    color: var(--color-navy-800);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.delete-title p {
    color: var(--color-navy-600);
    font-size: 0.875rem;
    margin: 0;
    opacity: 0.8;
}

.delete-modal-body {
    padding: 20px 24px;
}

.delete-modal-body p {
    color: var(--color-navy-800) !important;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
}

.delete-modal-footer {
    padding: 16px 24px 24px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid rgba(26, 47, 74, 0.1);
}

.delete-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.delete-btn-cancel {
    background-color: var(--color-primary-200);
    color: var(--color-navy-800);
    border: 1px solid var(--color-primary-200);
}

.delete-btn-cancel:hover {
    background-color: var(--color-primary-300);
    border-color: var(--color-primary-300);
}

.delete-btn-confirm {
    background-color: #dc3545;
    color: white;
    border: 1px solid #dc3545;
}

.delete-btn-confirm:hover {
    background-color: #c82333;
    border-color: #c82333;
}

/* Responsive design for delete modal */
@media (max-width: 768px) {
    .delete-modal-container {
        min-width: 0;
        width: 95%;
        margin: 20px;
    }
    
    .delete-modal-footer {
        flex-direction: column;
    }
    
    .delete-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Pagination Controls Styling */
.pagination-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pagination-btn {
    background-color: var(--color-primary-700) !important;
    border-color: var(--color-primary-700) !important;
    color: white !important;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--color-primary-800) !important;
    border-color: var(--color-primary-800) !important;
    color: white !important;
}

.pagination-btn-disabled {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: white !important;
    cursor: not-allowed;
}

.pagination-btn-disabled:hover {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: white !important;
}

#currentPage {
    font-weight: 500;
    color: var(--color-navy-800);
    white-space: nowrap;
}

/* Consistent Table Row Hover Effects for Manage Products and Product Rules */
.table tbody tr {
    transition: background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

/* Removed row hover background color and text color changes */

/* Removed problematic tr:hover button rules that caused cross-button hover effects */

/* Keep status badges their original colors on hover */

.table tbody tr:hover .bg-success {
    background-color: #28a745 !important;
}

.table tbody tr:hover .bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.table tbody tr:hover .bg-danger {
    background-color: #dc3545 !important;
}

.table tbody tr:hover .bg-secondary {
    background-color: #6c757d !important;
}

/* Product Rules Modal Button Styling */
#productModal .modal-footer .btn-primary {
    background-color: #1a2f4a !important;
    border-color: #1a2f4a !important;
    color: white !important;
}

#productModal .modal-footer .btn-primary:hover,
#productModal .modal-footer .btn-primary:focus,
#productModal .modal-footer .btn-primary:active,
#productModal .modal-footer .btn-primary.active {
    background-color: #0f1f35 !important;
    border-color: #0f1f35 !important;
    color: white !important;
    box-shadow: none !important;
}

/* Record Deletion Toast */
.deletion-toast {
    background-color: #28a745 !important;
    color: white !important;
    padding: 15px 20px !important;
    border-radius: 5px !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    width: 100% !important;
    max-width: 350px !important;
    margin-top: 20px !important;
    transition: all 0.3s ease-in-out !important;
}

.deletion-toast .toast-content {
    padding: 0 !important;
}

.deletion-toast .toast-message {
    font-weight: bold !important;
    text-align: center !important;
    width: 100% !important;
}

/* AI Analysis Styles */
.ai-analysis-container {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.ai-analysis-header {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 15px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.ai-analysis-header .toggle-icon {
    transition: transform 0.3s ease;
}

.ai-analysis-header.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.ai-analysis-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
}

.ai-analysis-content.open {
    padding: 15px;
    max-height: 2000px;
}

.ai-analysis-section {
    margin-bottom: 15px;
}

.ai-analysis-section:last-child {
    margin-bottom: 0;
}

.ai-section-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    background-color: #1a2f4a;
    border-radius: 4px;
}

.ai-section-title .toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.ai-section-title.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.ai-section-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
}

.ai-section-content.open {
    padding: 10px 12px;
    max-height: 1000px;
}

.ai-section-content p {
    margin-top: 0;
    margin-bottom: 10px;
}

.ai-section-content p:last-child {
    margin-bottom: 0;
}

.prescribing-session-container .accordion-button {
    padding: 1.25rem;
    font-size: 1.1rem;
    font-weight: 500;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
}

/* Custom class for the Recommended Products & Prescription Plan accordion */
.top-accordion-header .accordion-button {
    background-color: #3a6ca0 !important;
    color: white !important;
}

.top-accordion-header .accordion-button:not(.collapsed) {
    background-color: #3a6ca0 !important;
    color: white !important;
}

/* Lighter blue style for the Recommended Products & Prescription Plan accordion */
.prescribing-session-container .accordion-button.lighter-blue {
    background-color: var(--lighter-blue);
}

.prescribing-session-container .accordion-button.lighter-blue:not(.collapsed) {
    background-color: var(--lighter-blue);
}

.prescribing-session-container .accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
    box-shadow: none;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* Bulk Testing Dashboard Styles */
.bulk-testing-container .card-header {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.bulk-testing-container .card-header h4,
.bulk-testing-container .card-header h5 {
    color: white !important;
}

.bulk-testing-container .btn-primary {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}