Files
App-Agenda-Clinica-Odontolo…/client/src/App.css
2025-11-29 21:18:53 -03:00

1269 lines
19 KiB
CSS

:root {
font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
color: #0f172a;
background-color: #e7ecf5;
}
* {
box-sizing: border-box;
}
body,
#root {
margin: 0;
min-height: 100vh;
background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 40%),
#e7ecf5;
}
button {
font: inherit;
}
.app-shell {
display: flex;
min-height: 100vh;
}
.sidebar {
width: 280px;
padding: 24px;
background: #0f172a;
color: #f1f5f9;
display: flex;
flex-direction: column;
gap: 30px;
}
.sidebar-brand {
display: flex;
align-items: center;
gap: 14px;
}
.logo-circle {
width: 40px;
height: 40px;
border-radius: 12px;
background: linear-gradient(135deg, #06b6d4, #0ea5e9);
display: flex;
align-items: center;
justify-content: center;
}
.sidebar-brand h1 {
font-size: 1.25rem;
margin: 0;
font-weight: 600;
}
.sidebar-nav {
display: flex;
flex-direction: column;
gap: 8px;
}
.nav-item {
border: none;
background: transparent;
color: inherit;
padding: 12px 16px;
border-radius: 14px;
display: flex;
gap: 10px;
align-items: center;
font-weight: 500;
cursor: pointer;
transition: background 0.2s ease;
}
.nav-item:hover,
.nav-item.active {
background: rgba(255, 255, 255, 0.12);
}
.sidebar-footer {
margin-top: auto;
}
.status-card {
background: #1e293b;
padding: 16px;
border-radius: 18px;
border: 1px solid rgba(255, 255, 255, 0.08);
font-size: 0.9rem;
display: flex;
flex-direction: column;
gap: 6px;
}
.status-card span {
text-transform: uppercase;
letter-spacing: 0.1em;
font-size: 0.7rem;
color: rgba(248, 250, 252, 0.64);
}
.status-pill {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.08em;
color: #d1d5db;
}
.status-dot {
width: 8px;
height: 8px;
border-radius: 999px;
background: #34d399;
}
.main-area {
flex: 1;
display: flex;
flex-direction: column;
background: #f8fafc;
}
.topbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 30px;
border-bottom: 1px solid #e2e8f0;
background: #ffffff;
}
.topbar-info h2 {
margin: 0;
font-size: 1.25rem;
}
.topbar-info p {
margin: 4px 0 0;
color: #64748b;
}
.topbar-actions {
display: flex;
align-items: center;
gap: 12px;
}
.search-box {
display: inline-flex;
align-items: center;
gap: 8px;
background: #fff;
border: 1px solid #e2e8f0;
border-radius: 12px;
padding: 8px 12px;
}
.search-box input {
border: none;
outline: none;
font-size: 0.95rem;
}
.primary-btn,
.ghost-btn {
border: none;
border-radius: 999px;
padding: 10px 18px;
font-weight: 600;
display: inline-flex;
align-items: center;
gap: 8px;
cursor: pointer;
}
.primary-btn {
background: linear-gradient(135deg, #14b8a6, #06b6d4);
color: #fff;
box-shadow: 0 12px 18px rgba(6, 182, 212, 0.3);
}
.avatar {
width: 40px;
height: 40px;
border-radius: 50%;
background: #e2e8f0;
display: grid;
place-items: center;
color: #475569;
}
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 16px;
padding: 24px 30px 10px;
}
.stat-card {
background: #fff;
border-radius: 18px;
padding: 18px;
box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
display: flex;
flex-direction: column;
gap: 4px;
}
.stat-hit {
border: none;
background: transparent;
text-align: left;
padding: 0;
cursor: pointer;
width: 100%;
}
.stat-hit.active span,
.stat-hit.active strong {
color: #0ea5e9;
}
.stat-card span {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.12em;
color: #94a3b8;
}
.stat-card strong {
font-size: 1.7rem;
}
.stat-card.confirmed span {
color: #22c55e;
}
.stat-card.pending span {
color: #fbbf24;
}
.stat-card.add-mobile {
display: none;
}
.stats-grid.secondary {
margin-top: -6px;
}
.ghost-btn {
border: 1px dashed #94a3b8;
color: #475569;
}
.filter-bar {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
padding: 0 30px 24px;
gap: 12px;
}
.date-navigator {
display: flex;
align-items: center;
gap: 8px;
border: 1px solid #d1d5db;
border-radius: 12px;
padding: 6px;
background: #fff;
}
.date-navigator button {
border: none;
background: transparent;
padding: 6px;
border-radius: 8px;
cursor: pointer;
}
.date-navigator input {
border: none;
font-size: 0.9rem;
font-weight: 600;
}
.date-navigator input:focus {
outline: none;
}
.doctor-filter {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.doctor-filter button {
border: 1px solid #cbd5f5;
border-radius: 12px;
padding: 6px 12px;
background: #fff;
display: flex;
align-items: center;
gap: 6px;
cursor: pointer;
color: #475569;
}
.doctor-filter button.active {
background: #0ea5e9;
color: #fff;
border-color: transparent;
}
.doctor-filter button.doctor-active {
box-shadow: 0 6px 12px rgba(14, 165, 233, 0.32);
}
.doctor-filter .dot {
width: 10px;
height: 10px;
border-radius: 50%;
display: inline-block;
}
.schedule-panel {
flex: 1;
padding: 0 30px 30px;
overflow: hidden;
}
.panel-header {
display: flex;
justify-content: space-between;
margin-bottom: 16px;
align-items: center;
}
.panel-header h3 {
margin: 0;
}
.panel-header p {
margin: 2px 0 0;
color: #64748b;
}
.panel-actions {
display: flex;
gap: 8px;
}
.icon-btn {
width: 40px;
height: 38px;
border-radius: 12px;
border: none;
background: #fff;
box-shadow: 0 6px 10px rgba(15, 23, 42, 0.08);
display: grid;
place-items: center;
cursor: pointer;
}
.schedule-grid {
background: #fff;
border-radius: 24px;
border: 1px solid #e2e8f0;
padding: 14px;
max-height: calc(100vh - 260px);
overflow-y: auto;
}
.loader {
display: flex;
flex-direction: column;
align-items: center;
padding: 40px 0;
gap: 12px;
color: #94a3b8;
}
.spinner {
width: 48px;
height: 48px;
border-radius: 50%;
border: 4px solid rgba(15, 23, 42, 0.12);
border-top-color: #14b8a6;
animation: spin 1s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.slot-row {
display: flex;
border-bottom: 1px solid #f1f5f9;
padding: 12px 0;
gap: 12px;
}
.slot-row:last-child {
border-bottom: none;
}
.slot-time {
width: 80px;
font-size: 0.9rem;
font-weight: 600;
color: #94a3b8;
text-align: center;
}
.slot-body {
flex: 1;
display: flex;
flex-direction: column;
gap: 6px;
}
.slot-empty {
align-self: flex-end;
border: 1px dashed #cbd5f5;
border-radius: 12px;
padding: 6px 12px;
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 0.75rem;
color: #475569;
cursor: pointer;
}
.slot-cards {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.appointment-card {
flex: 1 1 250px;
border-radius: 16px;
border: 1px solid rgba(15, 23, 42, 0.1);
padding: 12px 14px;
background: #f8fafc;
cursor: pointer;
display: flex;
flex-direction: column;
gap: 6px;
transition: transform 0.2s ease;
}
.appointment-card:hover {
transform: translateY(-4px);
}
.appointment-card.pending {
border-left: 4px solid #facc15;
}
.appointment-card.confirmed {
border-left: 4px solid #22c55e;
}
.appointment-card.cancelled {
border-left: 4px solid #ef4444;
opacity: 0.78;
}
.card-head {
display: flex;
justify-content: space-between;
align-items: center;
}
.card-head span {
font-weight: 600;
}
.card-meta {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
font-size: 0.8rem;
color: #475569;
}
.type-pill {
background: #e0f2fe;
padding: 2px 8px;
border-radius: 999px;
}
.card-footer {
display: flex;
justify-content: space-between;
align-items: center;
}
.tag {
border: 1px solid;
padding: 2px 6px;
border-radius: 999px;
font-size: 0.7rem;
}
.confirm-status {
border: none;
background: transparent;
color: #15803d;
cursor: pointer;
}
.status-badge {
padding: 2px 8px;
border-radius: 999px;
font-size: 0.65rem;
text-transform: uppercase;
letter-spacing: 0.08em;
}
.status-badge.pending {
background: #fff7ed;
color: #c2410c;
}
.status-badge.confirmed {
background: #ecfdf5;
color: #047857;
}
.status-badge.cancelled {
background: #fef2f2;
color: #b91c1c;
}
.quick-overlay {
position: fixed;
inset: 0;
background: rgba(15, 23, 42, 0.35);
display: grid;
place-items: center;
z-index: 9;
padding: 12px;
}
.quick-panel {
width: min(760px, 96vw);
max-height: 80vh;
background: #ffffff;
border-radius: 24px;
box-shadow: 0 40px 80px rgba(15, 23, 42, 0.35);
border: 1px solid #e2e8f0;
overflow: hidden;
}
.quick-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 20px;
background: #f8fafc;
border-bottom: 1px solid #e2e8f0;
}
.quick-header p {
margin: 4px 0 0;
color: #64748b;
}
.quick-actions {
display: flex;
align-items: center;
gap: 8px;
}
.quick-body {
max-height: calc(80vh - 80px);
overflow-y: auto;
}
.quick-actions-row {
display: flex;
gap: 8px;
flex-wrap: wrap;
margin-top: 10px;
}
.quick-btn {
border: 1px solid #e2e8f0;
background: #f8fafc;
color: #0f172a;
border-radius: 10px;
padding: 6px 10px;
font-size: 0.85rem;
cursor: pointer;
}
.quick-btn.success {
border-color: #22c55e;
background: #ecfdf3;
color: #15803d;
}
.quick-btn.neutral {
border-color: #fbbf24;
background: #fffbeb;
color: #92400e;
}
.quick-btn.danger {
border-color: #ef4444;
background: #fef2f2;
color: #991b1b;
}
.quick-reschedule {
margin-top: 10px;
padding: 12px;
border-radius: 12px;
border: 1px solid #e2e8f0;
background: #f8fafc;
}
.reschedule-fields {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 10px;
}
.reschedule-fields label {
display: flex;
flex-direction: column;
gap: 6px;
color: #475569;
font-size: 0.9rem;
}
.reschedule-fields input,
.reschedule-fields select {
border: 1px solid #cbd5f5;
border-radius: 10px;
padding: 8px 10px;
font-size: 0.95rem;
}
.reschedule-actions {
margin-top: 10px;
display: flex;
justify-content: flex-end;
gap: 8px;
}
.quick-row {
padding: 14px 20px;
border-bottom: 1px solid #f1f5f9;
cursor: pointer;
}
.quick-row:hover {
background: #f8fafc;
}
.quick-main {
display: flex;
justify-content: space-between;
align-items: center;
}
.quick-name {
font-weight: 600;
}
.quick-time {
display: inline-flex;
align-items: center;
gap: 6px;
color: #475569;
font-size: 0.9rem;
}
.quick-meta {
margin-top: 8px;
display: flex;
flex-wrap: wrap;
gap: 10px;
align-items: center;
color: #475569;
font-size: 0.9rem;
}
.quick-type {
background: #e0f2fe;
padding: 4px 10px;
border-radius: 12px;
}
.quick-doctor {
font-weight: 600;
}
.quick-body .empty {
padding: 20px;
color: #94a3b8;
text-align: center;
}
.modal-overlay {
position: fixed;
inset: 0;
background: rgba(15, 23, 42, 0.35);
display: grid;
place-items: center;
z-index: 10;
}
.modal-overlay.patient-modal {
z-index: 12;
}
.modal-box {
width: min(600px, 95vw);
background: #fff;
border-radius: 24px;
box-shadow: 0 40px 60px rgba(15, 23, 42, 0.25);
max-height: 90vh;
overflow-y: auto;
}
.modal-box.large {
width: min(960px, 98vw);
max-height: 90vh;
overflow-y: auto;
}
.modal-header {
padding: 20px 28px;
border-bottom: 1px solid #e2e8f0;
display: flex;
justify-content: space-between;
align-items: center;
}
.modal-form {
padding: 20px 28px 28px;
display: flex;
flex-direction: column;
gap: 12px;
}
.modal-form label {
display: flex;
flex-direction: column;
gap: 6px;
font-size: 0.85rem;
color: #475569;
}
.modal-form input,
.modal-form select,
.modal-form textarea {
border: 1px solid #cbd5f5;
border-radius: 12px;
padding: 10px 14px;
font-size: 0.95rem;
transition: border 0.2s ease;
resize: vertical;
}
.record-form textarea {
min-height: 80px;
}
.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
border-color: #0ea5e9;
outline: none;
}
.form-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}
.status-actions {
display: flex;
gap: 8px;
}
.status-actions button {
flex: 1;
padding: 8px 10px;
border-radius: 12px;
border: 1px solid #cbd5f5;
background: transparent;
font-weight: 600;
cursor: pointer;
}
.status-actions button.active {
background: #0ea5e9;
color: #fff;
border: none;
}
.modal-actions {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 12px;
}
.modal-actions .ghost {
border: 1px solid #e11d48;
color: #b91c1c;
background: transparent;
border-radius: 12px;
padding: 8px 14px;
cursor: pointer;
}
.right-actions {
display: flex;
gap: 8px;
}
.right-actions button {
border-radius: 12px;
padding: 8px 16px;
border: 1px solid transparent;
cursor: pointer;
}
.right-actions button.primary {
background: #0ea5e9;
color: #fff;
}
.toast {
position: fixed;
bottom: 30px;
right: 30px;
background: #0f172a;
color: #fff;
padding: 12px 20px;
border-radius: 16px;
box-shadow: 0 20px 40px rgba(15, 23, 42, 0.4);
}
.patients-page {
display: flex;
flex-direction: column;
gap: 16px;
}
.patients-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 16px;
padding: 0 30px 30px;
}
.patient-form,
.patient-list {
background: #fff;
border-radius: 18px;
border: 1px solid #e2e8f0;
padding: 18px;
box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}
.patient-form h3 {
margin-top: 0;
}
.patient-form-body {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 12px;
}
.patient-form-body label {
display: flex;
flex-direction: column;
gap: 6px;
color: #475569;
font-size: 0.9rem;
}
.patient-form-body input {
border: 1px solid #cbd5f5;
border-radius: 10px;
padding: 10px 12px;
}
.patient-actions {
grid-column: 1 / -1;
display: flex;
justify-content: flex-end;
gap: 10px;
align-items: center;
}
.patient-list .patients-heading {
margin-bottom: 12px;
}
.patient-rows {
display: flex;
flex-direction: column;
gap: 10px;
}
.patient-row {
border: 1px solid #e2e8f0;
border-radius: 12px;
padding: 12px;
background: #f8fafc;
display: flex;
flex-direction: column;
gap: 6px;
}
.patient-main {
display: flex;
gap: 10px;
align-items: center;
flex-wrap: wrap;
}
.patient-main strong {
font-size: 1rem;
}
.patient-meta {
display: flex;
gap: 10px;
color: #475569;
flex-wrap: wrap;
font-size: 0.9rem;
}
.patient-actions-row {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.settings-page {
display: flex;
flex-direction: column;
gap: 16px;
}
.settings-grid {
display: flex;
flex-direction: column;
gap: 12px;
padding: 0 30px 30px;
}
.settings-card {
background: #fff;
border-radius: 18px;
border: 1px solid #e2e8f0;
padding: 18px;
box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
display: flex;
flex-direction: column;
gap: 12px;
}
.settings-card h3 {
margin: 0;
}
.settings-card-toggle {
border: none;
background: transparent;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0;
cursor: pointer;
font: inherit;
color: inherit;
}
.settings-card-toggle svg {
transition: transform 0.2s ease;
}
.settings-card-toggle .rotated {
transform: rotate(180deg);
}
.settings-card-body {
border-top: 1px solid #e2e8f0;
padding-top: 14px;
display: flex;
flex-direction: column;
gap: 12px;
}
.settings-form label {
display: flex;
flex-direction: column;
gap: 6px;
color: #475569;
font-size: 0.9rem;
}
.settings-form input,
.settings-form textarea {
border: 1px solid #cbd5f5;
border-radius: 10px;
padding: 10px 12px;
font-size: 0.95rem;
}
.settings-form textarea {
resize: vertical;
}
.settings-actions {
display: flex;
justify-content: flex-end;
}
.inline-form {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.inline-form input[type='text'],
.inline-form input[type='color'] {
border: 1px solid #cbd5f5;
border-radius: 10px;
padding: 8px 10px;
font-size: 0.9rem;
flex: 1;
min-width: 120px;
}
.inline-form input[type='color'] {
max-width: 70px;
padding: 0;
height: 38px;
}
.settings-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 10px;
}
.settings-list li {
border: 1px solid #e2e8f0;
border-radius: 12px;
padding: 10px 12px;
display: flex;
justify-content: space-between;
align-items: center;
background: #f8fafc;
gap: 12px;
}
.settings-list li .info {
display: flex;
flex-direction: column;
}
.settings-list li.empty {
justify-content: center;
color: #94a3b8;
}
.patient-selected {
margin-top: 8px;
padding: 10px 12px;
border-radius: 12px;
background: #f1f5f9;
display: flex;
flex-wrap: wrap;
gap: 8px;
align-items: center;
}
.records-page {
display: flex;
flex-direction: column;
gap: 16px;
}
.records-grid {
padding: 0 30px 30px;
display: flex;
flex-direction: column;
gap: 16px;
}
.record-card {
background: #fff;
border-radius: 18px;
border: 1px solid #e2e8f0;
padding: 18px;
box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}
.record-card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 12px;
}
.record-card-header h3 {
margin: 0;
}
.record-entries {
display: flex;
flex-direction: column;
gap: 12px;
}
.record-entry {
border: 1px solid #e2e8f0;
border-radius: 14px;
padding: 14px;
background: #f8fafc;
}
.record-entry-head {
display: flex;
gap: 12px;
font-size: 0.9rem;
color: #475569;
flex-wrap: wrap;
}
.record-section {
margin-top: 10px;
}
.record-section h4 {
margin: 0 0 4px;
font-size: 0.85rem;
text-transform: uppercase;
letter-spacing: 0.08em;
color: #94a3b8;
}
.record-section p {
margin: 0;
color: #1e293b;
font-size: 0.95rem;
}
.patient-picker {
display: flex;
gap: 8px;
align-items: flex-end;
flex-wrap: wrap;
}
.patient-picker .ghost-btn {
height: 40px;
}
.patient-suggestions {
margin-top: 6px;
border: 1px solid #e2e8f0;
border-radius: 12px;
background: #fff;
box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
overflow: hidden;
}
.patient-suggestions button {
width: 100%;
padding: 10px 12px;
border: none;
background: #fff;
display: flex;
gap: 8px;
align-items: center;
cursor: pointer;
text-align: left;
border-bottom: 1px solid #f1f5f9;
}
.patient-suggestions button:last-child {
border-bottom: none;
}
.patient-suggestions button:hover {
background: #f8fafc;
}
.patient-name {
font-weight: 600;
}
.patient-meta {
color: #475569;
font-size: 0.9rem;
}
@media (max-width: 1100px) {
.sidebar {
display: none;
}
.app-shell {
flex-direction: column;
}
.main-area {
width: 100%;
}
.stat-card.add-mobile {
display: flex;
justify-content: center;
align-items: center;
}
}
@media (max-width: 768px) {
.topbar {
flex-direction: column;
align-items: flex-start;
gap: 16px;
}
.filter-bar {
flex-direction: column;
align-items: stretch;
}
.form-grid {
grid-template-columns: 1fr;
}
.slot-row {
flex-direction: column;
}
.slot-time {
width: 100%;
text-align: left;
}
}