diff --git a/public/css/styles.css b/public/css/styles.css index 0d6593f..84ebf7d 100644 --- a/public/css/styles.css +++ b/public/css/styles.css @@ -2818,5 +2818,235 @@ body.dark-mode .carousel-nav-btn { } } +/* ========================================================================== + SISTEMA DE DISEÑO SAAS PROFESIONAL PARA PC (ADMINISTRACIÓN) + ========================================================================== */ + +/* Botón base SaaS */ +.btn-saas { + display: inline-flex; + align-items: center; + justify-content: center; + gap: 6px; + height: 32px; + padding: 0 12px; + font-size: 0.8rem; + font-weight: 600; + line-height: 1; + border-radius: 8px; + border: 1px solid transparent; + cursor: pointer; + text-decoration: none; + transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1); + white-space: nowrap; + user-select: none; + box-sizing: border-box; +} + +.btn-saas svg { + flex-shrink: 0; + transition: transform 0.15s ease; +} + +.btn-saas:hover svg { + transform: translateY(-0.5px); +} + +.btn-saas:active { + transform: scale(0.98); +} + +/* Botón Primario SaaS (Abonar / Recargar) */ +.btn-saas-primary { + background: #0f172a; + color: #ffffff; + border-color: #0f172a; + box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12); +} +.btn-saas-primary:hover { + background: #1e293b; + border-color: #1e293b; + box-shadow: 0 2px 5px rgba(15, 23, 42, 0.2); +} +body.dark-mode .btn-saas-primary { + background: #0284c7; + color: #ffffff; + border-color: #0284c7; +} +body.dark-mode .btn-saas-primary:hover { + background: #0369a1; + border-color: #0369a1; +} + +/* Botón Contorno / Neutro SaaS (Carné QR / Documentos) */ +.btn-saas-outline { + background: var(--card-bg, #ffffff); + color: var(--text-main, #334155); + border-color: var(--border, #cbd5e1); + box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); +} +.btn-saas-outline:hover { + background: var(--bg-main, #f8fafc); + border-color: #94a3b8; + color: var(--text-main, #0f172a); +} + +/* Botón de Alerta / Bloqueo (Acción Destructiva Suave / Warning) */ +.btn-saas-danger-subtle { + background: #fef2f2; + color: #991b1b; + border-color: #fecaca; +} +.btn-saas-danger-subtle:hover { + background: #fee2e2; + border-color: #f87171; + color: #7f1d1d; +} +body.dark-mode .btn-saas-danger-subtle { + background: rgba(239, 68, 68, 0.12); + color: #fca5a5; + border-color: rgba(239, 68, 68, 0.3); +} +body.dark-mode .btn-saas-danger-subtle:hover { + background: rgba(239, 68, 68, 0.22); + border-color: rgba(239, 68, 68, 0.5); +} + +/* Botón de Seguridad / Desbloqueo (Success Suave) */ +.btn-saas-success-subtle { + background: #f0fdf4; + color: #166534; + border-color: #bbf7d0; +} +.btn-saas-success-subtle:hover { + background: #dcfce7; + border-color: #86efac; + color: #14532d; +} +body.dark-mode .btn-saas-success-subtle { + background: rgba(16, 185, 129, 0.12); + color: #86efac; + border-color: rgba(16, 185, 129, 0.3); +} +body.dark-mode .btn-saas-success-subtle:hover { + background: rgba(16, 185, 129, 0.22); + border-color: rgba(16, 185, 129, 0.5); +} + +/* Badges de estado modernos con punto indicador (Status Dot) */ +.saas-status-badge { + display: inline-flex; + align-items: center; + gap: 6px; + font-size: 0.72rem; + font-weight: 700; + padding: 3px 8px; + border-radius: 6px; + line-height: 1; + white-space: nowrap; +} + +.saas-dot { + width: 6px; + height: 6px; + border-radius: 50%; + display: inline-block; + flex-shrink: 0; +} + +.saas-status-active { + background: #f0fdf4; + color: #166534; + border: 1px solid #bbf7d0; +} +.saas-status-active .saas-dot { + background: #16a34a; + box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2); +} +body.dark-mode .saas-status-active { + background: rgba(22, 163, 74, 0.15); + color: #86efac; + border-color: rgba(22, 163, 74, 0.3); +} +body.dark-mode .saas-status-active .saas-dot { + background: #4ade80; +} + +.saas-status-blocked { + background: #fef2f2; + color: #991b1b; + border: 1px solid #fecaca; +} +.saas-status-blocked .saas-dot { + background: #dc2626; + box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2); +} +body.dark-mode .saas-status-blocked { + background: rgba(220, 38, 38, 0.15); + color: #fca5a5; + border-color: rgba(220, 38, 38, 0.3); +} +body.dark-mode .saas-status-blocked .saas-dot { + background: #f87171; +} + +/* Fila de Estudiante Moderna para PC */ +.admin-student-row { + display: flex; + align-items: center; + justify-content: space-between; + gap: 16px; + padding: 12px 16px; + background: var(--card-bg, #ffffff); + border: 1px solid var(--border, #e2e8f0); + border-radius: 12px; + transition: all 0.2s ease; + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03); +} + +.admin-student-row:hover { + border-color: #cbd5e1; + box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.06); +} + +body.dark-mode .admin-student-row:hover { + border-color: #475569; + box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3); +} + +.admin-student-row.is-blocked { + background: #fffafa; + border-color: #fecaca; +} +body.dark-mode .admin-student-row.is-blocked { + background: rgba(239, 68, 68, 0.05); + border-color: rgba(239, 68, 68, 0.25); +} + +.admin-student-actions { + display: flex; + gap: 8px; + align-items: center; + flex-shrink: 0; + flex-wrap: wrap; +} + +/* En pantallas pequeñas se adapta ordenadamente */ +@media (max-width: 768px) { + .admin-student-row { + flex-direction: column; + align-items: stretch; + gap: 12px; + padding: 14px; + } + .admin-student-actions { + justify-content: flex-end; + border-top: 1px dashed var(--border, #e2e8f0); + padding-top: 10px; + width: 100%; + } +} + + diff --git a/public/index.html b/public/index.html index 1c11ee7..bc5a8c3 100644 --- a/public/index.html +++ b/public/index.html @@ -442,9 +442,10 @@