riseup-squad20/crude/app/globals.css
2025-08-17 14:21:29 -03:00

781 lines
16 KiB
CSS

@import "tailwindcss";
@import "tw-animate-css";
@custom-variant dark (&:is(.dark *));
:root {
--medical-blue: #1e40af;
--medical-blue-light: #3b82f6;
--medical-green: #059669;
--medical-green-light: #10b981;
--medical-red: #dc2626;
--medical-orange: #ea580c;
--clinical-white: #ffffff;
--clinical-gray-50: #f9fafb;
--clinical-gray-100: #f3f4f6;
--clinical-gray-200: #e5e7eb;
--clinical-gray-300: #d1d5db;
--clinical-gray-400: #9ca3af;
--clinical-gray-500: #6b7280;
--clinical-gray-600: #4b5563;
--clinical-gray-700: #374151;
--clinical-gray-800: #1f2937;
--clinical-gray-900: #111827;
--background: oklch(1 0 0);
--foreground: oklch(0.145 0 0);
--card: oklch(1 0 0);
--card-foreground: oklch(0.145 0 0);
--popover: oklch(1 0 0);
--popover-foreground: oklch(0.145 0 0);
--primary: oklch(0.205 0 0);
--primary-foreground: oklch(0.985 0 0);
--secondary: oklch(0.97 0 0);
--secondary-foreground: oklch(0.205 0 0);
--muted: oklch(0.97 0 0);
--muted-foreground: oklch(0.556 0 0);
--accent: oklch(0.97 0 0);
--accent-foreground: oklch(0.205 0 0);
--destructive: oklch(0.577 0.245 27.325);
--destructive-foreground: oklch(0.577 0.245 27.325);
--border: oklch(0.922 0 0);
--input: oklch(0.922 0 0);
--ring: oklch(0.708 0 0);
--chart-1: oklch(0.646 0.222 41.116);
--chart-2: oklch(0.6 0.118 184.704);
--chart-3: oklch(0.398 0.07 227.392);
--chart-4: oklch(0.828 0.189 84.429);
--chart-5: oklch(0.769 0.188 70.08);
--radius: 0.625rem;
--sidebar: oklch(0.985 0 0);
--sidebar-foreground: oklch(0.145 0 0);
--sidebar-primary: oklch(0.205 0 0);
--sidebar-primary-foreground: oklch(0.985 0 0);
--sidebar-accent: oklch(0.97 0 0);
--sidebar-accent-foreground: oklch(0.205 0 0);
--sidebar-border: oklch(0.922 0 0);
--sidebar-ring: oklch(0.708 0 0);
}
.dark {
--background: oklch(0.145 0 0);
--foreground: oklch(0.985 0 0);
--card: oklch(0.145 0 0);
--card-foreground: oklch(0.985 0 0);
--popover: oklch(0.145 0 0);
--popover-foreground: oklch(0.985 0 0);
--primary: oklch(0.985 0 0);
--primary-foreground: oklch(0.205 0 0);
--secondary: oklch(0.269 0 0);
--secondary-foreground: oklch(0.985 0 0);
--muted: oklch(0.269 0 0);
--muted-foreground: oklch(0.708 0 0);
--accent: oklch(0.269 0 0);
--accent-foreground: oklch(0.985 0 0);
--destructive: oklch(0.396 0.141 25.723);
--destructive-foreground: oklch(0.637 0.237 25.331);
--border: oklch(0.269 0 0);
--input: oklch(0.269 0 0);
--ring: oklch(0.439 0 0);
--chart-1: oklch(0.488 0.243 264.376);
--chart-2: oklch(0.696 0.17 162.48);
--chart-3: oklch(0.769 0.188 70.08);
--chart-4: oklch(0.627 0.265 303.9);
--chart-5: oklch(0.645 0.246 16.439);
--sidebar: oklch(0.205 0 0);
--sidebar-foreground: oklch(0.985 0 0);
--sidebar-primary: oklch(0.488 0.243 264.376);
--sidebar-primary-foreground: oklch(0.985 0 0);
--sidebar-accent: oklch(0.269 0 0);
--sidebar-accent-foreground: oklch(0.985 0 0);
--sidebar-border: oklch(0.269 0 0);
--sidebar-ring: oklch(0.439 0 0);
}
@theme inline {
--color-background: var(--background);
--color-foreground: var(--foreground);
--color-card: var(--card);
--color-card-foreground: var(--card-foreground);
--color-popover: var(--popover);
--color-popover-foreground: var(--popover-foreground);
--color-primary: var(--primary);
--color-primary-foreground: var(--primary-foreground);
--color-secondary: var(--secondary);
--color-secondary-foreground: var(--secondary-foreground);
--color-muted: var(--muted);
--color-muted-foreground: var(--muted-foreground);
--color-accent: var(--accent);
--color-accent-foreground: var(--accent-foreground);
--color-destructive: var(--destructive);
--color-destructive-foreground: var(--destructive-foreground);
--color-border: var(--border);
--color-input: var(--input);
--color-ring: var(--ring);
--color-chart-1: var(--chart-1);
--color-chart-2: var(--chart-2);
--color-chart-3: var(--chart-3);
--color-chart-4: var(--chart-4);
--color-chart-5: var(--chart-5);
--radius-sm: calc(var(--radius) - 4px);
--radius-md: calc(var(--radius) - 2px);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) + 4px);
--color-sidebar: var(--sidebar);
--color-sidebar-foreground: var(--sidebar-foreground);
--color-sidebar-primary: var(--sidebar-primary);
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
--color-sidebar-accent: var(--sidebar-accent);
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
--color-sidebar-border: var(--sidebar-border);
--color-sidebar-ring: var(--sidebar-ring);
}
@layer base {
* {
@apply border-border outline-ring/50;
}
body {
@apply bg-background text-foreground;
}
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Inter", sans-serif;
background: var(--clinical-gray-50);
color: var(--clinical-gray-900);
line-height: 1.5;
font-size: 14px;
}
.medical-system {
min-height: 100vh;
display: flex;
flex-direction: column;
}
.system-header {
background: var(--clinical-white);
border-bottom: 1px solid var(--clinical-gray-200);
padding: 0.75rem 1.5rem;
display: flex;
align-items: center;
justify-content: space-between;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
position: sticky;
top: 0;
z-index: 100;
}
.header-brand {
display: flex;
align-items: center;
gap: 0.75rem;
}
.brand-icon {
width: 32px;
height: 32px;
background: linear-gradient(135deg, var(--medical-blue) 0%, var(--medical-blue-light) 100%);
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
color: white;
}
.brand-text h1 {
font-size: 1.25rem;
font-weight: 700;
color: var(--clinical-gray-900);
line-height: 1.2;
}
.brand-text p {
font-size: 0.75rem;
color: var(--clinical-gray-500);
font-weight: 500;
}
.header-actions {
display: flex;
align-items: center;
gap: 0.75rem;
}
.user-info {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 0.75rem;
background: var(--clinical-gray-100);
border-radius: 6px;
font-size: 0.8rem;
color: var(--clinical-gray-700);
}
.main-content {
flex: 1;
padding: 1.5rem;
max-width: 1400px;
margin: 0 auto;
width: 100%;
}
.quick-stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1rem;
margin-bottom: 1.5rem;
}
.stat-card {
background: var(--clinical-white);
border: 1px solid var(--clinical-gray-200);
border-radius: 8px;
padding: 1rem;
display: flex;
align-items: center;
gap: 0.75rem;
transition: all 0.2s ease;
position: relative;
overflow: hidden;
}
.stat-card::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3px;
background: var(--accent-color);
}
.stat-card:hover {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
transform: translateY(-1px);
}
.stat-card.patients::before {
--accent-color: var(--medical-blue);
}
.stat-card.appointments::before {
--accent-color: var(--medical-green);
}
.stat-card.contacts::before {
--accent-color: var(--medical-orange);
}
.stat-card.recent::before {
--accent-color: var(--medical-red);
}
.stat-icon {
width: 40px;
height: 40px;
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
background: var(--icon-bg);
color: var(--icon-color);
}
.stat-card.patients .stat-icon {
--icon-bg: #dbeafe;
--icon-color: var(--medical-blue);
}
.stat-card.appointments .stat-icon {
--icon-bg: #d1fae5;
--icon-color: var(--medical-green);
}
.stat-card.contacts .stat-icon {
--icon-bg: #fed7aa;
--icon-color: var(--medical-orange);
}
.stat-card.recent .stat-icon {
--icon-bg: #fecaca;
--icon-color: var(--medical-red);
}
.stat-content h3 {
font-size: 1.5rem;
font-weight: 700;
color: var(--clinical-gray-900);
line-height: 1;
margin-bottom: 0.25rem;
}
.stat-content p {
font-size: 0.8rem;
color: var(--clinical-gray-600);
font-weight: 500;
}
.control-panel {
background: var(--clinical-white);
border: 1px solid var(--clinical-gray-200);
border-radius: 8px;
padding: 1rem 1.25rem;
margin-bottom: 1.5rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.panel-title {
font-size: 1.1rem;
font-weight: 600;
color: var(--clinical-gray-900);
}
.add-patient-btn {
display: inline-flex;
align-items: center;
gap: 0.5rem;
background: var(--medical-blue);
color: white;
border: none;
border-radius: 6px;
padding: 0.6rem 1rem;
font-size: 0.85rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
}
.add-patient-btn:hover {
background: var(--medical-blue-light);
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}
.patients-section {
background: var(--clinical-white);
border: 1px solid var(--clinical-gray-200);
border-radius: 8px;
overflow: hidden;
}
.section-header {
padding: 1rem 1.25rem;
border-bottom: 1px solid var(--clinical-gray-200);
background: var(--clinical-gray-50);
}
.section-title {
font-size: 1rem;
font-weight: 600;
color: var(--clinical-gray-900);
display: flex;
align-items: center;
gap: 0.5rem;
}
.patient-count {
background: var(--medical-blue);
color: white;
padding: 0.2rem 0.5rem;
border-radius: 12px;
font-size: 0.75rem;
font-weight: 600;
}
.table-wrapper {
overflow-x: auto;
}
.patients-table {
width: 100%;
border-collapse: collapse;
font-size: 0.85rem;
}
.patients-table th {
background: var(--clinical-gray-50);
color: var(--clinical-gray-700);
font-weight: 600;
text-align: left;
padding: 0.75rem 1rem;
border-bottom: 1px solid var(--clinical-gray-200);
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.025em;
}
.patients-table td {
padding: 0.75rem 1rem;
border-bottom: 1px solid var(--clinical-gray-100);
color: var(--clinical-gray-900);
vertical-align: middle;
}
.patients-table tr:hover {
background: var(--clinical-gray-50);
}
.patient-name {
font-weight: 600;
color: var(--clinical-gray-900);
}
.patient-id {
font-size: 0.75rem;
color: var(--clinical-gray-500);
font-family: monospace;
}
.contact-info {
display: flex;
flex-direction: column;
gap: 0.1rem;
}
.phone-number {
font-weight: 500;
}
.location-info {
font-size: 0.8rem;
color: var(--clinical-gray-600);
}
.date-info {
font-size: 0.8rem;
font-weight: 500;
}
.date-label {
font-size: 0.7rem;
color: var(--clinical-gray-500);
text-transform: uppercase;
letter-spacing: 0.025em;
}
.action-buttons {
display: flex;
gap: 0.25rem;
}
.action-btn {
width: 28px;
height: 28px;
border: none;
border-radius: 4px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
}
.edit-btn {
background: #dbeafe;
color: var(--medical-blue);
}
.edit-btn:hover {
background: var(--medical-blue);
color: white;
}
.delete-btn {
background: #fecaca;
color: var(--medical-red);
}
.delete-btn:hover {
background: var(--medical-red);
color: white;
}
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(4px);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
padding: 1rem;
}
.modal-content {
background: var(--clinical-white);
border-radius: 12px;
width: 100%;
max-width: 500px;
max-height: 90vh;
overflow-y: auto;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
.modal-header {
padding: 1.25rem 1.5rem 1rem;
border-bottom: 1px solid var(--clinical-gray-200);
display: flex;
align-items: center;
gap: 0.75rem;
}
.modal-header h2 {
font-size: 1.1rem;
font-weight: 600;
color: var(--clinical-gray-900);
}
.modal-body {
padding: 1.5rem;
}
.form-grid {
display: grid;
gap: 1rem;
margin-bottom: 1.5rem;
}
.form-group {
display: flex;
flex-direction: column;
gap: 0.4rem;
}
.form-label {
font-size: 0.8rem;
font-weight: 600;
color: var(--clinical-gray-700);
text-transform: uppercase;
letter-spacing: 0.025em;
}
.form-input {
padding: 0.6rem 0.75rem;
border: 1px solid var(--clinical-gray-300);
border-radius: 6px;
background: var(--clinical-white);
color: var(--clinical-gray-900);
font-size: 0.85rem;
transition: all 0.2s ease;
}
.form-input:focus {
outline: none;
border-color: var(--medical-blue);
box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}
.form-input::placeholder {
color: var(--clinical-gray-400);
}
.form-actions {
display: flex;
gap: 0.75rem;
justify-content: flex-end;
padding-top: 1rem;
border-top: 1px solid var(--clinical-gray-200);
}
.save-btn {
background: var(--medical-green);
color: white;
border: none;
border-radius: 6px;
padding: 0.6rem 1.25rem;
font-size: 0.85rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
}
.save-btn:hover {
background: var(--medical-green-light);
transform: translateY(-1px);
}
.cancel-btn {
background: var(--clinical-gray-100);
color: var(--clinical-gray-700);
border: 1px solid var(--clinical-gray-300);
border-radius: 6px;
padding: 0.6rem 1.25rem;
font-size: 0.85rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
}
.cancel-btn:hover {
background: var(--clinical-gray-200);
}
.empty-state {
text-align: center;
padding: 3rem 2rem;
color: var(--clinical-gray-500);
}
.empty-icon {
width: 64px;
height: 64px;
margin: 0 auto 1rem;
opacity: 0.5;
color: var(--clinical-gray-400);
}
.empty-title {
font-size: 1.1rem;
font-weight: 600;
margin-bottom: 0.5rem;
color: var(--clinical-gray-700);
}
.empty-description {
font-size: 0.9rem;
color: var(--clinical-gray-500);
}
.toast-container {
position: fixed;
top: 1rem;
right: 1rem;
z-index: 1100;
}
.toast {
background: var(--clinical-white);
border: 1px solid var(--clinical-gray-200);
border-radius: 8px;
padding: 0.75rem 1rem;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
display: flex;
align-items: center;
gap: 0.75rem;
min-width: 280px;
animation: slideIn 0.3s ease;
border-left: 4px solid var(--toast-color);
}
.toast.success {
--toast-color: var(--medical-green);
}
.toast.error {
--toast-color: var(--medical-red);
}
.toast.info {
--toast-color: var(--medical-blue);
}
.toast-message {
color: var(--clinical-gray-900);
font-size: 0.85rem;
font-weight: 500;
}
@keyframes slideIn {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
.system-footer {
background: var(--clinical-white);
border-top: 1px solid var(--clinical-gray-200);
padding: 1rem 1.5rem;
text-align: center;
color: var(--clinical-gray-500);
font-size: 0.8rem;
margin-top: auto;
}
.footer-text {
margin-bottom: 0.25rem;
}
.footer-version {
font-size: 0.75rem;
color: var(--clinical-gray-400);
}
@media (max-width: 768px) {
.main-content {
padding: 1rem;
}
.quick-stats {
grid-template-columns: repeat(2, 1fr);
gap: 0.75rem;
}
.stat-card {
padding: 0.75rem;
}
.stat-content h3 {
font-size: 1.25rem;
}
.control-panel {
flex-direction: column;
gap: 1rem;
text-align: center;
}
.patients-table {
font-size: 0.8rem;
}
.patients-table th,
.patients-table td {
padding: 0.5rem 0.75rem;
}
.modal-content {
margin: 1rem;
max-width: calc(100vw - 2rem);
}
.form-actions {
flex-direction: column;
}
.header-actions .user-info {
display: none;
}
}
@media (max-width: 480px) {
.quick-stats {
grid-template-columns: 1fr;
}
.brand-text h1 {
font-size: 1.1rem;
}
.brand-text p {
display: none;
}
.patients-table th:nth-child(4),
.patients-table td:nth-child(4),
.patients-table th:nth-child(5),
.patients-table td:nth-child(5) {
display: none;
}
}