Embryo-One's picture
Upload 49 files
ed9f15f verified
/* Embryo Grading System - Styles */
:root {
--primary-color: #007B8F;
--primary-dark: #004E64;
--primary-light: #009FB8;
--secondary-color: #006F8E;
--secondary-light: #0089A6;
--success-color: #66bb6a;
--success-light: #81c784;
--warning-color: #ffa726;
--warning-light: #ffb74d;
--error-color: #ef5350;
--error-light: #e57373;
--background: #F8F9FA;
--background-secondary: #f0f2f5;
--card-background: #ffffff;
--card-background-hover: #f8f9fa;
--text-primary: #333333;
--text-secondary: #666666;
--text-muted: #999999;
--border-color: #E0E0E0;
--border-color-light: #f0f0f0;
--shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
--shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
--shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'EB Garamond', serif;
background: var(--background);
color: var(--text-primary);
line-height: 1.6;
font-size: 16px;
}
h1, h2, h3, h4, h5, h6 {
font-family: 'EB Garamond', serif;
font-weight: 700;
color: var(--text-primary);
}
h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.5em; }
h4 { font-size: 1.25em; }
.container {
max-width: 1400px;
margin: 0 auto;
padding: 20px;
}
header {
text-align: center;
margin-bottom: 30px;
padding: 20px;
background: transparent;
border-radius: 0;
box-shadow: none;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
header .logo {
max-height: 140px;
height: auto;
width: auto;
max-width: 280px;
object-fit: contain;
}
.user-menu {
display: flex;
align-items: center;
gap: 15px;
}
.user-email {
color: var(--text-primary);
font-size: 14px;
font-weight: 500;
}
.subtitle {
font-family: 'EB Garamond', serif;
font-size: 2em;
font-weight: 700;
opacity: 1;
margin: 0;
color: white;
letter-spacing: -0.5px;
line-height: 1.2;
}
/* Stepper Styles */
.stepper-container {
margin-bottom: 40px;
background: var(--card-background);
padding: 30px;
border-radius: 12px;
box-shadow: var(--shadow);
border: 1px solid var(--border-color);
}
.stepper {
display: flex;
align-items: center;
justify-content: space-between;
position: relative;
}
.step {
display: flex;
flex-direction: column;
align-items: center;
position: relative;
z-index: 2;
}
.step-circle {
width: 50px;
height: 50px;
border-radius: 50%;
background: var(--border-color);
color: var(--text-secondary);
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: 1.2em;
transition: all 0.3s ease;
border: 3px solid var(--border-color);
}
.step-label {
margin-top: 10px;
font-size: 0.9em;
font-weight: 600;
color: var(--text-secondary);
text-align: center;
max-width: 100px;
transition: all 0.3s ease;
}
.step.active .step-circle {
background: var(--primary-color);
color: white;
border-color: var(--primary-color);
box-shadow: 0 0 0 4px rgba(0, 123, 143, 0.15);
}
.step.active .step-label {
color: var(--primary-color);
font-weight: 700;
}
.step.completed .step-circle {
background: var(--success-color);
border-color: var(--success-color);
color: white;
}
.step.completed .step-label {
color: var(--success-color);
}
.step-line {
flex: 1;
height: 3px;
background: var(--border-color);
margin: 0 10px;
position: relative;
top: -20px;
transition: all 0.3s ease;
}
.step-line.completed {
background: var(--success-color);
}
/* Step Content */
.step-content {
display: none;
}
.step-content.active {
display: block;
animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.step-navigation {
display: flex;
justify-content: space-between;
align-items: center;
gap: 15px;
margin-top: 30px;
padding-top: 20px;
border-top: 2px solid var(--border-color);
}
.step-navigation .btn {
min-width: 150px;
}
.step-navigation .btn:first-child {
margin-right: auto;
}
.step-navigation .btn:last-child {
margin-left: auto;
}
/* Loading Overlay */
.loading-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.8);
display: flex;
justify-content: center;
align-items: center;
z-index: 9999;
}
.loading-overlay.hidden {
display: none;
}
.loading-content {
text-align: center;
color: white;
}
.spinner {
border: 4px solid rgba(255, 255, 255, 0.3);
border-top: 4px solid white;
border-radius: 50%;
width: 60px;
height: 60px;
animation: spin 1s linear infinite;
margin: 0 auto 20px;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
#loadingText {
font-size: 1.2em;
margin-bottom: 20px;
}
.progress-container {
width: 300px;
height: 6px;
background: rgba(255, 255, 255, 0.2);
border-radius: 3px;
overflow: hidden;
margin: 0 auto;
}
.progress-bar {
height: 100%;
background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
width: 0%;
transition: width 0.3s ease;
}
/* Cards */
.card {
background: var(--card-background);
border-radius: 12px;
padding: 30px;
margin-bottom: 20px;
box-shadow: var(--shadow);
border: 1px solid var(--border-color);
transition: all 0.3s ease;
}
.card:hover {
box-shadow: var(--shadow-hover);
border-color: var(--border-color-light);
}
.section-title {
font-size: 1.5em;
font-weight: 700;
color: var(--text-primary);
margin-bottom: 20px;
padding-bottom: 15px;
border-bottom: 2px solid var(--border-color);
font-family: 'EB Garamond', serif;
letter-spacing: -0.5px;
}
/* Upload Section */
.upload-section {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 30px;
}
.image-preview-container h3,
.status-container h3,
.upload-container h3,
.results-container h3,
.embryo-preview-container h3 {
font-size: 1.2em;
font-weight: 600;
margin-bottom: 15px;
color: var(--text-primary);
}
.image-preview {
position: relative;
width: 100%;
height: 400px;
border: 2px dashed var(--border-color);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
background: var(--background-secondary);
overflow: hidden;
margin-bottom: 15px;
}
.image-preview img,
.image-preview canvas {
max-width: 100%;
max-height: 100%;
object-fit: contain;
}
.placeholder {
text-align: center;
color: var(--text-secondary);
}
.placeholder svg {
margin-bottom: 10px;
opacity: 0.5;
}
.zoom-controls {
position: absolute;
bottom: 10px;
right: 10px;
display: flex;
gap: 5px;
background: rgba(255, 255, 255, 0.95);
padding: 8px;
border-radius: 8px;
box-shadow: var(--shadow);
}
.icon-button {
background: var(--card-background);
border: 1px solid var(--border-color);
border-radius: 6px;
padding: 6px 12px;
cursor: pointer;
font-size: 0.85em;
transition: all 0.2s ease;
font-weight: 500;
}
.icon-button span {
display: inline-block;
}
.icon-button:hover:not(:disabled) {
background: var(--primary-color);
color: white;
border-color: var(--primary-color);
transform: scale(1.05);
}
.icon-button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.zoom-level {
display: flex;
align-items: center;
padding: 0 10px;
font-size: 0.9em;
font-weight: 500;
}
/* Status Box */
.status-box,
.results-box,
.info-box {
background: var(--background-secondary);
border-left: 4px solid var(--primary-color);
padding: 20px;
border-radius: 8px;
min-height: 100px;
border: 1px solid var(--border-color);
border-left: 4px solid var(--primary-color);
}
.info-box {
border-left-color: var(--secondary-color);
margin-bottom: 20px;
background: #e6f7f9;
}
/* Buttons */
.btn {
padding: 12px 24px;
font-size: 1em;
font-weight: 600;
border: none;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
font-family: 'EB Garamond', serif;
letter-spacing: 0.5px;
}
.btn-primary {
background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
color: white;
box-shadow: 0 4px 6px rgba(0, 123, 143, 0.25);
}
.btn-primary:hover:not(:disabled) {
background: linear-gradient(135deg, var(--primary-dark) 0%, #003847 100%);
transform: translateY(-2px);
box-shadow: 0 6px 12px rgba(0, 123, 143, 0.35);
}
.btn-primary:active:not(:disabled) {
transform: translateY(0);
box-shadow: 0 2px 4px rgba(0, 123, 143, 0.2);
}
.btn-secondary {
background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
color: white;
box-shadow: 0 4px 6px rgba(0, 123, 143, 0.25);
}
.btn-secondary:hover:not(:disabled) {
background: linear-gradient(135deg, var(--primary-dark) 0%, #003847 100%);
transform: translateY(-2px);
box-shadow: 0 6px 12px rgba(0, 123, 143, 0.35);
}
.btn-secondary:active:not(:disabled) {
transform: translateY(0);
box-shadow: 0 2px 4px rgba(0, 123, 143, 0.2);
}
.btn-large {
padding: 16px 32px;
font-size: 1.1em;
width: 100%;
margin-top: 15px;
}
.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.button-group {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
/* Detection Mode */
.detection-mode {
display: flex;
flex-direction: column;
gap: 15px;
}
.mode-option {
display: flex;
align-items: flex-start;
padding: 20px;
border: 2px solid var(--border-color);
border-radius: 8px;
transition: all 0.3s ease;
cursor: pointer;
}
.mode-option:hover {
border-color: var(--primary-color);
background: var(--background-secondary);
box-shadow: var(--shadow);
}
.mode-option input[type="radio"] {
margin-right: 15px;
margin-top: 5px;
width: 20px;
height: 20px;
cursor: pointer;
}
.mode-option label {
flex: 1;
cursor: pointer;
}
.mode-option label strong {
display: block;
font-size: 1.1em;
margin-bottom: 5px;
color: var(--text-primary);
}
.mode-option label p {
color: var(--text-secondary);
font-size: 0.9em;
}
/* Embryo Evaluation Section */
.embryo-evaluation-section {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 30px;
}
/* Detection Layout - New inline detection view */
.detection-layout {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 30px;
}
.detection-preview-container {
display: flex;
flex-direction: column;
}
.image-preview-with-boxes {
position: relative;
background: var(--background-secondary);
border: 2px solid var(--border-color);
border-radius: 12px;
overflow: hidden;
min-height: 400px;
display: flex;
align-items: center;
justify-content: center;
}
#detectionCanvas {
max-width: 100%;
max-height: 600px;
cursor: pointer;
display: block;
}
.detection-info {
margin-top: 15px;
padding: 12px;
background: #e6f7f9;
border-left: 4px solid var(--primary-color);
border-radius: 4px;
}
.detection-info p {
margin: 0;
color: var(--text-primary);
font-size: 0.95em;
}
.embryo-list-container {
display: flex;
flex-direction: column;
}
.embryo-list {
display: flex;
flex-direction: column;
gap: 12px;
max-height: 600px;
overflow-y: auto;
padding: 5px;
}
.embryo-card {
display: flex;
align-items: center;
gap: 12px;
padding: 12px;
background: white;
border: 2px solid var(--border-color);
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
}
.embryo-card:hover {
border-color: var(--primary-color);
box-shadow: var(--shadow-md);
transform: translateY(-1px);
}
.embryo-card.selected {
border-color: var(--primary-color);
background: rgba(0, 123, 143, 0.05);
box-shadow: var(--shadow);
}
.embryo-card-thumbnail {
width: 60px;
height: 60px;
border-radius: 6px;
overflow: hidden;
flex-shrink: 0;
}
.embryo-card-thumbnail img {
width: 100%;
height: 100%;
object-fit: cover;
}
.embryo-card-info {
flex: 1;
display: flex;
flex-direction: column;
gap: 4px;
}
.embryo-card-title {
font-weight: 600;
color: var(--text-primary);
font-size: 0.95em;
}
.embryo-card-confidence {
font-size: 0.85em;
color: var(--text-secondary);
}
.embryo-card-actions {
display: flex;
gap: 8px;
}
.embryo-card-btn {
padding: 6px 12px;
font-size: 0.85em;
border: 1px solid var(--border-color);
background: white;
border-radius: 6px;
cursor: pointer;
transition: all 0.2s ease;
}
.embryo-card-btn:hover {
background: var(--background-secondary);
border-color: var(--text-secondary);
}
.embryo-card-btn.discard {
color: var(--error-color);
border-color: var(--error-color);
}
.embryo-card-btn.discard:hover {
background: var(--error-color);
color: white;
}
.embryo-thumbnail-slider {
display: flex;
gap: 10px;
overflow-x: auto;
padding: 10px 0;
margin-bottom: 15px;
}
.embryo-thumbnail-wrapper {
position: relative;
flex-shrink: 0;
}
.embryo-thumbnail {
position: relative;
min-width: 80px;
height: 80px;
border: 3px solid var(--border-color);
border-radius: 8px;
cursor: pointer;
overflow: hidden;
transition: all 0.3s ease;
}
.embryo-thumbnail:hover {
border-color: var(--primary-color);
}
.embryo-thumbnail.active {
border-color: var(--primary-color);
box-shadow: 0 0 0 2px rgba(0, 123, 143, 0.2);
}
.embryo-thumbnail img {
width: 100%;
height: 100%;
object-fit: cover;
}
.discard-embryo-btn {
position: absolute;
top: 4px;
right: 4px;
width: 22px;
height: 22px;
border-radius: 4px;
background: rgba(239, 83, 80, 0.9);
color: white;
border: none;
font-size: 16px;
font-weight: bold;
line-height: 1;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
z-index: 10;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
opacity: 1;
}
.embryo-thumbnail-wrapper:hover .discard-embryo-btn {
display: flex;
opacity: 1;
}
.discard-embryo-btn:hover {
background: rgba(211, 47, 47, 1);
transform: scale(1.05);
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}
.discard-embryo-btn:active {
transform: scale(0.95);
}
.embryo-preview {
height: 350px;
}
.navigation-controls {
display: flex;
align-items: center;
justify-content: space-between;
gap: 15px;
margin-bottom: 15px;
}
.embryo-counter {
flex: 1;
text-align: center;
font-weight: 600;
font-size: 1.1em;
padding: 10px;
background: var(--background-secondary);
border-radius: 8px;
border: 1px solid var(--border-color);
}
/* Crop Controls */
.crop-controls {
background: var(--background-secondary);
border-radius: 8px;
padding: 15px;
margin-top: 15px;
border: 1px solid var(--border-color);
}
.crop-controls h4 {
color: var(--text-primary);
margin-bottom: 10px;
}
.crop-controls label {
color: var(--text-secondary);
font-weight: 500;
}
.crop-controls input[type="range"] {
width: 100%;
margin: 5px 0;
accent-color: var(--primary-color);
}
.crop-controls input[type="range"]::-webkit-slider-thumb {
cursor: pointer;
}
.crop-controls input[type="range"]::-moz-range-thumb {
cursor: pointer;
}
#cropCanvas {
border-radius: 8px;
box-shadow: var(--shadow);
}
/* Quick Evaluation */
.quick-evaluation-section {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 30px;
}
/* Predictions Box */
.predictions-box {
background: var(--card-background);
border: 1px solid var(--border-color);
border-radius: 8px;
padding: 15px;
margin-top: 15px;
}
.prediction-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px;
margin-bottom: 10px;
background: var(--background-secondary);
border-radius: 6px;
border-left: 4px solid var(--primary-color);
}
.prediction-label {
font-weight: 600;
color: var(--text-primary);
}
.prediction-confidence {
font-weight: 500;
color: var(--primary-color);
}
.prediction-bar {
height: 8px;
background: var(--border-color);
border-radius: 4px;
overflow: hidden;
margin-top: 8px;
}
.prediction-bar-fill {
height: 100%;
background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
transition: width 0.5s ease;
}
/* Result Styling */
.grade-result {
padding: 20px;
border-radius: 10px;
margin: 15px 0;
box-shadow: var(--shadow-md);
}
.grade-good {
background: linear-gradient(135deg, var(--success-color) 0%, var(--success-light) 100%);
color: white;
}
.grade-poor {
background: linear-gradient(135deg, var(--error-color) 0%, var(--error-light) 100%);
color: white;
}
.grade-result h2 {
margin: 0 0 10px 0;
font-family: 'Montserrat', sans-serif;
font-weight: 600;
}
.grade-result p {
margin: 5px 0;
font-size: 1.1em;
font-weight: 600;
}
/* Toast Notifications */
.toast {
position: fixed;
bottom: 30px;
right: 30px;
background: var(--text-primary);
color: white;
padding: 16px 24px;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
opacity: 0;
transform: translateY(20px);
transition: all 0.3s ease;
z-index: 10000;
max-width: 400px;
}
.toast.show {
opacity: 1;
transform: translateY(0);
}
.toast.success {
background: var(--success-color);
}
.toast.error {
background: var(--error-color);
}
.toast.warning {
background: var(--warning-color);
}
/* Footer */
footer {
text-align: center;
padding: 30px 20px;
margin-top: 40px;
border-top: 2px solid var(--border-color);
color: var(--text-secondary);
}
footer p {
margin: 10px 0;
}
.model-info {
font-size: 0.9em;
font-family: 'Courier New', monospace;
}
/* Responsive Design */
@media (max-width: 1024px) {
.upload-section,
.embryo-evaluation-section,
.quick-evaluation-section,
.detection-layout {
grid-template-columns: 1fr;
}
.embryo-list {
max-height: 300px;
}
header h1 {
font-size: 2em;
}
.stepper {
overflow-x: auto;
padding-bottom: 10px;
}
.step-label {
font-size: 0.8em;
max-width: 80px;
}
.step-circle {
width: 40px;
height: 40px;
font-size: 1em;
}
}
@media (max-width: 768px) {
.container {
padding: 10px;
}
header {
padding: 20px 15px;
}
header h1 {
font-size: 1.5em;
}
.subtitle {
font-size: 0.9em;
}
.card {
padding: 20px;
}
.stepper-container {
padding: 20px 10px;
}
.stepper {
flex-wrap: nowrap;
overflow-x: auto;
}
.step {
min-width: 70px;
}
.step-circle {
width: 35px;
height: 35px;
font-size: 0.9em;
}
.step-label {
font-size: 0.7em;
max-width: 70px;
}
.step-line {
min-width: 20px;
}
.tabs {
overflow-x: auto;
}
.tab-button {
padding: 12px 20px;
font-size: 0.9em;
}
.image-preview {
height: 300px;
}
.navigation-controls {
flex-direction: column;
}
.step-navigation {
flex-direction: column;
gap: 10px;
}
.step-navigation .btn {
width: 100%;
min-width: auto;
}
.step-navigation .btn:first-child,
.step-navigation .btn:last-child {
margin: 0;
}
.button-group {
flex-direction: column;
}
.btn-large {
font-size: 1em;
}
}
/* All Embryos Results Grid */
.all-embryos-results h3 {
color: var(--text-primary);
margin-bottom: 10px;
}
.embryo-results-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
gap: 20px;
margin-bottom: 30px;
}
.embryo-result-card {
background: var(--card-background);
border: 2px solid var(--border-color);
border-radius: 12px;
padding: 15px;
cursor: pointer;
transition: all 0.3s ease;
}
.embryo-result-card:hover {
border-color: var(--primary-color);
box-shadow: var(--shadow-hover);
transform: translateY(-2px);
}
.embryo-result-card.active {
border-color: var(--primary-color);
background: rgba(0, 123, 143, 0.05);
box-shadow: var(--shadow);
}
.embryo-result-thumbnail {
position: relative;
width: 100%;
aspect-ratio: 1;
border-radius: 8px;
overflow: hidden;
margin-bottom: 10px;
}
.embryo-result-thumbnail img {
width: 100%;
height: 100%;
object-fit: cover;
}
.embryo-result-badge {
position: absolute;
top: 8px;
right: 8px;
background: var(--primary-color);
color: white;
padding: 4px 10px;
border-radius: 12px;
font-size: 0.85em;
font-weight: 600;
}
.embryo-result-badge.error {
background: var(--error-color);
}
.remark-indicator {
position: absolute;
bottom: 8px;
right: 8px;
background: rgba(255, 193, 7, 0.95);
color: white;
width: 28px;
height: 28px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
cursor: pointer;
}
.embryo-result-info {
display: flex;
flex-direction: column;
gap: 5px;
}
.embryo-result-info strong {
color: var(--text-primary);
font-size: 0.95em;
}
.quality-indicator {
display: inline-block;
padding: 3px 10px;
border-radius: 12px;
font-size: 0.85em;
font-weight: 500;
}
.quality-good {
background: rgba(102, 187, 106, 0.2);
color: var(--success-color);
}
.quality-poor {
background: rgba(239, 83, 80, 0.2);
color: var(--error-color);
}
.quality-unknown, .quality-error {
background: rgba(158, 158, 158, 0.2);
color: var(--text-secondary);
}
/* Detailed Result Container */
.detailed-result-container {
background: var(--card-background);
border: 2px solid var(--border-color);
border-radius: 12px;
padding: 25px;
}
.result-header h3 {
color: var(--text-primary);
margin-bottom: 20px;
}
.result-content {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 30px;
}
.result-image-section {
display: flex;
align-items: center;
justify-content: center;
}
.result-embryo-image {
max-width: 100%;
max-height: 400px;
border-radius: 12px;
box-shadow: var(--shadow);
}
.result-details-section {
display: flex;
flex-direction: column;
gap: 20px;
}
.result-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px;
background: #f8f9fa;
border-radius: 8px;
}
.result-label {
font-weight: 600;
color: var(--text-primary);
font-size: 1.05em;
}
.result-value {
font-weight: 500;
font-size: 1.1em;
color: var(--text-secondary);
}
.result-value.grade-value {
color: var(--primary-color);
font-weight: 700;
font-size: 1.3em;
}
/* Remarks section */
.remarks-section {
margin-top: 20px;
padding: 15px;
background: var(--background-secondary);
border-radius: 8px;
border: 1px solid var(--border-color);
}
.remarks-section label {
display: block;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 8px;
font-size: 1.05em;
}
.remarks-textarea {
width: 100%;
min-height: 100px;
padding: 12px;
border: 2px solid var(--border-color);
border-radius: 8px;
font-family: inherit;
font-size: 0.95em;
resize: vertical;
transition: border-color 0.3s ease;
}
.remarks-textarea:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(0, 123, 143, 0.1);
}
.remarks-textarea::placeholder {
color: var(--text-muted);
}
.actual-grade-input {
width: 100%;
padding: 10px 12px;
border: 2px solid var(--border-color);
border-radius: 8px;
font-family: inherit;
font-size: 0.95em;
transition: border-color 0.3s ease;
}
.actual-grade-input:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(0, 123, 143, 0.1);
}
.actual-grade-input::placeholder {
color: var(--text-muted);
}
/* Actual Grade Selectors */
.actual-grade-selectors {
display: flex;
align-items: center;
gap: 10px;
}
.grade-select {
padding: 8px 12px;
border: 2px solid var(--border-color);
border-radius: 8px;
font-family: inherit;
font-size: 0.95em;
font-weight: 600;
background: white;
cursor: pointer;
transition: all 0.3s ease;
min-width: 60px;
}
.grade-select:hover {
border-color: var(--primary-color);
}
.grade-select:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(0, 123, 143, 0.1);
}
.grade-preview {
font-weight: 700;
font-size: 1.1em;
color: var(--primary-color);
min-width: 60px;
padding: 8px 12px;
background: rgba(0, 123, 143, 0.1);
border-radius: 8px;
text-align: center;
}
.error-message {
background: rgba(239, 83, 80, 0.1);
border: 1px solid var(--error-color);
border-radius: 8px;
padding: 15px;
color: var(--error-color);
}
@media (max-width: 768px) {
.embryo-results-grid {
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
gap: 15px;
}
.result-content {
grid-template-columns: 1fr;
}
}
/* Utility Classes */
.hidden {
display: none !important;
}
.text-center {
text-align: center;
}
.mt-20 {
margin-top: 20px;
}
.mb-20 {
margin-bottom: 20px;
}
/* Modal Styles */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(4px);
display: flex;
align-items: center;
justify-content: center;
z-index: 10000;
opacity: 0;
transition: opacity 0.3s ease;
}
.modal-overlay.active {
opacity: 1;
}
.modal-container {
background: var(--card-background);
border-radius: 12px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
min-width: 400px;
max-width: 500px;
max-height: 90vh;
overflow: hidden;
transform: scale(0.9) translateY(-20px);
opacity: 0;
transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-container.active {
transform: scale(1) translateY(0);
opacity: 1;
}
.modal-header {
padding: 20px 24px;
border-bottom: 1px solid var(--border-color);
background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}
.modal-title {
font-size: 18px;
font-weight: 600;
color: white;
margin: 0;
}
.modal-body {
padding: 24px;
max-height: 60vh;
overflow-y: auto;
}
.modal-message {
font-size: 15px;
line-height: 1.6;
color: var(--text-primary);
margin: 0;
}
.modal-footer {
padding: 16px 24px;
border-top: 1px solid var(--border-color);
display: flex;
justify-content: flex-end;
gap: 12px;
background: var(--background-secondary);
}
.modal-footer .btn {
min-width: 80px;
padding: 10px 20px;
font-size: 14px;
font-weight: 500;
border-radius: 6px;
transition: all 0.2s ease;
}
.modal-ok-btn {
background: var(--primary-color);
color: white;
border: none;
}
.modal-ok-btn:hover {
background: var(--primary-dark);
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(0, 123, 143, 0.3);
}
.modal-cancel-btn {
background: #e0e0e0;
color: var(--text-primary);
border: 1px solid var(--border-color);
}
.modal-cancel-btn:hover {
background: #d0d0d0;
transform: translateY(-1px);
}
@media (max-width: 768px) {
.modal-container {
min-width: 90%;
max-width: 90%;
margin: 0 20px;
}
.modal-footer {
flex-direction: column-reverse;
}
.modal-footer .btn {
width: 100%;
}
}
/* Manual Crop Canvas */
.manual-crop-canvas {
max-width: 100%;
max-height: 500px;
border: 2px solid var(--border-color);
border-radius: 8px;
cursor: default;
display: block;
margin: 0 auto;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
/* Touch-friendly settings */
touch-action: none;
-webkit-user-select: none;
user-select: none;
-webkit-tap-highlight-color: transparent;
}
.crop-controls {
background: #f8f9fa;
padding: 20px;
border-radius: 8px;
border: 1px solid var(--border-color);
margin-top: 15px;
}
.crop-controls h4 {
color: var(--primary-color);
margin-bottom: 10px;
font-size: 16px;
}
.crop-controls p {
line-height: 1.6;
margin-bottom: 15px;
}
.touch-hint {
color: var(--primary-color) !important;
font-style: italic;
}
/* Touch-friendly button sizing for mobile */
@media (max-width: 768px) {
.manual-crop-canvas {
max-height: 400px;
}
.crop-controls {
padding: 15px;
}
.crop-controls .btn-group .btn {
padding: 12px 20px;
font-size: 14px;
min-height: 44px; /* iOS recommended minimum touch target */
}
#croppedImagePreview {
min-height: 300px;
}
}
@media (max-width: 480px) {
.manual-crop-canvas {
max-height: 300px;
}
.crop-controls .btn-group {
flex-direction: column;
gap: 10px;
}
.crop-controls .btn-group .btn {
width: 100%;
}
}