juancmamacias's picture
Upload 16 files
4c8e01e verified
/* ===== ESTILOS GENERALES ===== */
body {
font-family: Arial, sans-serif;
max-width: 1400px;
margin: 0 auto;
padding: 20px;
background-color: #f5f5f5;
}
.container {
background: #fff;
border-radius: 10px;
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
padding: 30px 20px;
margin-top: 30px;
}
/* ===== TÍTULO Y BOTÓN DE AYUDA ===== */
.title {
color: #333;
margin-bottom: 20px;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
gap: 15px;
}
.help-btn {
background: #17a2b8;
color: white;
border: none;
border-radius: 50%;
width: 30px;
height: 30px;
font-size: 16px;
cursor: pointer;
transition: all 0.3s;
}
.help-btn:hover {
background: #138496;
transform: scale(1.1);
}
/* ===== MODAL DE INSTRUCCIONES ===== */
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.5);
animation: fadeIn 0.3s;
}
.modal-content {
background-color: #fefefe;
margin: 5% auto;
padding: 0;
border-radius: 10px;
width: 80%;
max-width: 700px;
max-height: 80vh;
overflow-y: auto;
position: relative;
animation: slideIn 0.3s;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes slideIn {
from { transform: translateY(-50px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
.close {
position: absolute;
top: 15px;
right: 20px;
color: #aaa;
font-size: 28px;
font-weight: bold;
cursor: pointer;
z-index: 1001;
}
.close:hover,
.close:focus {
color: #000;
text-decoration: none;
}
.instructions-content {
padding: 40px 30px 30px 30px;
}
.instructions-content h2 {
color: #333;
margin-bottom: 25px;
text-align: center;
border-bottom: 2px solid #007bff;
padding-bottom: 10px;
}
.instructions-content h3 {
color: #495057;
margin-top: 25px;
margin-bottom: 15px;
}
.instructions-content ol {
padding-left: 20px;
}
.instructions-content ol li {
margin-bottom: 10px;
line-height: 1.5;
}
.instructions-content ul {
padding-left: 20px;
}
.instructions-content ul li {
margin-bottom: 8px;
line-height: 1.5;
}
.classes-preview {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 10px;
margin: 15px 0;
}
.class-item {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 12px;
background: #f8f9fa;
border-radius: 5px;
font-size: 14px;
}
.class-item span {
width: 20px;
height: 20px;
border-radius: 3px;
display: inline-block;
}
.instructions-content kbd {
background: #f8f9fa;
border: 1px solid #ddd;
border-radius: 3px;
padding: 2px 6px;
font-family: monospace;
font-size: 12px;
color: #333;
}
/* ===== LAYOUT DE DOS COLUMNAS ===== */
.two-column {
display: grid;
grid-template-columns: 1fr 350px;
gap: 20px;
}
/* ===== CONTROLES Y FORMULARIOS ===== */
.controls {
display: flex;
gap: 15px;
margin-bottom: 20px;
flex-wrap: wrap;
align-items: center;
}
.control-group {
display: flex;
flex-direction: column;
gap: 5px;
}
label {
font-weight: bold;
color: #333;
}
input, select, button {
padding: 8px 12px;
border: 1px solid #ddd;
border-radius: 5px;
font-size: 14px;
}
button {
background: #007bff;
color: white;
border: none;
cursor: pointer;
transition: background 0.3s;
}
button:hover {
background: #0056b3;
}
.save-btn {
background: #28a745;
padding: 10px 20px;
font-weight: bold;
}
.save-btn:hover {
background: #218838;
}
.clear-btn {
background: #6c757d;
padding: 10px 20px;
}
.clear-btn:hover {
background: #545b62;
}
/* ===== BOTONES DE CLASES ===== */
.class-buttons {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 20px;
}
.class-btn {
padding: 10px 15px;
border: 2px solid transparent;
border-radius: 5px;
color: white;
font-weight: bold;
transition: all 0.3s;
}
.class-btn:hover {
transform: scale(1.05);
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.class-btn.active {
border-color: #333;
box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
/* ===== ANOTACIONES ===== */
.annotations-list {
background: #f8f9fa;
border: 1px solid #ddd;
border-radius: 5px;
padding: 10px;
max-height: 200px;
overflow-y: auto;
margin-bottom: 15px;
}
.annotation-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px;
margin: 5px 0;
background: white;
border-radius: 3px;
border-left: 4px solid #ccc;
}
.delete-annotation {
background: #dc3545;
color: white;
border: none;
padding: 4px 8px;
border-radius: 3px;
cursor: pointer;
font-size: 12px;
}
.delete-annotation:hover {
background: #c82333;
}
.annotation-actions {
display: flex;
gap: 10px;
align-items: center;
}
/* ===== PANEL DE SESIONES ===== */
.sessions-panel {
background: #f8f9fa;
padding: 15px;
border-radius: 5px;
border: 1px solid #ddd;
}
.sessions-panel h3 {
margin-top: 0;
color: #495057;
}
.session-item {
background: white;
padding: 15px;
margin: 10px 0;
border-radius: 5px;
border: 1px solid #ddd;
cursor: pointer;
transition: all 0.3s;
}
.session-item:hover {
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
transform: translateY(-1px);
}
.session-item.selected {
border-color: #007bff;
box-shadow: 0 0 10px rgba(0,123,255,0.2);
}
.session-stats {
font-size: 12px;
color: #666;
margin-top: 5px;
}
.session-actions {
margin-top: 10px;
display: flex;
gap: 5px;
flex-wrap: wrap;
}
.download-btn {
background: #17a2b8;
font-size: 12px;
padding: 5px 10px;
margin-top: 5px;
margin-right: 5px;
}
.download-btn:hover {
background: #138496;
}
.visualize-btn {
background: #28a745;
color: white;
border: none;
border-radius: 5px;
font-size: 12px;
padding: 5px 10px;
margin-top: 5px;
cursor: pointer;
}
.visualize-btn:hover {
background: #218838;
}
.delete-btn {
background: #dc3545;
color: white;
border: none;
border-radius: 5px;
font-size: 12px;
padding: 5px 10px;
margin-top: 5px;
margin-right: 5px;
cursor: pointer;
}
.delete-btn:hover {
background: #c82333;
}
/* ===== ESTILOS ESPECÍFICOS PARA VISUALIZADOR ===== */
.legend {
background: #f8f9fa;
border: 1px solid #ddd;
border-radius: 5px;
padding: 15px;
margin: 20px 0;
}
.legend-title {
font-weight: bold;
margin-bottom: 10px;
color: #495057;
}
.legend-items {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.legend-item {
background: white;
padding: 8px 12px;
border-radius: 3px;
font-size: 14px;
border: 1px solid #ddd;
display: flex;
align-items: center;
}
.images-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
gap: 20px;
margin-top: 20px;
}
.image-card {
background: white;
border: 1px solid #ddd;
border-radius: 8px;
padding: 15px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
transition: transform 0.2s, box-shadow 0.2s;
}
.image-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.image-preview {
width: 100%;
height: auto;
border-radius: 5px;
margin-bottom: 10px;
border: 1px solid #eee;
}
.image-info {
font-size: 14px;
color: #495057;
margin-bottom: 10px;
line-height: 1.4;
}
.annotations-list {
margin-top: 10px;
max-height: 200px;
overflow-y: auto;
border: 1px solid #eee;
border-radius: 3px;
background: #f8f9fa;
}
.annotation-item {
padding: 8px 12px;
margin: 0;
border-left: 4px solid #ccc;
background: white;
border-bottom: 1px solid #eee;
font-size: 12px;
line-height: 1.3;
}
.annotation-item:last-child {
border-bottom: none;
}
.loading {
text-align: center;
padding: 40px;
color: #666;
font-style: italic;
background: #f8f9fa;
border-radius: 5px;
margin: 20px 0;
}
/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
.two-column {
grid-template-columns: 1fr;
}
.controls {
flex-direction: column;
align-items: stretch;
}
.modal-content {
width: 95%;
margin: 10% auto;
}
.images-grid {
grid-template-columns: 1fr;
}
}
/* ===== ESTILOS ESPECÍFICOS PARA PÁGINA DE SESIONES ===== */
/* Estilos específicos del body para la página de sesiones */
.sessions-page {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
margin: 0 !important;
padding: 20px !important;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
min-height: 100vh !important;
max-width: none !important;
}
/* Estilos específicos del container para la página de sesiones */
.sessions-page .container {
max-width: 1200px !important;
margin: 0 auto !important;
background: white !important;
border-radius: 20px !important;
box-shadow: 0 20px 40px rgba(0,0,0,0.2) !important;
padding: 40px !important;
}
.header {
text-align: center;
margin-bottom: 40px;
}
.header h1 {
color: #333;
font-size: 2.5em;
margin-bottom: 10px;
}
.back-btn {
background: #6c757d;
color: white;
padding: 10px 20px;
border: none;
border-radius: 10px;
text-decoration: none;
display: inline-block;
margin-bottom: 20px;
}
.sessions-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
gap: 20px;
}
.session-card {
background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
color: white;
padding: 25px;
border-radius: 15px;
transition: all 0.3s ease;
}
.session-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.session-stats {
display: flex;
gap: 15px;
margin: 15px 0;
}
.session-actions {
display: flex;
gap: 10px;
flex-wrap: wrap;
margin-top: 15px;
}
.session-actions a, .session-actions button {
padding: 8px 15px;
border: none;
border-radius: 8px;
text-decoration: none;
font-size: 14px;
cursor: pointer;
transition: all 0.3s ease;
}
.btn-visualize {
background: rgba(23, 162, 184, 0.8);
color: white;
}
.btn-augment {
background: rgba(255, 193, 7, 0.8);
color: #333;
}
.btn-delete {
background: rgba(220, 53, 69, 0.8);
color: white;
}
.btn-create {
background: #28a745;
color: white;
padding: 15px 30px;
border: none;
border-radius: 10px;
font-size: 16px;
cursor: pointer;
}
.no-sessions {
text-align: center;
padding: 40px;
color: #666;
}
.no-sessions code {
background: #f8f9fa;
padding: 10px;
border-radius: 5px;
display: inline-block;
margin: 10px 0;
}
/* Estilos específicos del save-btn para la página de sesiones */
.sessions-page .save-btn {
background: #007bff !important;
color: white !important;
padding: 12px 24px !important;
border: none !important;
border-radius: 10px !important;
cursor: pointer !important;
font-size: 16px !important;
transition: all 0.3s ease !important;
}
.sessions-page .save-btn:hover {
background: #0056b3 !important;
transform: translateY(-2px) !important;
}
/* Modal de augmentación */
.augmentation-modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.5);
}
.augmentation-content {
background-color: white;
margin: 5% auto;
padding: 20px;
border-radius: 10px;
width: 80%;
max-width: 600px;
max-height: 80vh;
overflow-y: auto;
}
.variant-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 15px;
margin: 20px 0;
}
.variant-card {
border: 2px solid #ddd;
border-radius: 8px;
padding: 15px;
cursor: pointer;
transition: all 0.3s ease;
}
.variant-card:hover {
border-color: #007bff;
background-color: #f8f9fa;
}
.variant-card.selected {
border-color: #28a745;
background-color: #d4edda;
}
.variant-card h4 {
margin: 0 0 10px 0;
color: #333;
}
.variant-card p {
margin: 0;
color: #666;
font-size: 0.9em;
}
.progress-container {
margin: 20px 0;
display: none;
}
.progress-bar {
width: 100%;
height: 20px;
border-radius: 10px;
background-color: #f0f0f0;
overflow: hidden;
}
.progress-fill {
height: 100%;
background-color: #28a745;
transition: width 0.3s ease;
width: 0%;
}
.progress-text {
text-align: center;
margin-top: 10px;
font-weight: bold;
}
.modal-buttons {
display: flex;
gap: 10px;
margin-top: 20px;
}
.modal-buttons button {
flex: 1;
padding: 10px;
border: none;
border-radius: 5px;
cursor: pointer;
font-weight: bold;
}
.btn-primary {
background-color: #007bff;
color: white;
}
.btn-success {
background-color: #28a745;
color: white;
}
.btn-secondary {
background-color: #6c757d;
color: white;
}
.btn-primary:hover, .btn-success:hover {
opacity: 0.9;
}
.btn-secondary:hover {
opacity: 0.8;
}
.augment-btn {
background-color: #ffc107;
color: #333;
border: none;
padding: 5px 10px;
border-radius: 3px;
cursor: pointer;
font-size: 0.9em;
margin-left: 5px;
}
.augment-btn:hover {
background-color: #e0a800;
}
/* ===== ESTILOS ESPECÍFICOS PARA PÁGINA PRINCIPAL (INDEX) ===== */
/* Estilos específicos del body para la página principal */
.index-page {
font-family: Arial, sans-serif !important;
margin: 0 !important;
padding: 0 !important;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
min-height: 100vh !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
max-width: none !important;
}
.main-container {
background: white;
padding: 40px;
border-radius: 20px;
box-shadow: 0 20px 40px rgba(0,0,0,0.2);
text-align: center;
max-width: 800px;
width: 90%;
}
.index-page .title {
color: #333;
margin-bottom: 30px;
font-size: 2.5em;
}
.description {
color: #666;
margin-bottom: 40px;
font-size: 1.2em;
line-height: 1.6;
}
.tools-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
margin: 40px 0;
}
.tool-card {
background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
padding: 30px 20px;
border-radius: 15px;
color: white;
text-decoration: none;
transition: all 0.3s ease;
border: none;
cursor: pointer;
}
.tool-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.tool-card.augmentation {
background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
font-size: 1.1em;
border: 3px solid #ff8c00;
animation: pulse-glow 2s infinite;
}
.tool-card.sessions {
background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}
.tool-card.visualizer {
background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}
.tool-card.annotator {
background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
}
.tool-icon {
font-size: 3em;
margin-bottom: 15px;
display: block;
}
.tool-title {
font-size: 1.3em;
font-weight: bold;
margin-bottom: 10px;
}
.tool-desc {
font-size: 0.9em;
opacity: 0.9;
}
@keyframes pulse-glow {
0%, 100% {
box-shadow: 0 4px 15px rgba(255, 193, 7, 0.6), 0 0 20px rgba(255, 140, 0, 0.3);
}
50% {
box-shadow: 0 4px 20px rgba(255, 193, 7, 0.8), 0 0 30px rgba(255, 140, 0, 0.5);
}
}
.footer {
margin-top: 40px;
color: #999;
font-size: 0.9em;
}
/* ===== ESTILOS ESPECÍFICOS PARA PÁGINA DE VISUALIZADOR ===== */
/* Estilos específicos del body para la página de visualizador */
.visualizer-page {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
margin: 0 !important;
padding: 20px !important;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
min-height: 100vh !important;
max-width: none !important;
}
/* Estilos específicos del container para la página de visualizador */
.visualizer-page .container {
max-width: 1400px !important;
margin: 0 auto !important;
background: white !important;
border-radius: 20px !important;
box-shadow: 0 20px 40px rgba(0,0,0,0.2) !important;
padding: 40px !important;
}
.visualizer-page .header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 30px;
}
.visualizer-page .controls {
display: flex;
gap: 15px;
align-items: center;
margin-bottom: 30px;
padding: 20px;
background: #f8f9fa;
border-radius: 10px;
}
.visualizer-page .controls select, .visualizer-page .controls button {
padding: 10px 15px;
border: 1px solid #ddd;
border-radius: 5px;
font-size: 14px;
}
.visualizer-page .controls button {
background: #007bff;
color: white;
border: none;
cursor: pointer;
}
.gallery {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 20px;
}
.visualizer-page .image-card {
border: 2px solid #ddd;
border-radius: 10px;
overflow: hidden;
background: white;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
transition: all 0.3s ease;
}
.visualizer-page .image-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
.image-container {
position: relative;
width: 100%;
height: 250px;
overflow: hidden;
}
.image-container img {
width: 100%;
height: 100%;
object-fit: cover;
}
.visualizer-page .image-info {
padding: 15px;
}
.visualizer-page .image-info h4 {
margin: 0 0 10px 0;
color: #333;
font-size: 14px;
}
.visualizer-page .image-info p {
margin: 5px 0;
font-size: 13px;
color: #666;
}
.no-session {
text-align: center;
padding: 60px;
color: #666;
}
.visualizer-page .back-btn {
background: #6c757d;
color: white;
padding: 10px 20px;
border: none;
border-radius: 10px;
text-decoration: none;
}
.visualizer-page .loading {
text-align: center;
padding: 40px;
color: #666;
}
.stats {
display: flex;
gap: 20px;
margin-bottom: 20px;
}
.stat-card {
background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
color: white;
padding: 15px;
border-radius: 10px;
text-align: center;
flex: 1;
}
.stat-number {
font-size: 24px;
font-weight: bold;
display: block;
}
.stat-label {
font-size: 12px;
opacity: 0.9;
}