1314 lines
28 KiB
CSS
1314 lines
28 KiB
CSS
/**
|
|
* a2host - Components Design System (Zero-Build)
|
|
* Tablas, Cards Mobile, Modales, Terminal de Rollback, Toasts, Visor Docs y Login.
|
|
*/
|
|
|
|
/* ==========================================================================
|
|
Toolbars y Controles de Filtro
|
|
========================================================================== */
|
|
|
|
.panel-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
margin-bottom: 1.25rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.toolbar-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
flex: 1;
|
|
min-width: min(100%, 320px);
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.toolbar-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
/* Buscador con Icono */
|
|
.search-input-wrapper {
|
|
position: relative;
|
|
flex: 1;
|
|
min-width: 200px;
|
|
max-width: 380px;
|
|
}
|
|
|
|
.search-icon {
|
|
position: absolute;
|
|
left: 0.85rem;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 16px;
|
|
height: 16px;
|
|
color: var(--text-muted);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.input-search {
|
|
width: 100%;
|
|
padding: 0.55rem 0.85rem 0.55rem 2.4rem;
|
|
background: var(--bg-input);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-md);
|
|
color: var(--text-primary);
|
|
font-size: 0.88rem;
|
|
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.input-search:focus {
|
|
outline: none;
|
|
border-color: var(--accent-lime);
|
|
box-shadow: 0 0 0 3px var(--accent-lime-glow);
|
|
}
|
|
|
|
/* Selectores de Filtro */
|
|
.select-filter {
|
|
padding: 0.55rem 2rem 0.55rem 0.85rem;
|
|
background: var(--bg-input);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-md);
|
|
color: var(--text-primary);
|
|
font-size: 0.85rem;
|
|
cursor: pointer;
|
|
appearance: none;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20' stroke='%23a3e635'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right 0.6rem center;
|
|
background-size: 1rem;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.select-filter:focus {
|
|
outline: none;
|
|
border-color: var(--accent-lime);
|
|
box-shadow: 0 0 0 3px var(--accent-lime-glow);
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Botones del Sistema (Micro-interacciones y Glass Sheen)
|
|
========================================================================== */
|
|
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.5rem;
|
|
padding: 0.55rem 1.15rem;
|
|
font-size: 0.88rem;
|
|
font-weight: 600;
|
|
border-radius: var(--radius-md);
|
|
border: 1px solid transparent;
|
|
cursor: pointer;
|
|
transition: all var(--transition-fast);
|
|
white-space: nowrap;
|
|
text-decoration: none;
|
|
min-height: 40px;
|
|
}
|
|
|
|
.btn:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
transform: none;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: linear-gradient(135deg, var(--accent-lime), #84cc16);
|
|
color: #051405;
|
|
border-color: rgba(255, 255, 255, 0.25);
|
|
box-shadow: var(--glass-sheen-strong), 0 2px 12px var(--accent-lime-glow);
|
|
}
|
|
|
|
.btn-primary:hover:not(:disabled) {
|
|
background: linear-gradient(135deg, var(--accent-lime-hover), var(--accent-lime));
|
|
box-shadow: var(--glass-sheen-strong), 0 4px 18px rgba(163, 230, 53, 0.35);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
color: var(--text-primary);
|
|
border-color: var(--border-subtle);
|
|
box-shadow: var(--glass-sheen);
|
|
}
|
|
|
|
.btn-secondary:hover:not(:disabled) {
|
|
background: rgba(255, 255, 255, 0.09);
|
|
border-color: var(--border-medium);
|
|
}
|
|
|
|
.btn-danger {
|
|
background: rgba(239, 68, 68, 0.15);
|
|
color: #fca5a5;
|
|
border-color: rgba(239, 68, 68, 0.3);
|
|
}
|
|
|
|
.btn-danger:hover:not(:disabled) {
|
|
background: rgba(239, 68, 68, 0.25);
|
|
border-color: rgba(239, 68, 68, 0.5);
|
|
color: #ffffff;
|
|
}
|
|
|
|
.btn-icon {
|
|
width: 36px;
|
|
height: 36px;
|
|
padding: 0;
|
|
border-radius: var(--radius-md);
|
|
background: rgba(255, 255, 255, 0.04);
|
|
border: 1px solid var(--border-subtle);
|
|
color: var(--text-secondary);
|
|
min-height: 36px;
|
|
}
|
|
|
|
.btn-icon:hover:not(:disabled) {
|
|
background: rgba(255, 255, 255, 0.08);
|
|
color: var(--text-primary);
|
|
border-color: var(--border-medium);
|
|
}
|
|
|
|
.btn-icon-danger:hover:not(:disabled) {
|
|
background: rgba(239, 68, 68, 0.15);
|
|
border-color: rgba(239, 68, 68, 0.4);
|
|
color: #f87171;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Badges y Chips
|
|
========================================================================== */
|
|
|
|
.badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
padding: 0.2rem 0.55rem;
|
|
font-size: 0.72rem;
|
|
font-weight: 600;
|
|
border-radius: var(--radius-full);
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
.badge-mode-static {
|
|
background: rgba(16, 185, 129, 0.12);
|
|
color: #34d399;
|
|
border: 1px solid rgba(16, 185, 129, 0.25);
|
|
}
|
|
|
|
.badge-mode-proxy {
|
|
background: rgba(56, 189, 248, 0.12);
|
|
color: #38bdf8;
|
|
border: 1px solid rgba(56, 189, 248, 0.25);
|
|
}
|
|
|
|
.badge-port {
|
|
font-family: ui-monospace, SFMono-Regular, monospace;
|
|
background: rgba(245, 158, 11, 0.12);
|
|
color: #fbbf24;
|
|
border: 1px solid rgba(245, 158, 11, 0.25);
|
|
padding: 0.15rem 0.45rem;
|
|
border-radius: var(--radius-sm);
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.badge-protected {
|
|
background: rgba(168, 85, 247, 0.12);
|
|
color: #c084fc;
|
|
border: 1px solid rgba(168, 85, 247, 0.25);
|
|
}
|
|
|
|
.badge-status-active {
|
|
background: rgba(16, 185, 129, 0.12);
|
|
color: #34d399;
|
|
border: 1px solid rgba(16, 185, 129, 0.3);
|
|
}
|
|
|
|
.badge-status-disabled {
|
|
background: rgba(100, 116, 139, 0.15);
|
|
color: #94a3b8;
|
|
border: 1px solid rgba(100, 116, 139, 0.25);
|
|
}
|
|
|
|
.badge-sgid-ok {
|
|
background: rgba(16, 185, 129, 0.12);
|
|
color: #34d399;
|
|
border: 1px solid rgba(16, 185, 129, 0.28);
|
|
}
|
|
|
|
.badge-sgid-warn {
|
|
background: rgba(245, 158, 11, 0.14);
|
|
color: #fbbf24;
|
|
border: 1px solid rgba(245, 158, 11, 0.32);
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Tablas Estilo Glassmorphism (Tier 2) - Desktop
|
|
========================================================================== */
|
|
|
|
.table-glass-card {
|
|
background: var(--bg-surface);
|
|
backdrop-filter: blur(20px);
|
|
-webkit-backdrop-filter: blur(20px);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-lg);
|
|
box-shadow: var(--glass-sheen), var(--shadow-md);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.table-responsive {
|
|
width: 100%;
|
|
overflow-x: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
.data-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
text-align: left;
|
|
font-size: 0.88rem;
|
|
}
|
|
|
|
.data-table thead {
|
|
background: rgba(0, 0, 0, 0.3);
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
}
|
|
|
|
.data-table th {
|
|
padding: 0.85rem 1.15rem;
|
|
font-size: 0.72rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
color: var(--text-muted);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.data-table td {
|
|
padding: 0.95rem 1.15rem;
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
color: var(--text-primary);
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.data-table tbody tr {
|
|
transition: background var(--transition-fast);
|
|
}
|
|
|
|
.data-table tbody tr:hover {
|
|
background: var(--bg-surface-hover);
|
|
}
|
|
|
|
.data-table tbody tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
/* Enlaces Externos en Tablas */
|
|
.subdomain-link {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.4rem;
|
|
color: var(--text-primary);
|
|
font-weight: 600;
|
|
text-decoration: none;
|
|
transition: color var(--transition-fast);
|
|
}
|
|
|
|
.subdomain-link:hover {
|
|
color: var(--accent-lime);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.external-icon {
|
|
width: 13px;
|
|
height: 13px;
|
|
opacity: 0.6;
|
|
transition: opacity var(--transition-fast);
|
|
}
|
|
|
|
.subdomain-link:hover .external-icon {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Switch Toggle Accesible */
|
|
.switch-label {
|
|
position: relative;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
|
|
.switch-input {
|
|
position: absolute;
|
|
opacity: 0;
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
|
|
.switch-slider {
|
|
position: relative;
|
|
width: 40px;
|
|
height: 22px;
|
|
background-color: rgba(255, 255, 255, 0.12);
|
|
border-radius: var(--radius-full);
|
|
transition: background-color var(--transition-fast);
|
|
border: 1px solid var(--border-subtle);
|
|
}
|
|
|
|
.switch-slider::before {
|
|
content: "";
|
|
position: absolute;
|
|
height: 16px;
|
|
width: 16px;
|
|
left: 2px;
|
|
bottom: 2px;
|
|
background-color: #ffffff;
|
|
border-radius: 50%;
|
|
transition: transform var(--transition-fast);
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
.switch-input:checked + .switch-slider {
|
|
background-color: var(--accent-lime);
|
|
border-color: rgba(163, 230, 53, 0.4);
|
|
}
|
|
|
|
.switch-input:checked + .switch-slider::before {
|
|
transform: translateX(18px);
|
|
background-color: #061506;
|
|
}
|
|
|
|
.switch-input:focus-visible + .switch-slider {
|
|
box-shadow: 0 0 0 3px var(--accent-lime-glow);
|
|
}
|
|
|
|
.switch-input:disabled + .switch-slider {
|
|
opacity: 0.4;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Tarjetas Responsivas en Mobile (< 768px)
|
|
========================================================================== */
|
|
|
|
.mobile-cards-grid {
|
|
display: none;
|
|
grid-template-columns: 1fr;
|
|
gap: 0.85rem;
|
|
}
|
|
|
|
.mobile-card {
|
|
background: var(--bg-surface);
|
|
backdrop-filter: blur(16px);
|
|
-webkit-backdrop-filter: blur(16px);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-lg);
|
|
padding: 1rem 1.15rem;
|
|
box-shadow: var(--glass-sheen), var(--shadow-sm);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.mobile-card-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.mobile-card-body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.4rem;
|
|
font-size: 0.82rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.mobile-card-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.mobile-card-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 0.6rem;
|
|
padding-top: 0.5rem;
|
|
border-top: 1px solid var(--border-subtle);
|
|
}
|
|
|
|
/* Empty States */
|
|
.empty-state-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 3.5rem 1.5rem;
|
|
text-align: center;
|
|
background: var(--bg-surface);
|
|
border: 1px dashed var(--border-medium);
|
|
border-radius: var(--radius-lg);
|
|
}
|
|
|
|
.empty-state-icon {
|
|
width: 56px;
|
|
height: 56px;
|
|
border-radius: var(--radius-xl);
|
|
background: rgba(163, 230, 53, 0.08);
|
|
border: 1px solid rgba(163, 230, 53, 0.18);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--accent-lime);
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.empty-state-title {
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
margin-bottom: 0.35rem;
|
|
}
|
|
|
|
.empty-state-desc {
|
|
font-size: 0.85rem;
|
|
color: var(--text-muted);
|
|
max-width: 400px;
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Modales Accesibles (Tier 3 Glassmorphism)
|
|
========================================================================== */
|
|
|
|
.modal-backdrop {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.75);
|
|
backdrop-filter: blur(8px);
|
|
-webkit-backdrop-filter: blur(8px);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 1rem;
|
|
z-index: 100;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: opacity var(--transition-fast), visibility var(--transition-fast);
|
|
}
|
|
|
|
.modal-backdrop.active {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|
|
|
|
.modal-dialog {
|
|
background: var(--bg-modal);
|
|
backdrop-filter: blur(32px);
|
|
-webkit-backdrop-filter: blur(32px);
|
|
border: 1px solid var(--border-medium);
|
|
border-radius: var(--radius-xl);
|
|
box-shadow: var(--glass-sheen-strong), var(--shadow-lg);
|
|
width: 100%;
|
|
max-width: 540px;
|
|
max-height: 90vh;
|
|
max-height: 90dvh;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
transform: scale(0.96) translateY(8px);
|
|
transition: transform var(--transition-base);
|
|
}
|
|
|
|
.modal-backdrop.active .modal-dialog {
|
|
transform: scale(1) translateY(0);
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 1.25rem 1.5rem;
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
}
|
|
|
|
.modal-title-wrap {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.65rem;
|
|
}
|
|
|
|
.modal-icon-badge {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: var(--radius-md);
|
|
background: rgba(163, 230, 53, 0.12);
|
|
border: 1px solid rgba(163, 230, 53, 0.25);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--accent-lime);
|
|
}
|
|
|
|
.modal-title {
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
.modal-close-btn {
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: var(--radius-sm);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.modal-close-btn:hover {
|
|
background: rgba(255, 255, 255, 0.08);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 1.5rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.15rem;
|
|
}
|
|
|
|
.modal-footer {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 0.75rem;
|
|
padding: 1.15rem 1.5rem;
|
|
border-top: 1px solid var(--border-subtle);
|
|
background: rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Formularios y Modos de Creación
|
|
========================================================================== */
|
|
|
|
.form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.45rem;
|
|
}
|
|
|
|
.form-label {
|
|
font-size: 0.82rem;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.form-input {
|
|
width: 100%;
|
|
padding: 0.65rem 0.95rem;
|
|
background: var(--bg-input);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-md);
|
|
color: var(--text-primary);
|
|
font-size: 0.9rem;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.form-input:focus {
|
|
outline: none;
|
|
border-color: var(--accent-lime);
|
|
box-shadow: 0 0 0 3px var(--accent-lime-glow);
|
|
}
|
|
|
|
.form-input.has-error {
|
|
border-color: var(--color-danger);
|
|
box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
|
|
}
|
|
|
|
.input-feedback {
|
|
font-size: 0.75rem;
|
|
color: var(--color-danger);
|
|
margin-top: 0.2rem;
|
|
}
|
|
|
|
/* Selector Modo A vs Modo B */
|
|
.mode-selector-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.mode-card-btn {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 0.45rem;
|
|
padding: 0.9rem;
|
|
background: rgba(255, 255, 255, 0.03);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-lg);
|
|
cursor: pointer;
|
|
text-align: left;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.mode-card-btn:hover {
|
|
background: rgba(255, 255, 255, 0.06);
|
|
border-color: var(--border-medium);
|
|
}
|
|
|
|
.mode-card-btn.active {
|
|
background: rgba(163, 230, 53, 0.08);
|
|
border-color: var(--accent-lime);
|
|
box-shadow: 0 0 16px var(--accent-lime-glow);
|
|
}
|
|
|
|
.mode-card-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-weight: 600;
|
|
font-size: 0.88rem;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.mode-card-desc {
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
line-height: 1.35;
|
|
}
|
|
|
|
/* Live URL Preview */
|
|
.url-preview-card {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.55rem 0.85rem;
|
|
background: rgba(0, 0, 0, 0.35);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-md);
|
|
font-size: 0.82rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.url-preview-card strong {
|
|
color: var(--accent-lime);
|
|
font-family: ui-monospace, SFMono-Regular, monospace;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Terminal de Diagnóstico de Rollback (RFC 7807 Stderr)
|
|
========================================================================== */
|
|
|
|
.rollback-terminal-container {
|
|
display: none;
|
|
flex-direction: column;
|
|
background: #040704;
|
|
border: 1px solid rgba(239, 68, 68, 0.35);
|
|
border-radius: var(--radius-lg);
|
|
overflow: hidden;
|
|
box-shadow: 0 4px 20px rgba(239, 68, 68, 0.15);
|
|
animation: slideDownTerminal var(--transition-base);
|
|
}
|
|
|
|
.rollback-terminal-container.active {
|
|
display: flex;
|
|
}
|
|
|
|
@keyframes slideDownTerminal {
|
|
from { opacity: 0; transform: translateY(-8px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
.terminal-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0.55rem 0.85rem;
|
|
background: rgba(239, 68, 68, 0.1);
|
|
border-bottom: 1px solid rgba(239, 68, 68, 0.25);
|
|
font-size: 0.76rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.terminal-title-wrap {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.45rem;
|
|
color: #fca5a5;
|
|
}
|
|
|
|
.terminal-badge {
|
|
font-size: 0.65rem;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
background: rgba(239, 68, 68, 0.25);
|
|
color: #fca5a5;
|
|
padding: 0.1rem 0.4rem;
|
|
border-radius: var(--radius-full);
|
|
}
|
|
|
|
.terminal-body {
|
|
padding: 0.85rem;
|
|
max-height: 160px;
|
|
overflow-y: auto;
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
font-size: 0.78rem;
|
|
line-height: 1.45;
|
|
color: #f87171;
|
|
white-space: pre-wrap;
|
|
word-break: break-all;
|
|
user-select: text;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Toasts Flotantes Accesibles
|
|
========================================================================== */
|
|
|
|
.toast-container {
|
|
position: fixed;
|
|
top: 1.25rem;
|
|
right: 1.25rem;
|
|
z-index: 9999;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
max-width: 400px;
|
|
width: calc(100% - 2.5rem);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.toast {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 0.75rem;
|
|
padding: 0.85rem 1rem;
|
|
background: var(--bg-surface-elevated);
|
|
backdrop-filter: blur(24px);
|
|
-webkit-backdrop-filter: blur(24px);
|
|
border: 1px solid var(--border-medium);
|
|
border-radius: var(--radius-lg);
|
|
box-shadow: var(--glass-sheen-strong), var(--shadow-lg);
|
|
color: var(--text-primary);
|
|
pointer-events: auto;
|
|
overflow: hidden;
|
|
animation: toastSlideIn var(--transition-base);
|
|
}
|
|
|
|
.toast.toast-leaving {
|
|
animation: toastSlideOut var(--transition-fast) forwards;
|
|
}
|
|
|
|
@keyframes toastSlideIn {
|
|
from { opacity: 0; transform: translateX(30px) scale(0.95); }
|
|
to { opacity: 1; transform: translateX(0) scale(1); }
|
|
}
|
|
|
|
@keyframes toastSlideOut {
|
|
from { opacity: 1; transform: translateX(0); }
|
|
to { opacity: 0; transform: translateX(30px); }
|
|
}
|
|
|
|
.toast-icon-wrapper {
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
margin-top: 0.1rem;
|
|
}
|
|
|
|
.toast-icon-success { background: rgba(16, 185, 129, 0.15); color: #34d399; }
|
|
.toast-icon-error { background: rgba(239, 68, 68, 0.15); color: #f87171; }
|
|
.toast-icon-warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
|
|
.toast-icon-info { background: rgba(14, 165, 233, 0.15); color: #38bdf8; }
|
|
|
|
.toast-body {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.2rem;
|
|
}
|
|
|
|
.toast-title {
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.toast-message {
|
|
font-size: 0.78rem;
|
|
color: var(--text-secondary);
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.toast-close {
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
padding: 0.2rem;
|
|
border-radius: var(--radius-sm);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
.toast-close:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.toast-progress {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
height: 3px;
|
|
width: 100%;
|
|
background: var(--accent-lime);
|
|
animation: toastProgress linear forwards;
|
|
}
|
|
|
|
.toast-error .toast-progress { background: var(--color-danger); }
|
|
.toast-warning .toast-progress { background: var(--color-warning); }
|
|
|
|
@keyframes toastProgress {
|
|
from { width: 100%; }
|
|
to { width: 0%; }
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Lector de Documentación Técnica (/docs)
|
|
========================================================================== */
|
|
|
|
.docs-wrapper {
|
|
display: grid;
|
|
grid-template-columns: 280px 1fr;
|
|
gap: 1.5rem;
|
|
align-items: start;
|
|
}
|
|
|
|
.docs-sidebar {
|
|
background: var(--bg-surface);
|
|
backdrop-filter: blur(20px);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-lg);
|
|
padding: 1.15rem;
|
|
box-shadow: var(--glass-sheen), var(--shadow-sm);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
max-height: calc(100vh - 180px);
|
|
max-height: calc(100dvh - 180px);
|
|
overflow-y: auto;
|
|
position: sticky;
|
|
top: 90px;
|
|
}
|
|
|
|
.docs-category-title {
|
|
font-size: 0.7rem;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
color: var(--text-muted);
|
|
margin-bottom: 0.35rem;
|
|
}
|
|
|
|
.docs-nav-list {
|
|
list-style: none;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.2rem;
|
|
}
|
|
|
|
.docs-nav-item-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.45rem;
|
|
width: 100%;
|
|
padding: 0.45rem 0.65rem;
|
|
background: transparent;
|
|
border: 1px solid transparent;
|
|
border-radius: var(--radius-md);
|
|
color: var(--text-secondary);
|
|
font-size: 0.82rem;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.docs-nav-item-btn:hover {
|
|
background: rgba(255, 255, 255, 0.04);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.docs-nav-item-btn.active {
|
|
background: rgba(163, 230, 53, 0.1);
|
|
color: var(--accent-lime);
|
|
border-color: rgba(163, 230, 53, 0.25);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.docs-content-viewer {
|
|
background: var(--bg-surface);
|
|
backdrop-filter: blur(20px);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-lg);
|
|
padding: 2rem 2.5rem;
|
|
box-shadow: var(--glass-sheen), var(--shadow-md);
|
|
min-height: 500px;
|
|
}
|
|
|
|
.docs-header-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding-bottom: 1rem;
|
|
margin-bottom: 1.5rem;
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
}
|
|
|
|
.docs-heading {
|
|
color: var(--text-primary);
|
|
font-weight: 700;
|
|
letter-spacing: -0.025em;
|
|
margin-top: 1.75rem;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.docs-h1 { font-size: 1.85rem; border-bottom: 1px solid var(--border-subtle); padding-bottom: 0.5rem; }
|
|
.docs-h2 { font-size: 1.45rem; }
|
|
.docs-h3 { font-size: 1.2rem; }
|
|
.docs-h4 { font-size: 1rem; }
|
|
|
|
.docs-paragraph {
|
|
color: var(--text-secondary);
|
|
line-height: 1.7;
|
|
margin-bottom: 1rem;
|
|
font-size: 0.94rem;
|
|
}
|
|
|
|
.docs-blockquote {
|
|
border-left: 3px solid var(--accent-lime);
|
|
background: rgba(163, 230, 53, 0.05);
|
|
padding: 0.75rem 1.15rem;
|
|
border-radius: 0 var(--radius-md) var(--radius-md) 0;
|
|
margin: 1.25rem 0;
|
|
color: var(--text-primary);
|
|
font-style: italic;
|
|
}
|
|
|
|
.docs-inline-code {
|
|
font-family: ui-monospace, SFMono-Regular, monospace;
|
|
font-size: 0.85em;
|
|
padding: 0.15rem 0.35rem;
|
|
border-radius: var(--radius-sm);
|
|
background: rgba(255, 255, 255, 0.08);
|
|
border: 1px solid var(--border-subtle);
|
|
color: var(--accent-lime);
|
|
}
|
|
|
|
.code-block-wrapper {
|
|
margin: 1.25rem 0;
|
|
background: #050805;
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-lg);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.code-block-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0.45rem 0.85rem;
|
|
background: rgba(255, 255, 255, 0.03);
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.code-lang-tag {
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
font-weight: 600;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.btn-copy-code {
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
font-size: 0.75rem;
|
|
padding: 0.2rem 0.45rem;
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.btn-copy-code:hover {
|
|
background: rgba(255, 255, 255, 0.08);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.code-pre {
|
|
padding: 1.15rem;
|
|
overflow-x: auto;
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
font-size: 0.84rem;
|
|
line-height: 1.5;
|
|
color: #e2e8f0;
|
|
}
|
|
|
|
.docs-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin: 1.25rem 0;
|
|
font-size: 0.86rem;
|
|
}
|
|
|
|
.docs-table th, .docs-table td {
|
|
padding: 0.65rem 0.95rem;
|
|
border: 1px solid var(--border-subtle);
|
|
}
|
|
|
|
.docs-table th {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.docs-ul, .docs-ol {
|
|
margin: 1rem 0 1rem 1.5rem;
|
|
color: var(--text-secondary);
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.docs-divider {
|
|
border: none;
|
|
border-top: 1px solid var(--border-subtle);
|
|
margin: 2rem 0;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Pantalla de Login (public/login.html)
|
|
========================================================================== */
|
|
|
|
.login-page-wrapper {
|
|
min-height: 100vh;
|
|
min-height: 100dvh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 1.5rem;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.login-card {
|
|
width: 100%;
|
|
max-width: 440px;
|
|
background: var(--bg-surface-elevated);
|
|
backdrop-filter: blur(28px);
|
|
-webkit-backdrop-filter: blur(28px);
|
|
border: 1px solid var(--border-medium);
|
|
border-radius: var(--radius-xl);
|
|
box-shadow: var(--glass-sheen-strong), var(--shadow-lg);
|
|
padding: 2.25rem 2rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.login-header {
|
|
text-align: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 0.6rem;
|
|
}
|
|
|
|
.login-brand-icon {
|
|
width: 52px;
|
|
height: 52px;
|
|
border-radius: var(--radius-lg);
|
|
background: linear-gradient(135deg, rgba(163, 230, 53, 0.2), rgba(16, 185, 129, 0.15));
|
|
border: 1px solid var(--border-active);
|
|
box-shadow: var(--glass-sheen-strong), 0 0 24px var(--accent-lime-glow);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--accent-lime);
|
|
}
|
|
|
|
.login-title {
|
|
font-size: 1.45rem;
|
|
font-weight: 700;
|
|
letter-spacing: -0.025em;
|
|
background: linear-gradient(135deg, #ffffff 40%, var(--accent-lime) 100%);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
}
|
|
|
|
.login-subtitle {
|
|
font-size: 0.84rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.password-input-wrapper {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.password-input-wrapper input {
|
|
padding-right: 2.75rem;
|
|
}
|
|
|
|
.password-toggle-btn {
|
|
position: absolute;
|
|
right: 0.5rem;
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: var(--radius-sm);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: color var(--transition-fast);
|
|
}
|
|
|
|
.password-toggle-btn:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.login-alert {
|
|
display: none;
|
|
align-items: center;
|
|
gap: 0.65rem;
|
|
padding: 0.75rem 0.95rem;
|
|
background: var(--color-danger-bg);
|
|
border: 1px solid var(--color-danger-border);
|
|
border-radius: var(--radius-md);
|
|
color: #fca5a5;
|
|
font-size: 0.82rem;
|
|
animation: fadeInTab var(--transition-fast);
|
|
}
|
|
|
|
.login-alert.active {
|
|
display: flex;
|
|
}
|
|
|
|
.login-footer-meta {
|
|
text-align: center;
|
|
font-size: 0.74rem;
|
|
color: var(--text-muted);
|
|
border-top: 1px solid var(--border-subtle);
|
|
padding-top: 1.15rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.35rem;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Responsive Breakpoints (Mobile-First)
|
|
========================================================================== */
|
|
|
|
@media (max-width: 900px) {
|
|
.docs-wrapper {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.docs-sidebar {
|
|
position: static;
|
|
max-height: 220px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.table-glass-card {
|
|
display: none;
|
|
}
|
|
|
|
.mobile-cards-grid {
|
|
display: grid;
|
|
}
|
|
|
|
.header-inner {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.telemetry-bar {
|
|
width: 100%;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.modal-dialog {
|
|
max-width: 100%;
|
|
border-radius: var(--radius-xl) var(--radius-xl) 0 0;
|
|
position: fixed;
|
|
bottom: 0;
|
|
margin: 0;
|
|
max-height: 85vh;
|
|
max-height: 85dvh;
|
|
}
|
|
|
|
.mode-selector-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.docs-content-viewer {
|
|
padding: 1.25rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.main-container {
|
|
padding: 0.75rem 0.85rem 2rem;
|
|
}
|
|
|
|
.top-header {
|
|
padding: 0.65rem 0.85rem;
|
|
}
|
|
|
|
.telemetry-bar {
|
|
gap: 0.45rem;
|
|
}
|
|
|
|
.telemetry-card {
|
|
padding: 0.35rem 0.55rem;
|
|
font-size: 0.72rem;
|
|
}
|
|
|
|
.ram-bar-container {
|
|
width: 48px;
|
|
}
|
|
}
|