| .patients-page { |
| min-height: 100vh; |
| display: flex; |
| flex-direction: column; |
| align-items: center; |
| padding: 60px 20px; |
| background: linear-gradient(180deg, var(--gray-50) 0%, white 100%); |
| } |
|
|
| .patients-page .title { |
| font-size: 2.5rem; |
| font-weight: 700; |
| color: var(--gray-900); |
| margin-bottom: 8px; |
| } |
|
|
| .patients-page .subtitle { |
| font-size: 1rem; |
| color: var(--gray-500); |
| margin-bottom: 48px; |
| } |
|
|
| .patients-page .loading { |
| color: var(--gray-500); |
| } |
|
|
| .patients-grid { |
| display: grid; |
| grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); |
| gap: 20px; |
| max-width: 900px; |
| width: 100%; |
| } |
|
|
| .patient-card { |
| background: white; |
| border: 2px solid var(--gray-200); |
| border-radius: 16px; |
| padding: 28px 24px; |
| cursor: pointer; |
| transition: all 0.2s ease; |
| display: flex; |
| flex-direction: column; |
| align-items: center; |
| gap: 12px; |
| position: relative; |
| } |
|
|
| .patient-card:hover { |
| border-color: var(--primary); |
| box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15); |
| transform: translateY(-2px); |
| } |
|
|
| .patient-card.new-patient { |
| border-style: dashed; |
| background: var(--gray-50); |
| } |
|
|
| .patient-card.new-patient:hover { |
| background: white; |
| } |
|
|
| .patient-icon { |
| width: 48px; |
| height: 48px; |
| background: var(--gray-100); |
| border-radius: 50%; |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| color: var(--gray-500); |
| } |
|
|
| .patient-icon svg { |
| width: 28px; |
| height: 28px; |
| } |
|
|
| .add-icon { |
| width: 48px; |
| height: 48px; |
| background: var(--primary); |
| color: white; |
| border-radius: 50%; |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| font-size: 2rem; |
| font-weight: 300; |
| } |
|
|
| .patient-name { |
| font-weight: 600; |
| color: var(--gray-800); |
| font-size: 1rem; |
| text-align: center; |
| } |
|
|
|
|
| .delete-btn { |
| position: absolute; |
| top: 12px; |
| right: 12px; |
| background: transparent; |
| border: none; |
| padding: 6px; |
| cursor: pointer; |
| color: var(--gray-400); |
| opacity: 0; |
| transition: all 0.2s; |
| border-radius: 6px; |
| } |
|
|
| .patient-card:hover .delete-btn { |
| opacity: 1; |
| } |
|
|
| .delete-btn:hover { |
| color: #ef4444; |
| background: #fef2f2; |
| } |
|
|
| .delete-btn svg { |
| width: 18px; |
| height: 18px; |
| } |
|
|
| |
| .modal-overlay { |
| position: fixed; |
| inset: 0; |
| background: rgba(0, 0, 0, 0.4); |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| z-index: 100; |
| } |
|
|
| .modal { |
| background: white; |
| border-radius: 16px; |
| padding: 28px; |
| width: 100%; |
| max-width: 400px; |
| box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); |
| } |
|
|
| .modal h2 { |
| font-size: 1.25rem; |
| font-weight: 600; |
| color: var(--gray-800); |
| margin-bottom: 20px; |
| } |
|
|
| .modal input { |
| width: 100%; |
| padding: 12px 16px; |
| border: 1px solid var(--gray-300); |
| border-radius: 10px; |
| font-size: 1rem; |
| margin-bottom: 20px; |
| } |
|
|
| .modal input:focus { |
| outline: none; |
| border-color: var(--primary); |
| } |
|
|
| .modal-buttons { |
| display: flex; |
| gap: 12px; |
| justify-content: flex-end; |
| } |
|
|
| .cancel-btn { |
| background: transparent; |
| border: 1px solid var(--gray-300); |
| border-radius: 8px; |
| padding: 10px 20px; |
| font-size: 0.875rem; |
| color: var(--gray-600); |
| cursor: pointer; |
| } |
|
|
| .cancel-btn:hover { |
| background: var(--gray-50); |
| } |
|
|
| .create-btn { |
| background: var(--primary); |
| color: white; |
| border: none; |
| border-radius: 8px; |
| padding: 10px 24px; |
| font-size: 0.875rem; |
| font-weight: 500; |
| cursor: pointer; |
| } |
|
|
| .create-btn:hover { |
| background: var(--primary-hover); |
| } |
|
|
| .create-btn:disabled { |
| background: var(--gray-300); |
| cursor: not-allowed; |
| } |
|
|