body { font-family: 'Inter', sans-serif; background-color: #f0f2f5; color: #333; margin: 0; padding: 0; display: flex; flex-direction: column; min-height: 10vh; } .container { max-width: 1200px; margin: 0 auto; padding: 1rem; width: 100%; } header { background-color: #e0e7ff; color: #333; padding: 1rem 0; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); border-bottom: 1px solid #c3c8e8; } .header-content { display: flex; flex-direction: column; align-items: center; padding: 0 1rem; } @media (min-width: 768px) { .header-content { flex-direction: row; justify-content: space-between; } } .app-name { font-size: 1.8rem; font-weight: bold; letter-spacing: 1px; margin-bottom: 0.5rem; color: #4338ca; } @media (min-width: 768px) { .app-name { margin-bottom: 0; } } .nav-icons { display: flex; gap: 1.5rem; justify-content: center; width: 100%; } @media (min-width: 768px) { .nav-icons { width: auto; } } .nav-icon { cursor: pointer; font-size: 1.8rem; transition: transform 0.2s ease-in-out, color 0.2s ease-in-out; color: #6366f1; } .nav-icon:hover { transform: scale(1.1); color: #4f46e5; } .nav-icon.disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; transform: none; color: #6366f1; } @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } } .blinking-icon { animation: blink 1.5s infinite; } .card { background-color: white; border-radius: 1rem; padding: 1.5rem; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1); transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; border: 1px solid #e5e7eb; } .card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); } .modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.4); display: flex; justify-content: center; align-items: center; z-index: 1000; opacity: 0; visibility: hidden; transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out; } .modal.open { opacity: 1; visibility: visible; } .modal-content { background-color: white; padding: 2.5rem; border-radius: 1rem; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25); width: 90%; max-width: 550px; transform: translateY(-30px); transition: transform 0.3s ease-in-out; position: relative; max-height: 90vh; overflow-y: auto; border: 1px solid #d1d5db; } .modal.open .modal-content { transform: translateY(0); } .close-button { position: absolute; top: 1rem; right: 1rem; font-size: 2rem; cursor: pointer; color: #6b7280; transition: color 0.2s ease-in-out, transform 0.2s ease-in-out; } .close-button:hover { color: #374151; transform: rotate(90deg); } .form-group { margin-bottom: 1.25rem; } .form-group label { display: block; margin-bottom: 0.6rem; font-weight: 600; color: #4b5563; } .form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.85rem; border: 1px solid #d1d5db; border-radius: 0.6rem; font-size: 1rem; box-sizing: border-box; transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out; } .form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2); } .form-group input[type="range"] { padding: 0; } .observation-icons-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 0.6rem; margin-top: 0.8rem; margin-bottom: 0.8rem; } .observation-icon { cursor: pointer; font-size: 2rem; color: #6b7280; transition: color 0.2s, transform 0.2s; text-align: center; } .observation-icon:hover { color: #6366f1; transform: scale(1.2); } .table-container { overflow-x: auto; background-color: white; border-radius: 1rem; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1); padding: 1.5rem; border: 1px solid #e5e7eb; } table { width: 100%; border-collapse: collapse; min-width: 800px; } th, td { padding: 0.9rem; text-align: left; border: 1px solid #e0e7ff; min-height: 50px; vertical-align: middle; white-space: nowrap; } th { background-color: #eef2ff; font-weight: 600; color: #4338ca; } th:first-child { border-top-left-radius: 0.75rem; } th:last-child { border-top-right-radius: 0.75rem; } tr:last-child td:first-child { border-bottom-left-radius: 0.75rem; } tr:last-child td:last-child { border-bottom-right-radius: 0.75rem; } table tbody tr:nth-child(odd) { background-color: #f9fafb; } table tbody tr:hover { background-color: #f0f4ff; transition: background-color 0.2s ease-in-out; } td.observation-cell { white-space: normal; word-break: break-word; min-width: 250px; } td.action-buttons { border-bottom: none; } .action-buttons button { background-color: #6366f1; color: white; padding: 0.6rem 1.2rem; border-radius: 0.6rem; cursor: pointer; border: none; font-size: 0.95rem; transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .action-buttons button:hover { background-color: #4f46e5; transform: translateY(-1px); } .action-buttons button.delete { background-color: #ef4444; margin-left: 0.6rem; } .action-buttons button.delete:hover { background-color: #dc2626; } @media (max-width: 768px) { .dashboard-grid { grid-template-columns: 1fr; } .modal-content { padding: 1.5rem; } } @media (min-width: 769px) and (max-width: 1024px) { .dashboard-grid { grid-template-columns: repeat(2, 1fr); } } .tooltip-container { position: relative; display: inline-block; width: 100%; } .tooltip-text { visibility: hidden; width: auto; background-color: #333; color: #fff; text-align: left; border-radius: 6px; padding: 10px 15px; position: absolute; z-index: 1; bottom: 125%; left: 50%; transform: translateX(-50%); opacity: 0; transition: opacity 0.3s; white-space: normal; min-width: 250px; box-shadow: 0 4px 12px rgba(0,0,0,0.2); line-height: 1.4; } .tooltip-text ul { list-style-type: none; padding-left: 0; margin-top: 0.5rem; } .tooltip-text li { margin-bottom: 0.25rem; } .tooltip-text li:last-child { margin-bottom: 0; } .tooltip-text strong { color: #facc15; } .tooltip-container:hover .tooltip-text { visibility: visible; opacity: 1; } .table-scroll-wrapper { position: relative; } .scroll-indicator { position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%) translateX(0); font-size: 3rem; color: #6366f1; background: linear-gradient(to left, rgba(255,255,255,1) 50%, rgba(255,255,255,0) 100%); padding-left: 2rem; cursor: pointer; opacity: 0; transition: opacity 0.3s ease-in-out; pointer-events: none; z-index: 10; } body.dark-mode .scroll-indicator { background: linear-gradient(to left, rgba(45, 55, 72, 1) 50%, rgba(45, 55, 72, 0) 100%); } @media (max-width: 1024px) { .table-scroll-wrapper.overflow-active .scroll-indicator { opacity: 1; pointer-events: auto; animation: blink-and-float 2s infinite ease-in-out; } .table-container { -ms-overflow-style: none; scrollbar-width: none; } .table-container::-webkit-scrollbar { display: none; } } @keyframes blink-and-float { 0%, 100% { opacity: 1; transform: translateY(-50%) translateX(0); } 50% { opacity: 0.5; transform: translateY(-50%) translateX(10px); } } .help-item { display: flex; align-items: center; margin-bottom: 1rem; padding: 0.75rem; border-radius: 0.5rem; background-color: #f8fafc; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); } .help-item .material-icons { font-size: 2rem; margin-right: 1rem; color: #6366f1; } .help-item strong { color: #333; } .help-item p { margin: 0; color: #555; font-size: 0.95rem; line-height: 1.4; } /* Styles for the PDF report view */ .report-view-container { background-color: white; padding: 2rem; position: relative; overflow: hidden; } .report-view-container .table-container { padding: 0; box-shadow: none; border: none; } .report-view-container table { min-width: 100%; } .report-view-container th { background-color: #eef2ff; font-weight: 600; color: #4338ca; } .watermark-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: 2; pointer-events: none; } .watermark { position: absolute; left: 50%; transform: translateX(-50%) rotate(-45deg); font-size: 8vw; color: rgba(0, 0, 0, 0.04); font-weight: 700; font-family: 'Inter', sans-serif; white-space: nowrap; } .dashboard-cards-report { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-around; } .report-card { flex: 1 1 calc(25% - 1rem); min-width: 200px; padding: 1rem; border: 1px solid #d1d5db; /* Keep the border for report view */ } @media (max-width: 768px) { .report-card { flex: 1 1 calc(50% - 1rem); } } .report-chart-canvas { max-height: 400px; width: 100%; } .ai-description-loading { text-align: center; padding: 1rem; font-style: italic; color: #666; } #aiDescription ul { list-style-type: disc; margin-left: 1.5rem; padding-left: 0; } #aiDescription li { margin-bottom: 0.5rem; } #aiDescription strong { color: #333; font-weight: 700; } .logo-container { display: flex; flex-direction: column; align-items: center; gap: 1rem; max-width: 90%; width: 400px; margin: 0 auto 2rem auto; } .logo-text { font-size: 3.5rem; font-weight: 700; color: #3b82f6; line-height: 1; display: flex; align-items: center; position: relative; } .logo-text span:first-child { color: #1e3a8a; } .logo-text span:last-child { color: #60a5fa; } .moon-icon { font-size: 2.5rem; color: #fcd34d; margin-right: 0.5rem; position: relative; top: -5px; } .star-icon { font-size: 1.2rem; color: #fcd34d; position: absolute; animation: twinkle 1.5s infinite alternate; } .star-icon.star-1 { top: 5px; right: -20px; font-size: 0.9rem; animation-delay: 0s; } .star-icon.star-2 { bottom: 0px; left: -15px; font-size: 0.9rem; animation-delay: 0.5s; } .tagline { font-size: 1.1rem; color: #6b7280; text-align: center; margin-top: 0.5rem; } .website-url { font-size: 1.1rem; color: #9ca3af; text-align: center; margin-top: 0.2rem; } @keyframes twinkle { from { opacity: 0.5; } to { opacity: 1; } } @media (max-width: 640px) { .logo-container { padding: 0; } .logo-text { font-size: 2.5rem; } .moon-icon { font-size: 2rem; } .tagline { font-size: 0.9rem; } .website-url { font-size: 1rem; } } #messageBox { top: 50%; left: 50%; transform: translate(-50%, -50%); white-space: nowrap; } .loader-pdf { border-top-color: #6366f1; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .battery-icon-svg { width: 80px; height: 40px; margin-bottom: 8px; } /* New class for PDF rendering */ .svg-for-pdf { width: 80px; height: 40px; margin-bottom: 8px; } .switch { position: relative; display: inline-block; width: 60px; height: 34px; } .switch input { opacity: 0; width: 0; height: 0; } .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; -webkit-transition: .4s; transition: .4s; border-radius: 34px; } .slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; -webkit-transition: .4s; transition: .4s; border-radius: 50%; } input:checked + .slider { background-color: #6366f1; } input:focus + .slider { box-shadow: 0 0 1px #6366f1; } input:checked + .slider:before { -webkit-transform: translateX(26px); -ms-transform: translateX(26px); transform: translateX(26px); } .medication-icon-small { font-size: 1.0rem !important; } .recurring-med-list-dashboard { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: flex-start; } .recurring-med-card { flex: 1 1 calc(25% - 1.25rem); min-width: 180px; max-width: 220px; background-color: white; border-radius: 0.75rem; padding: 1rem; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; border: 1px solid #e5e7eb; text-align: center; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; } .recurring-med-card:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12); } .recurring-med-card.active { background-color: #dcfce7; color: #166534; border-color: #86efac; } .recurring-med-card.inactive { background-color: #f3f4f6; color: #6b7280; border-color: #e5e7eb; opacity: 0.7; } .recurring-med-card.pending { background-color: #fffbeb; color: #92400e; border-color: #fcd34d; opacity: 0.85; } .recurring-med-card .card-actions { position: absolute; top: 0.5rem; right: 0.5rem; display: flex; gap: 0.25rem; } .recurring-med-card .card-actions .material-icons { font-size: 1.25rem; cursor: pointer; transition: color 0.2s ease-in-out; padding: 0.25rem; border-radius: 0.25rem; } .recurring-med-card .card-actions .material-icons.edit-icon { color: #60a5fa; } .recurring-med-card .card-actions .material-icons.edit-icon:hover { color: #3b82f6; background-color: rgba(96, 165, 250, 0.1); } .recurring-med-card .card-actions .material-icons.delete-icon { color: #ef4444; } .recurring-med-card .card-actions .material-icons.delete-icon:hover { color: #dc2626; background-color: rgba(239, 68, 68, 0.1); } .recurring-med-card .material-icons.text-5xl { font-size: 3.5rem; margin-bottom: 0.75rem; } .recurring-med-card h3 { font-size: 1.1rem; margin-bottom: 0.25rem; } .recurring-med-card p { font-size: 0.9rem; line-height: 1.3; } .recurring-med-card p.text-lg { font-size: 1rem; } .recurring-med-card p.text-sm { font-size: 0.8rem; } @media (max-width: 1024px) { .recurring-med-card { flex: 1 1 calc(33.33% - 1.25rem); } } @media (max-width: 768px) { .recurring-med-card { flex: 1 1 calc(50% - 1.25rem); } } @media (max-width: 480px) { .recurring-med-card { flex: 1 1 calc(100% - 1.25rem); max-width: 300px; } } .recurring-med-list-item { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0.5rem; border-bottom: 1px solid #e5e7eb; } .recurring-med-list-item:last-child { border-bottom: none; } .recurring-med-list-item .med-details { flex-grow: 1; margin-right: 1rem; } .recurring-med-list-item .med-actions { display: flex; gap: 0.5rem; } #medicationsListInRecordModal { max-height: 200px; overflow-y: auto; border: 1px solid #e5e7eb; border-radius: 0.6rem; padding: 0.5rem; background-color: #fdfdfd; margin-top: 1rem; } @keyframes pulse-range { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); } 70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); } } .range-input-animated { animation: pulse-range 2s infinite; } .not-connected-message { background-color: #fef2f2; border: 1px solid #fca5a5; color: #b91c1c; padding: 1.5rem; border-radius: 0.75rem; text-align: center; margin-bottom: 2rem; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); } .not-connected-message h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.75rem; color: #dc2626; } .not-connected-message p { font-size: 1.1rem; line-height: 1.5; margin-bottom: 1rem; } .not-connected-message button { background-color: #ef4444; color: white; padding: 0.8rem 1.5rem; border-radius: 0.5rem; font-weight: 600; transition: background-color 0.2s ease-in-out; } .not-connected-message button:hover { background-color: #dc2626; }