body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    background-color: #f0f0f0;
}

.nav {
    width: 80px;
    background-color: #ffffff;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.nav-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.user-icon {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.chevron {
    margin-left: 5px;
}

.main-content {
    flex-grow: 1;
    padding: 20px;
    padding-bottom: 340px; /* Adjust this value based on your fixed tile height */
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 24px;
    color: #333;
    font-weight: 500;
}

.header-toolbar {
    display: flex;
    gap: 10px;
    background-color: #ffffff;
    border-radius: 20px;
    padding: 5px;
}

.toolbar-button {
    padding: 10px 15px;
    background-color: transparent;
    color: #333;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 400;
}

.toolbar-button:hover {
    background-color: #f0f0f0;
}

.dashboard-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.tile {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tile-header {
    background-color: #e0e0e0;
    padding: 15px;
    font-weight: 500;
    border-bottom: 1px solid #ddd;
}

.tile-content {
    padding: 15px;
}

.tile-large {
    grid-row: span 2;
}

.onboarding-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.tick {
    color: green;
    margin-right: 10px;
}

.open-icon {
    color: blue;
}

.action-btn {
    padding: 5px 10px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
}

.no-data {
    color: #999;
    text-align: center;
    padding: 20px 0;
}

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

.file-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.file-list i {
    margin-right: 10px;
    color: #666;
}

.pill-button {
    background-color: #ffffff;
    border: 1px solid #000000;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    font-weight: 500;
}

.pill-button:hover {
    background-color: #000000;
    color: #ffffff;
}

/* Modal styles */
.modal {
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

/* Form styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.two-column-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-column {
    flex: 1;
    min-width: 200px;
}

.submit-btn {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.data-entry-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.data-entry-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.data-entry-option:hover {
    background-color: #e0e0e0;
}

.data-entry-option i {
    font-size: 24px;
    margin-bottom: 5px;
}

.add-data-screen {
    text-align: center;
}

.confirmation-details {
    margin-top: 20px;
    text-align: left;
}

.detail {
    margin-bottom: 10px;
}

.confirm-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 10px 20px;
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

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

.search-container {
    position: relative;
    display: inline-block;
}

.search-dropdown {
    display: none;
    position: absolute;
    right: 0;
    background-color: #f9f9f9;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    padding: 10px;
}

.search-dropdown input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cheat-button {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s;
}

.cheat-button:hover {
    transform: scale(1.2);
}

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

.minor-trigger {
    margin-left: 10px;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s;
}

.minor-trigger:hover {
    transform: scale(1.2);
}

.minor-title {
    color: green;
    font-weight: bold;
    margin-bottom: 10px;
}

#minorSection {
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}

#minorSection h4 {
    margin-top: 0;
    margin-bottom: 15px;
}

/* Confirmation Modal styles */
#confirmationModal .modal-content {
    text-align: center;
}

#confirmationModal h2 {
    color: #4CAF50;
    margin-bottom: 20px;
}

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

.confirmation-buttons .action-btn {
    padding: 10px 20px;
    font-size: 16px;
}

#goToRecordBtn {
    background-color: #4CAF50;
    color: white;
}

#closeConfirmationBtn {
    background-color: #f0f0f0;
    color: #333;
}

.start-session-btn {
    padding: 10px 15px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.start-session-btn:hover {
    background-color: #c0392b;
}

.nav-icon {
    width: 40px;
    height: 40px;
    background-color: #e0e0e0;
    margin-bottom: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-icon:hover {
    background-color: #d0d0d0;
}

.nav-icon:active {
    background-color: #c0c0c0;
}

/* Document Manager specific styles */
.document-manager-content {
    position: relative;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-top: 20px;
}

.cheat-button {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s;
}

.document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f5f7fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.document-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.document-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.document-date, .document-uploader, .document-method, .document-type {
    font-size: 14px;
}

.document-date {
    font-weight: bold;
}

.document-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    background-color: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 50%;
}

.action-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.action-btn.delete {
    color: #e74c3c;
}

.action-btn.preview {
    color: #3498db;
}

.action-btn.approve {
    color: #2ecc71;
}

.overlay, .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.overlay-content, .sidebar-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.sidebar-content {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    max-width: 400px;
    border-radius: 0;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

.document-preview {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f5f7fa;
    border-radius: 8px;
}

/* Tabs styles */
.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.tabs button {
    background-color: transparent;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tabs button.active {
    border-bottom: 2px solid #3498db;
    color: #3498db;
}

/* Form styles for approval sidebar */
.sidebar-content form {
    margin-top: 20px;
}

.sidebar-content .form-group {
    margin-bottom: 15px;
}

.sidebar-content label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.sidebar-content input[type="text"],
.sidebar-content select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.sidebar-content .submit-btn {
    width: 100%;
    padding: 10px;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.sidebar-content .submit-btn:hover {
    background-color: #27ae60;
}

/* Add this to your existing styles */
#chiliModeToggle {
    transition: background-color 0.3s ease;
}

#chiliModeToggle.active {
    background-color: #ff6347; /* Tomato red color */
    color: white;
}

/* Patient Record styles */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.card-header {
    background-color: #f0f0f0;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.edit-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #3498db;
}

.card-content {
    padding: 15px;
}

.card-content dl {
    display: grid;
    grid-template-columns: max-content auto;
    gap: 10px;
}

.card-content dt {
    font-weight: bold;
}

.card-content dd {
    margin: 0;
}

.card-content ul {
    list-style-type: none;
    padding: 0;
}

.card-content li {
    margin-bottom: 10px;
}

.warning, .alert, .info, .success, .failure {
    margin-right: 10px;
}

.date {
    font-weight: bold;
    margin-right: 10px;
}

.appointment-type {
    color: #3498db;
}

/* Tab styles for patient record */
.tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab-button {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-bottom: 2px solid transparent;
}

.tab-button.active {
    border-bottom-color: #3498db;
    color: #3498db;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Header toolbar for patient record */
.header-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.header-toolbar .toolbar-button {
    padding: 8px 12px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.header-toolbar .toolbar-button i {
    margin-right: 5px;
}

.header-toolbar .toolbar-button:hover {
    background-color: #e0e0e0;
}

/* New styles for the patient record page */
.workflow-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    color: #007bff;
}

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

.document-list li {
    margin-bottom: 10px;
}

.document-list i {
    margin-right: 10px;
}

.style-test-box {
    width: 100px;
    height: 50px;
    background-color: #ff0000;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px;
    font-weight: bold;
}

/* Add these new styles */
.fixed-tiles {
    position: fixed;
    bottom: 20px;
    left: 100px; /* Adjust this value based on your nav width */
    width: 300px; /* Adjust as needed */
    z-index: 1000;
}

.your-info-tile {
    background-color: #f0f0f0;
    border-left: 5px solid #3498db;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.your-info-tile .tile-header {
    background-color: #3498db;
    color: white;
    padding: 10px 15px;
}

.your-info-tile .tile-content {
    padding: 15px;
    max-height: 300px; /* Adjust as needed */
    overflow-y: auto;
}

.your-info-tile dl {
    margin-bottom: 15px;
}

.your-info-tile dt {
    font-weight: bold;
    margin-bottom: 5px;
}

.your-info-tile dd {
    margin-left: 0;
    margin-bottom: 10px;
}

.your-info-tile a {
    color: #3498db;
    text-decoration: none;
}

.your-info-tile a:hover {
    text-decoration: underline;
}

.use-domain-btn {
    background-color: #3498db;
    color: white;
    border: none;
    transition: background-color 0.3s ease;
}

.use-domain-btn:hover {
    background-color: #2980b9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .fixed-tiles {
        position: static;
        width: 100%;
        margin-top: 20px;
    }

    .main-content {
        padding-bottom: 20px;
    }
}

/* Your Info tile styles */
.your-info-tile {
    background-color: #f0f0f0;
    border-left: 5px solid #3498db;
}

.your-info-tile .tile-header {
    background-color: #3498db;
    color: white;
}

.your-info-tile .tile-content {
    padding: 20px;
}

.your-info-tile dl {
    margin-bottom: 20px;
}

.your-info-tile dt {
    font-weight: bold;
    margin-bottom: 5px;
}

.your-info-tile dd {
    margin-left: 0;
    margin-bottom: 15px;
}

.your-info-tile a {
body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    background-color: #f0f0f0;
}

.nav {
    width: 80px;
    background-color: #ffffff;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.nav-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.user-icon {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.chevron {
    margin-left: 5px;
}

.main-content {
    flex-grow: 1;
    padding: 20px;
    padding-bottom: 340px; /* Adjust this value based on your fixed tile height */
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 24px;
    color: #333;
    font-weight: 500;
}

.header-toolbar {
    display: flex;
    gap: 10px;
    background-color: #ffffff;
    border-radius: 20px;
    padding: 5px;
}

.toolbar-button {
    padding: 10px 15px;
    background-color: transparent;
    color: #333;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 400;
}

.toolbar-button:hover {
    background-color: #f0f0f0;
}

.dashboard-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.tile {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tile-header {
    background-color: #e0e0e0;
    padding: 15px;
    font-weight: 500;
    border-bottom: 1px solid #ddd;
}

.tile-content {
    padding: 15px;
}

.tile-large {
    grid-row: span 2;
}

.onboarding-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.tick {
    color: green;
    margin-right: 10px;
}

.open-icon {
    color: blue;
}

.action-btn {
    padding: 5px 10px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
}

.no-data {
    color: #999;
    text-align: center;
    padding: 20px 0;
}

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

.file-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.file-list i {
    margin-right: 10px;
    color: #666;
}

.pill-button {
    background-color: #ffffff;
    border: 1px solid #000000;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    font-weight: 500;
}

.pill-button:hover {
    background-color: #000000;
    color: #ffffff;
}

/* Modal styles */
.modal {
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

/* Form styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.two-column-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-column {
    flex: 1;
    min-width: 200px;
}

.submit-btn {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.data-entry-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.data-entry-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.data-entry-option:hover {
    background-color: #e0e0e0;
}

.data-entry-option i {
    font-size: 24px;
    margin-bottom: 5px;
}

.add-data-screen {
    text-align: center;
}

.confirmation-details {
    margin-top: 20px;
    text-align: left;
}

.detail {
    margin-bottom: 10px;
}

.confirm-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 10px 20px;
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

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

.search-container {
    position: relative;
    display: inline-block;
}

.search-dropdown {
    display: none;
    position: absolute;
    right: 0;
    background-color: #f9f9f9;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    padding: 10px;
}

.search-dropdown input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cheat-button {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s;
}

.cheat-button:hover {
    transform: scale(1.2);
}

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

.minor-trigger {
    margin-left: 10px;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s;
}

.minor-trigger:hover {
    transform: scale(1.2);
}

.minor-title {
    color: green;
    font-weight: bold;
    margin-bottom: 10px;
}

#minorSection {
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}

#minorSection h4 {
    margin-top: 0;
    margin-bottom: 15px;
}

/* Confirmation Modal styles */
#confirmationModal .modal-content {
    text-align: center;
}

#confirmationModal h2 {
    color: #4CAF50;
    margin-bottom: 20px;
}

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

.confirmation-buttons .action-btn {
    padding: 10px 20px;
    font-size: 16px;
}

#goToRecordBtn {
    background-color: #4CAF50;
    color: white;
}

#closeConfirmationBtn {
    background-color: #f0f0f0;
    color: #333;
}

.start-session-btn {
    padding: 10px 15px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.start-session-btn:hover {
    background-color: #c0392b;
}

.nav-icon {
    width: 40px;
    height: 40px;
    background-color: #e0e0e0;
    margin-bottom: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-icon:hover {
    background-color: #d0d0d0;
}

.nav-icon:active {
    background-color: #c0c0c0;
}

/* Document Manager specific styles */
.document-manager-content {
    position: relative;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-top: 20px;
}

.cheat-button {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s;
}

.document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f5f7fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.document-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.document-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.document-date, .document-uploader, .document-method, .document-type {
    font-size: 14px;
}

.document-date {
    font-weight: bold;
}

.document-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    background-color: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 50%;
}

.action-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.action-btn.delete {
    color: #e74c3c;
}

.action-btn.preview {
    color: #3498db;
}

.action-btn.approve {
    color: #2ecc71;
}

.overlay, .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.overlay-content, .sidebar-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.sidebar-content {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    max-width: 400px;
    border-radius: 0;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

.document-preview {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f5f7fa;
    border-radius: 8px;
}

/* Tabs styles */
.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.tabs button {
    background-color: transparent;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tabs button.active {
    border-bottom: 2px solid #3498db;
    color: #3498db;
}

/* Form styles for approval sidebar */
.sidebar-content form {
    margin-top: 20px;
}

.sidebar-content .form-group {
    margin-bottom: 15px;
}

.sidebar-content label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.sidebar-content input[type="text"],
.sidebar-content select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.sidebar-content .submit-btn {
    width: 100%;
    padding: 10px;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.sidebar-content .submit-btn:hover {
    background-color: #27ae60;
}

/* Add this to your existing styles */
#chiliModeToggle {
    transition: background-color 0.3s ease;
}

#chiliModeToggle.active {
    background-color: #ff6347; /* Tomato red color */
    color: white;
}

/* Patient Record styles */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.card-header {
    background-color: #f0f0f0;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.edit-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #3498db;
}

.card-content {
    padding: 15px;
}

.card-content dl {
    display: grid;
    grid-template-columns: max-content auto;
    gap: 10px;
}

.card-content dt {
    font-weight: bold;
}

.card-content dd {
    margin: 0;
}

.card-content ul {
    list-style-type: none;
    padding: 0;
}

.card-content li {
    margin-bottom: 10px;
}

.warning, .alert, .info, .success, .failure {
    margin-right: 10px;
}

.date {
    font-weight: bold;
    margin-right: 10px;
}

.appointment-type {
    color: #3498db;
}

/* Tab styles for patient record */
.tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab-button {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-bottom: 2px solid transparent;
}

.tab-button.active {
    border-bottom-color: #3498db;
    color: #3498db;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Header toolbar for patient record */
.header-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.header-toolbar .toolbar-button {
    padding: 8px 12px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.header-toolbar .toolbar-button i {
    margin-right: 5px;
}

.header-toolbar .toolbar-button:hover {
    background-color: #e0e0e0;
}

/* New styles for the patient record page */
.workflow-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    color: #007bff;
}

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

.document-list li {
    margin-bottom: 10px;
}

.document-list i {
    margin-right: 10px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.workflow-steps {
    padding-left: 20px;
}

.workflow-steps li {
    margin-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .header-toolbar {
        flex-wrap: wrap;
    }
    
    .toolbar-button {
        margin-bottom: 5px;
    }
}

/* Add or update these styles in your styles.css file */

:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --background-color: #f5f7fa;
    --text-color: #333333;
    --tile-background: #ffffff;
    --tile-header: #f0f0f0;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
}

.dashboard-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 100px; /* Add space for the fixed tile */
}

.tile {
    background-color: var(--tile-background);
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--shadow-color);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.tile-header {
    background-color: var(--tile-header);
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.tile-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.tile-content {
    padding: 15px;
}

.fixed-tiles {
    position: fixed;
    bottom: 20px;
    left: 100px; /* Adjust based on your nav width */
    width: calc(100% - 120px); /* Adjust based on your layout */
    z-index: 1000;
}

.your-info-tile {
    background-color: var(--tile-background);
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 -2px 10px var(--shadow-color);
    max-width: 400px;
}

.your-info-tile .tile-header {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
}

.your-info-tile .tile-content {
    padding: 15px;
    font-size: 14px;
}

.your-info-tile dl {
    margin: 0 0 15px 0;
}

.your-info-tile dt {
    font-weight: bold;
    margin-bottom: 5px;
}

.your-info-tile dd {
    margin: 0 0 10px 0;
}

.your-info-tile a {
    color: var(--primary-color);
    text-decoration: none;
    word-break: break-all;
}

.your-info-tile a:hover {
    text-decoration: underline;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-tiles {
        grid-template-columns: 1fr;
    }
    
    .fixed-tiles {
        position: static;
        width: 100%;
        margin-top: 20px;
        left: 0;
    }

    .your-info-tile {
        max-width: none;
    }

    .main-content {
        padding-bottom: 20px;
    }
}

/* Add or update these styles in your styles.css file */

.patient-records-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.patient-record {
    background-color: #f9f9f9;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 15px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.patient-record:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.patient-record h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
}

.patient-record a {
    color: var(--text-color);
    text-decoration: none;
}

.patient-record a:hover {
    text-decoration: underline;
}

.patient-record p {
    font-size: 14px;
    margin-bottom: 20px;
}

.assessment-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-color);
    padding: 5px 10px;
    font-size: 12px;
    text-align: center;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Update the tile content padding for patient records */
.tile .tile-content.patient-records-grid {
    padding: 15px;
}