1423 lines
31 KiB
CSS
1423 lines
31 KiB
CSS
/* ================================================================
|
|
DENTAL IMAGE MANAGER - STYLES (Mobile-First)
|
|
================================================================ */
|
|
|
|
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
|
|
|
:root {
|
|
--primary-color: #667eea;
|
|
--primary-dark: #5568d3;
|
|
--secondary-color: #764ba2;
|
|
--success-color: #51cf66;
|
|
--danger-color: #ff6b6b;
|
|
--warning-color: #ffd43b;
|
|
--info-color: #339af0;
|
|
--dark-color: #1a202c;
|
|
--light-color: #f0f4ff;
|
|
--border-color: #e2e8f0;
|
|
--text-secondary: #718096;
|
|
--card-bg: #ffffff;
|
|
--shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
|
|
--shadow-lg: 0 10px 30px rgba(102, 126, 234, 0.15);
|
|
--radius: 14px;
|
|
--radius-sm: 8px;
|
|
--header-h: 60px;
|
|
--bg-color: var(--light-color);
|
|
--text-color: var(--dark-color);
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
html {
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
background: var(--light-color);
|
|
color: var(--dark-color);
|
|
line-height: 1.6;
|
|
min-height: 100vh;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
/* ================================================================
|
|
LAYOUT CONTAINER
|
|
================================================================ */
|
|
|
|
.container {
|
|
width: 100%;
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
padding: 12px;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.container {
|
|
padding: 24px;
|
|
}
|
|
}
|
|
|
|
/* ================================================================
|
|
HEADER
|
|
================================================================ */
|
|
|
|
.header {
|
|
background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
|
|
color: white;
|
|
padding: 18px 16px;
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--shadow-lg);
|
|
margin-bottom: 16px;
|
|
position: sticky;
|
|
top: 8px;
|
|
z-index: 100;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.header {
|
|
padding: 28px 30px;
|
|
margin-bottom: 28px;
|
|
position: static;
|
|
}
|
|
}
|
|
|
|
.header-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.header-content {
|
|
flex-direction: row;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
}
|
|
|
|
.header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.header h1 {
|
|
font-size: 1.3rem;
|
|
font-weight: 700;
|
|
letter-spacing: -0.3px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.header h1 {
|
|
font-size: 1.8rem;
|
|
}
|
|
}
|
|
|
|
/* Back button */
|
|
.btn-back {
|
|
background: rgba(255,255,255,0.15);
|
|
color: white;
|
|
border: 1px solid rgba(255,255,255,0.3);
|
|
padding: 8px 14px;
|
|
font-size: 0.85rem;
|
|
border-radius: 50px;
|
|
white-space: nowrap;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.btn-back:hover {
|
|
background: rgba(255,255,255,0.28);
|
|
transform: none;
|
|
box-shadow: none;
|
|
}
|
|
|
|
/* Patient sub-header */
|
|
.patient-header {
|
|
margin-top: 14px;
|
|
padding-top: 14px;
|
|
border-top: 1px solid rgba(255,255,255,0.15);
|
|
}
|
|
|
|
.patient-header-name {
|
|
font-size: 1.15rem;
|
|
font-weight: 700;
|
|
color: white;
|
|
}
|
|
|
|
.patient-header-meta {
|
|
font-size: 0.82rem;
|
|
color: rgba(255,255,255,0.7);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.header-actions {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 8px;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.header-actions {
|
|
display: flex;
|
|
flex-direction: row;
|
|
gap: 12px;
|
|
align-items: center;
|
|
}
|
|
}
|
|
|
|
.client-filter {
|
|
grid-column: span 2;
|
|
padding: 10px 14px;
|
|
border: none;
|
|
border-radius: var(--radius-sm);
|
|
font-size: 0.9rem;
|
|
font-family: inherit;
|
|
background: rgba(255,255,255,0.95);
|
|
color: var(--dark-color);
|
|
cursor: pointer;
|
|
width: 100%;
|
|
font-weight: 500;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.client-filter {
|
|
min-width: 220px;
|
|
width: auto;
|
|
grid-column: auto;
|
|
padding: 12px 18px;
|
|
font-size: 1rem;
|
|
}
|
|
}
|
|
|
|
.client-filter:focus {
|
|
outline: 3px solid rgba(255,255,255,0.4);
|
|
}
|
|
|
|
.search-input {
|
|
grid-column: span 2;
|
|
padding: 10px 14px;
|
|
border: none;
|
|
border-radius: var(--radius-sm);
|
|
font-size: 0.9rem;
|
|
font-family: inherit;
|
|
background: rgba(255,255,255,0.95);
|
|
width: 100%;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.search-input {
|
|
flex: 1;
|
|
grid-column: auto;
|
|
min-width: 220px;
|
|
padding: 12px 18px;
|
|
font-size: 1rem;
|
|
}
|
|
}
|
|
|
|
.search-input:focus {
|
|
outline: 3px solid rgba(255,255,255,0.4);
|
|
}
|
|
|
|
/* ================================================================
|
|
BUTTONS
|
|
================================================================ */
|
|
|
|
.btn {
|
|
padding: 10px 16px;
|
|
border: none;
|
|
border-radius: var(--radius-sm);
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
font-family: inherit;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
white-space: nowrap;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
touch-action: manipulation;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.btn {
|
|
padding: 12px 22px;
|
|
font-size: 0.95rem;
|
|
}
|
|
}
|
|
|
|
.btn:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.btn:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--primary-color);
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: var(--primary-dark);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: rgba(255,255,255,0.2);
|
|
color: white;
|
|
backdrop-filter: blur(10px);
|
|
border: 1px solid rgba(255,255,255,0.3);
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: rgba(255,255,255,0.3);
|
|
}
|
|
|
|
.btn-success {
|
|
background: var(--success-color);
|
|
color: white;
|
|
}
|
|
|
|
.btn-success:hover {
|
|
background: #43b558;
|
|
}
|
|
|
|
.btn-danger {
|
|
background: var(--danger-color);
|
|
color: white;
|
|
}
|
|
|
|
.btn-danger:hover {
|
|
background: #f03e3e;
|
|
}
|
|
|
|
.btn-info {
|
|
background: var(--info-color);
|
|
color: white;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.btn-info:hover {
|
|
background: #228be6;
|
|
}
|
|
|
|
.btn-block {
|
|
width: 100%;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.btn-small {
|
|
padding: 7px 12px;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
/* ================================================================
|
|
IMAGES GRID
|
|
================================================================ */
|
|
|
|
.images-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 12px;
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
@media (min-width: 480px) {
|
|
.images-grid {
|
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
gap: 14px;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.images-grid {
|
|
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
|
gap: 20px;
|
|
}
|
|
}
|
|
|
|
/* ================================================================
|
|
IMAGE CARD
|
|
================================================================ */
|
|
|
|
.image-card {
|
|
background: var(--card-bg);
|
|
border-radius: var(--radius);
|
|
overflow: hidden;
|
|
box-shadow: var(--shadow);
|
|
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
|
cursor: pointer;
|
|
position: relative;
|
|
border: 1px solid var(--border-color);
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.image-card:hover {
|
|
transform: translateY(-3px);
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
.image-card:active {
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.image-card.disabled {
|
|
opacity: 0.65;
|
|
border: 2px dashed var(--warning-color);
|
|
}
|
|
|
|
.image-preview {
|
|
width: 100%;
|
|
height: 160px;
|
|
min-height: 160px;
|
|
object-fit: cover;
|
|
background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
@media (min-width: 480px) {
|
|
.image-preview {
|
|
height: 200px;
|
|
min-height: 200px;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.image-preview {
|
|
height: 240px;
|
|
min-height: 240px;
|
|
}
|
|
}
|
|
|
|
.image-info {
|
|
padding: 12px;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.image-info {
|
|
padding: 15px;
|
|
}
|
|
}
|
|
|
|
.image-patient-name {
|
|
font-weight: 700;
|
|
margin-bottom: 3px;
|
|
font-size: 0.95rem;
|
|
color: var(--dark-color);
|
|
line-height: 1.3;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.image-patient-name {
|
|
font-size: 1.05rem;
|
|
}
|
|
}
|
|
|
|
.image-guid {
|
|
font-size: 0.72rem;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 8px;
|
|
word-break: break-all;
|
|
line-height: 1.4;
|
|
/* Show only 2 lines */
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.image-meta {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 0.78rem;
|
|
color: #888;
|
|
flex-wrap: wrap;
|
|
gap: 4px;
|
|
}
|
|
|
|
.image-doctor-remark {
|
|
margin-top: 6px;
|
|
padding-top: 6px;
|
|
border-top: 1px dashed #edf2f7;
|
|
font-size: 0.75rem;
|
|
color: #4a5568;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.image-doctor-remark div {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.image-actions {
|
|
display: flex;
|
|
gap: 6px;
|
|
margin-top: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.image-actions .btn {
|
|
flex: 1;
|
|
min-width: 0;
|
|
padding: 7px 8px;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
@media (min-width: 480px) {
|
|
.image-actions .btn {
|
|
font-size: 0.8rem;
|
|
padding: 8px 10px;
|
|
}
|
|
}
|
|
|
|
.image-badge {
|
|
position: absolute;
|
|
top: 8px;
|
|
right: 8px;
|
|
background: var(--danger-color);
|
|
color: white;
|
|
padding: 4px 8px;
|
|
border-radius: 20px;
|
|
font-size: 0.72rem;
|
|
font-weight: 700;
|
|
letter-spacing: 0.3px;
|
|
}
|
|
|
|
/* Patient count badge (in thumbnail overlay) */
|
|
.patient-count-badge {
|
|
position: absolute;
|
|
bottom: 10px;
|
|
left: 10px;
|
|
background: rgba(0,0,0,0.65);
|
|
color: white;
|
|
padding: 4px 10px;
|
|
border-radius: 20px;
|
|
font-size: 0.78rem;
|
|
font-weight: 600;
|
|
backdrop-filter: blur(4px);
|
|
}
|
|
|
|
/* Patient card image-preview needs relative positioning */
|
|
.patient-card .image-preview {
|
|
position: relative;
|
|
}
|
|
|
|
/* Subtle scale on patient card click */
|
|
.patient-card:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
/* ================================================================
|
|
LOADING & EMPTY STATES
|
|
================================================================ */
|
|
|
|
.loading {
|
|
text-align: center;
|
|
padding: 60px 20px;
|
|
}
|
|
|
|
.spinner {
|
|
border: 3px solid var(--border-color);
|
|
border-top: 3px solid var(--primary-color);
|
|
border-radius: 50%;
|
|
width: 44px;
|
|
height: 44px;
|
|
animation: spin 0.8s linear infinite;
|
|
margin: 0 auto 20px;
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% { transform: rotate(0deg); }
|
|
100% { transform: rotate(360deg); }
|
|
}
|
|
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 60px 20px;
|
|
}
|
|
|
|
.empty-icon {
|
|
font-size: 3.5rem;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
/* ================================================================
|
|
MODAL
|
|
================================================================ */
|
|
|
|
.modal {
|
|
display: none;
|
|
position: fixed;
|
|
z-index: 1000;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0,0,0,0.65);
|
|
backdrop-filter: blur(4px);
|
|
overflow-y: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
.modal.active {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0;
|
|
}
|
|
|
|
.modal-content {
|
|
background: white;
|
|
border-radius: 0;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
max-height: 100vh;
|
|
max-width: 100vw;
|
|
overflow-y: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
box-shadow: none;
|
|
animation: slideUp 0.3s ease;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.modal-large {
|
|
width: 90vw;
|
|
height: 98vh;
|
|
max-width: 90vw;
|
|
max-height: 98vh;
|
|
border-radius: 16px;
|
|
box-shadow: 0 24px 80px rgba(0,0,0,0.45);
|
|
animation: modalAppear 0.25s ease;
|
|
}
|
|
|
|
@keyframes modalAppear {
|
|
from { opacity: 0; transform: scale(0.95); }
|
|
to { opacity: 1; transform: scale(1); }
|
|
}
|
|
|
|
@keyframes slideUp {
|
|
from { transform: translateY(100%); }
|
|
to { transform: translateY(0); }
|
|
}
|
|
|
|
@keyframes slideDown {
|
|
from { opacity: 0; transform: translateY(-30px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
.modal-header {
|
|
padding: 18px 20px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
position: sticky;
|
|
top: 0;
|
|
background: white;
|
|
z-index: 1;
|
|
}
|
|
|
|
.modal-header h2 {
|
|
font-size: 1.1rem;
|
|
color: var(--dark-color);
|
|
font-weight: 700;
|
|
}
|
|
|
|
@media (min-width: 600px) {
|
|
.modal-header {
|
|
padding: 24px 28px;
|
|
}
|
|
.modal-header h2 {
|
|
font-size: 1.4rem;
|
|
}
|
|
}
|
|
|
|
.modal-close {
|
|
font-size: 1.8rem;
|
|
cursor: pointer;
|
|
color: #888;
|
|
transition: color 0.2s;
|
|
line-height: 1;
|
|
padding: 4px;
|
|
border-radius: 50%;
|
|
width: 36px;
|
|
height: 36px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.modal-close:hover {
|
|
color: var(--danger-color);
|
|
background: #fff0f0;
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 20px;
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
@media (min-width: 600px) {
|
|
.modal-body {
|
|
padding: 28px;
|
|
}
|
|
}
|
|
|
|
/* ================================================================
|
|
TRANSFORM GRID — Adaptativo por orientação da imagem
|
|
================================================================
|
|
|
|
HORIZONTAL (original paisagem):
|
|
- Original → coluna 1, 2 linhas
|
|
- Flip H + Flip V → coluna 2, empilhados (um sobre o outro)
|
|
- +90° e -90° → colunas 3 e 4, lado a lado
|
|
|
|
VERTICAL (original retrato):
|
|
- Original → coluna 1, 2 linhas
|
|
- Flip H + Flip V → colunas 2 e 3, lado a lado
|
|
- +90° e -90° → coluna 4, empilhados (um sobre o outro)
|
|
================================================================ */
|
|
|
|
.transform-grid {
|
|
display: grid;
|
|
gap: 12px;
|
|
height: 100%;
|
|
align-items: stretch;
|
|
overflow: hidden;
|
|
padding: 6px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* ---- HORIZONTAL (paisagem) ---- */
|
|
.transform-grid.grid-landscape {
|
|
grid-template-columns: 2fr 1.3fr 1fr 1fr;
|
|
grid-template-rows: 1fr 1fr;
|
|
}
|
|
/* Original: col 1, 2 linhas */
|
|
.transform-grid.grid-landscape .transform-option:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
|
|
/* Flip H: col 2, linha 1 */
|
|
.transform-grid.grid-landscape .transform-option:nth-child(2) { grid-column: 2; grid-row: 1; }
|
|
/* Flip V: col 2, linha 2 (empilhado sob Flip H) */
|
|
.transform-grid.grid-landscape .transform-option:nth-child(3) { grid-column: 2; grid-row: 2; }
|
|
/* +90°: col 3, 2 linhas (lado a lado com -90°) */
|
|
.transform-grid.grid-landscape .transform-option:nth-child(4) { grid-column: 3; grid-row: 1 / span 2; }
|
|
/* -90°: col 4, 2 linhas (lado a lado com +90°) */
|
|
.transform-grid.grid-landscape .transform-option:nth-child(5) { grid-column: 4; grid-row: 1 / span 2; }
|
|
|
|
/* ---- VERTICAL (retrato) ---- */
|
|
.transform-grid.grid-portrait {
|
|
grid-template-columns: 1fr 1fr 1fr 1.6fr;
|
|
grid-template-rows: 1fr 1fr;
|
|
}
|
|
/* Original: col 1, 2 linhas */
|
|
.transform-grid.grid-portrait .transform-option:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
|
|
/* Flip H: col 2, 2 linhas (lado a lado com Flip V) */
|
|
.transform-grid.grid-portrait .transform-option:nth-child(2) { grid-column: 2; grid-row: 1 / span 2; }
|
|
/* Flip V: col 3, 2 linhas (lado a lado com Flip H) */
|
|
.transform-grid.grid-portrait .transform-option:nth-child(3) { grid-column: 3; grid-row: 1 / span 2; }
|
|
/* +90°: col 4, linha 1 (empilhado sobre -90°) */
|
|
.transform-grid.grid-portrait .transform-option:nth-child(4) {
|
|
grid-column: 4;
|
|
grid-row: 1;
|
|
}
|
|
|
|
/* Modo de Seleção Ativa (Exibe apenas 2 imagens) */
|
|
.selection-mode {
|
|
display: flex !important;
|
|
justify-content: center;
|
|
gap: 30px;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
.selection-mode .transform-option {
|
|
width: 45%;
|
|
max-width: 450px;
|
|
grid-column: auto !important;
|
|
grid-row: auto !important;
|
|
}
|
|
.selection-mode .transform-image-wrapper {
|
|
height: 35vh !important;
|
|
max-height: 420px;
|
|
}
|
|
/* -90°: col 4, linha 2 (empilhado sob +90°) */
|
|
.transform-grid.grid-portrait .transform-option:nth-child(5) { grid-column: 4; grid-row: 2; }
|
|
|
|
/* ---- Fallback (sem classe de orientação ainda) ---- */
|
|
.transform-grid:not(.grid-landscape):not(.grid-portrait) {
|
|
grid-template-columns: 1fr 1fr 1fr 1fr;
|
|
grid-template-rows: 1fr 1fr;
|
|
}
|
|
.transform-grid:not(.grid-landscape):not(.grid-portrait) .transform-option:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
|
|
.transform-grid:not(.grid-landscape):not(.grid-portrait) .transform-option:nth-child(2) { grid-column: 2; grid-row: 1 / span 2; }
|
|
.transform-grid:not(.grid-landscape):not(.grid-portrait) .transform-option:nth-child(3) { grid-column: 3; grid-row: 1 / span 2; }
|
|
.transform-grid:not(.grid-landscape):not(.grid-portrait) .transform-option:nth-child(4) { grid-column: 4; grid-row: 1; }
|
|
.transform-grid:not(.grid-landscape):not(.grid-portrait) .transform-option:nth-child(5) { grid-column: 4; grid-row: 2; }
|
|
|
|
.transform-option {
|
|
border: 2px solid var(--border-color);
|
|
border-radius: var(--radius-sm);
|
|
padding: 10px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
text-align: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
position: relative; /* Para posicionar o ajuste fino absoluto */
|
|
}
|
|
|
|
.transform-option:hover {
|
|
border-color: var(--primary-color);
|
|
transform: scale(1.02);
|
|
}
|
|
|
|
.transform-option.selected {
|
|
border-color: var(--success-color);
|
|
background: rgba(81, 207, 102, 0.08);
|
|
}
|
|
|
|
/* Novo Wrapper para a Imagem */
|
|
.transform-image-wrapper {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 20vh;
|
|
min-height: 160px;
|
|
max-height: 320px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
overflow: hidden;
|
|
border-radius: 4px;
|
|
background: rgba(0,0,0,0.02);
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.transform-image-wrapper img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
border-radius: 4px;
|
|
transition: transform 0.15s ease-out; /* Transição para ajuste fino suave */
|
|
}
|
|
|
|
.transform-name {
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
color: var(--dark-color);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Nova Barra Inferior de Ajuste Fino para o Card Selecionado */
|
|
#fineTuneContainer {
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 5px 8px;
|
|
background: rgba(0, 0, 0, 0.03);
|
|
border-radius: 20px;
|
|
border: 1px solid rgba(0, 0, 0, 0.08);
|
|
box-sizing: border-box;
|
|
margin-top: 10px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.fine-tune-left-btns,
|
|
.fine-tune-right-btns {
|
|
display: flex;
|
|
gap: 4px;
|
|
}
|
|
|
|
#fineTuneContainer button {
|
|
background: #ffffff;
|
|
border: 1px solid #ced4da;
|
|
border-radius: 12px;
|
|
padding: 4px 8px;
|
|
font-size: 0.75rem;
|
|
font-weight: 700;
|
|
color: #495057;
|
|
cursor: pointer;
|
|
transition: all 0.15s ease;
|
|
min-width: 32px;
|
|
height: 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
#fineTuneContainer button:hover {
|
|
background: #e9ecef;
|
|
border-color: #adb5bd;
|
|
color: #212529;
|
|
}
|
|
|
|
#fineTuneContainer button:active {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
/* Centralização do Título/Legenda */
|
|
#fineTuneLabelPlaceholder {
|
|
flex: 1;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 0 5px;
|
|
min-width: 0; /* Permite truncar se necessário */
|
|
}
|
|
|
|
#fineTuneLabelPlaceholder .transform-name {
|
|
margin-bottom: 0;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
/* Botão Reset Flutuante no Canto Superior Direito do Card */
|
|
#btnResetFineTune {
|
|
position: absolute !important;
|
|
top: 10px;
|
|
right: 10px;
|
|
background: rgba(229, 62, 62, 0.9) !important;
|
|
border: 1px solid #e53e3e !important;
|
|
color: #ffffff !important;
|
|
border-radius: 50% !important;
|
|
width: 28px !important;
|
|
height: 28px !important;
|
|
padding: 0 !important;
|
|
display: flex !important;
|
|
align-items: center !important;
|
|
justify-content: center !important;
|
|
font-size: 0.7rem !important;
|
|
cursor: pointer;
|
|
z-index: 100;
|
|
box-shadow: 0 2px 6px rgba(0,0,0,0.15);
|
|
}
|
|
|
|
#btnResetFineTune:hover {
|
|
background: #c53030 !important;
|
|
border-color: #c53030 !important;
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
|
|
|
|
/* ================================================================
|
|
FORMS
|
|
================================================================ */
|
|
|
|
.form-group {
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
margin-bottom: 7px;
|
|
font-weight: 600;
|
|
font-size: 0.9rem;
|
|
color: var(--dark-color);
|
|
}
|
|
|
|
.form-group input,
|
|
.form-group select {
|
|
width: 100%;
|
|
padding: 12px 14px;
|
|
border: 2px solid var(--border-color);
|
|
border-radius: var(--radius-sm);
|
|
font-size: 1rem;
|
|
font-family: inherit;
|
|
transition: border-color 0.2s;
|
|
background: white;
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
}
|
|
|
|
.form-group input:focus,
|
|
.form-group select:focus {
|
|
outline: none;
|
|
border-color: var(--primary-color);
|
|
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
|
|
}
|
|
|
|
.form-group small {
|
|
display: block;
|
|
margin-top: 5px;
|
|
color: var(--text-secondary);
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.form-actions {
|
|
margin-top: 20px;
|
|
}
|
|
|
|
/* ================================================================
|
|
TOAST NOTIFICATION
|
|
================================================================ */
|
|
|
|
.toast {
|
|
position: fixed;
|
|
bottom: 20px;
|
|
left: 50%;
|
|
transform: translateX(-50%) translateY(120px);
|
|
padding: 13px 22px;
|
|
border-radius: 50px;
|
|
color: white;
|
|
font-weight: 600;
|
|
font-size: 0.9rem;
|
|
box-shadow: 0 8px 24px rgba(0,0,0,0.2);
|
|
opacity: 0;
|
|
transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
z-index: 2000;
|
|
white-space: nowrap;
|
|
max-width: calc(100vw - 32px);
|
|
text-align: center;
|
|
}
|
|
|
|
@media (min-width: 600px) {
|
|
.toast {
|
|
bottom: 30px;
|
|
right: 30px;
|
|
left: auto;
|
|
transform: translateX(0) translateY(120px);
|
|
border-radius: 10px;
|
|
}
|
|
}
|
|
|
|
.toast.show {
|
|
transform: translateX(-50%) translateY(0);
|
|
opacity: 1;
|
|
}
|
|
|
|
@media (min-width: 600px) {
|
|
.toast.show {
|
|
transform: translateX(0) translateY(0);
|
|
}
|
|
}
|
|
|
|
.toast.success { background: var(--success-color); }
|
|
.toast.error { background: var(--danger-color); }
|
|
.toast.info { background: var(--primary-color); }
|
|
|
|
/* ================================================================
|
|
SIDEBAR LAYOUT
|
|
================================================================ */
|
|
|
|
.app-container {
|
|
display: flex;
|
|
height: 100vh;
|
|
width: 100vw;
|
|
overflow: hidden;
|
|
background-color: var(--bg-color);
|
|
}
|
|
|
|
.sidebar {
|
|
width: 250px;
|
|
background: #fff;
|
|
border-right: 1px solid var(--border-color);
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-shrink: 0;
|
|
transition: all 0.3s ease;
|
|
z-index: 10;
|
|
}
|
|
|
|
.sidebar-header {
|
|
padding: 20px;
|
|
border-bottom: 1px solid rgba(255,255,255,0.15);
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
}
|
|
|
|
.sidebar-header h2 {
|
|
margin: 0;
|
|
font-size: 1.2rem;
|
|
color: #fff;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.sidebar-nav {
|
|
flex: 1;
|
|
padding: 12px 0;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.nav-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 12px 20px;
|
|
color: var(--text-color);
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
transition: all 0.2s;
|
|
gap: 10px;
|
|
border-left: 3px solid transparent;
|
|
}
|
|
|
|
.nav-item .icon {
|
|
font-size: 1.1rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.nav-item:hover {
|
|
background-color: rgba(102, 126, 234, 0.08);
|
|
color: var(--primary-color);
|
|
border-left-color: var(--primary-color);
|
|
}
|
|
|
|
.nav-item.active {
|
|
background-color: rgba(102, 126, 234, 0.12);
|
|
color: var(--primary-color);
|
|
border-left-color: var(--primary-color);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.nav-divider {
|
|
height: 1px;
|
|
background: var(--border-color);
|
|
margin: 10px 0;
|
|
}
|
|
|
|
/* ---------------------------------------------------------------
|
|
MAIN CONTENT — header fixo + área interna rolável
|
|
--------------------------------------------------------------- */
|
|
.main-content {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
min-width: 0;
|
|
}
|
|
|
|
.main-content .header {
|
|
border-radius: 0;
|
|
margin: 0;
|
|
border-bottom: 1px solid rgba(255,255,255,0.2);
|
|
box-shadow: none;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Wrapper rolável que envolve loading/empty/grid */
|
|
.content-scroll {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
background: var(--bg-color);
|
|
}
|
|
|
|
/* Compatibilidade */
|
|
.app-container .container { display: none; }
|
|
|
|
/* Header padding */
|
|
.header-content { padding: 14px 20px; }
|
|
|
|
/* ---------------------------------------------------------------
|
|
IMAGES GRID — grid puro sem flex tricks
|
|
--------------------------------------------------------------- */
|
|
.app-container #imagesGrid {
|
|
display: grid !important;
|
|
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
|
|
gap: 20px;
|
|
padding: 24px;
|
|
align-content: start;
|
|
}
|
|
|
|
@media (min-width: 1400px) {
|
|
.app-container #imagesGrid {
|
|
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
|
}
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.app-container #imagesGrid {
|
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
gap: 14px;
|
|
padding: 16px;
|
|
}
|
|
}
|
|
|
|
/* Image preview — altura fixa garantida */
|
|
.app-container .image-preview {
|
|
height: 200px !important;
|
|
min-height: 200px !important;
|
|
flex-shrink: 0 !important;
|
|
background-size: cover !important;
|
|
background-position: center !important;
|
|
}
|
|
|
|
/* ---------------------------------------------------------------
|
|
RESPONSIVE SIDEBAR
|
|
--------------------------------------------------------------- */
|
|
@media (max-width: 768px) {
|
|
.sidebar { width: 60px; }
|
|
.sidebar-header { padding: 14px 10px; }
|
|
.sidebar-header h2 span:not(.icon) { display: none; }
|
|
.nav-item span:not(.icon) { display: none; }
|
|
.nav-item { justify-content: center; padding: 14px 0; gap: 0; }
|
|
.nav-item .icon { margin-right: 0; font-size: 1.3rem; }
|
|
#toggleDisabledBtn { font-size: 0; padding: 10px; }
|
|
#toggleDisabledBtn::before { content: '👁'; font-size: 1.1rem; }
|
|
}
|
|
|
|
/* ================================================================
|
|
SYNC & UPLOAD MODAL STYLES
|
|
================================================================ */
|
|
|
|
.sync-tabs {
|
|
display: flex;
|
|
border-bottom: 2px solid var(--border-color);
|
|
margin-bottom: 20px;
|
|
gap: 10px;
|
|
}
|
|
|
|
.sync-tab-btn {
|
|
padding: 12px 20px;
|
|
background: none;
|
|
border: none;
|
|
border-bottom: 3px solid transparent;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
transition: all 0.25s ease;
|
|
}
|
|
|
|
.sync-tab-btn:hover {
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.sync-tab-btn.active {
|
|
color: var(--primary-color);
|
|
border-bottom-color: var(--primary-color);
|
|
}
|
|
|
|
.sync-tab-content {
|
|
display: none;
|
|
animation: slideDown 0.25s ease;
|
|
}
|
|
|
|
.sync-tab-content.active {
|
|
display: block;
|
|
}
|
|
|
|
/* Área de Drag & Drop */
|
|
.drag-drop-zone {
|
|
border: 3px dashed var(--border-color);
|
|
border-radius: var(--radius);
|
|
padding: 40px 20px;
|
|
text-align: center;
|
|
background: #fdfdfd;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.drag-drop-zone:hover,
|
|
.drag-drop-zone.drag-active {
|
|
border-color: var(--primary-color);
|
|
background: rgba(102, 126, 234, 0.04);
|
|
}
|
|
|
|
.drag-drop-icon {
|
|
font-size: 3rem;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.drag-drop-text {
|
|
font-size: 1rem;
|
|
color: var(--text-color);
|
|
font-weight: 500;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.drag-drop-subtext {
|
|
font-size: 0.82rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* Preview de arquivos selecionados */
|
|
.upload-previews {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
|
|
gap: 10px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.preview-item {
|
|
position: relative;
|
|
aspect-ratio: 1;
|
|
border-radius: 6px;
|
|
overflow: hidden;
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.preview-item img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.preview-remove {
|
|
position: absolute;
|
|
top: 4px;
|
|
right: 4px;
|
|
background: rgba(220, 53, 69, 0.85);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 50%;
|
|
width: 18px;
|
|
height: 18px;
|
|
font-size: 10px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
line-height: 1;
|
|
}
|
|
|
|
.preview-remove:hover {
|
|
background: #dc3545;
|
|
}
|
|
|
|
/* Barra de Progresso */
|
|
.upload-progress-container {
|
|
background: #f8f9fa;
|
|
border-radius: 8px;
|
|
padding: 15px;
|
|
margin-bottom: 20px;
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.progress-bar-label {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
margin-bottom: 8px;
|
|
color: var(--dark-color);
|
|
}
|
|
|
|
.progress-bar-track {
|
|
background: #e2e8f0;
|
|
border-radius: 10px;
|
|
height: 8px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.progress-bar-fill {
|
|
background: linear-gradient(90deg, var(--primary-color) 0%, #764ba2 100%);
|
|
height: 100%;
|
|
width: 0%;
|
|
transition: width 0.2s ease;
|
|
}
|
|
|
|
/* Lista de dispositivos online */
|
|
.sync-device-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
margin: 20px 0;
|
|
}
|
|
|
|
.sync-device-card {
|
|
background: #f8f9fa;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-sm);
|
|
padding: 15px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.sync-device-card:hover {
|
|
border-color: var(--primary-color);
|
|
background: #fff;
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.03);
|
|
}
|
|
|
|
.device-card-left {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.device-card-title {
|
|
font-weight: 700;
|
|
font-size: 0.95rem;
|
|
color: var(--dark-color);
|
|
}
|
|
|
|
.device-card-subtitle {
|
|
font-size: 0.78rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.device-card-badge {
|
|
padding: 5px 12px;
|
|
border-radius: 20px;
|
|
font-size: 0.72rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.badge-connected {
|
|
background: rgba(81, 207, 102, 0.15);
|
|
color: var(--success-color);
|
|
}
|
|
|
|
.badge-disconnected {
|
|
background: rgba(220, 53, 69, 0.1);
|
|
color: var(--danger-color);
|
|
}
|
|
|
|
/* Botão de Excluir Paciente nos cards iniciais */
|
|
.delete-patient-btn {
|
|
position: absolute;
|
|
top: 10px;
|
|
right: 10px;
|
|
background: rgba(220, 53, 69, 0.85);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 50%;
|
|
width: 34px;
|
|
height: 34px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
z-index: 5;
|
|
transition: all 0.2s ease;
|
|
font-size: 1.05rem;
|
|
box-shadow: 0 2px 6px rgba(0,0,0,0.25);
|
|
}
|
|
|
|
.delete-patient-btn:hover {
|
|
background: #dc3545;
|
|
transform: scale(1.1);
|
|
}
|