/**
* Form Preview Styles
* Custom styles and overrides for the form preview page
*/
* {
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
margin: 0;
padding: 20px;
background: #f5f5f5;
line-height: 1.6;
}
.container {
max-width: 900px;
margin: 0 auto;
background: white;
padding: 30px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.header {
margin-bottom: 20px;
border-bottom: 1px solid #e0e0e0;
padding-bottom: 15px;
}
.header h1 {
margin: 0;
font-size: 24px;
color: #333;
font-weight: 600;
}
.header .meta {
color: #666;
font-size: 14px;
margin-top: 8px;
}
.header .meta-item {
display: inline-block;
margin-right: 15px;
}
.header .meta-label {
font-weight: 500;
color: #555;
}
#formio-container {
margin-top: 20px;
}
.formio-component-fieldset {
margin: 2rem 0;
}
/* Wizard layout tweaks */
.formio-wizard-nav-container {
margin-top: 1rem;
}
.preview-notice {
background: #fff3cd;
border: 1px solid #ffc107;
border-radius: 4px;
padding: 12px 15px;
margin-bottom: 20px;
color: #856404;
font-size: 14px;
}
.preview-notice strong {
font-weight: 600;
}
@media (max-width: 768px) {
body {
padding: 10px;
}
.container {
padding: 20px;
}
.header h1 {
font-size: 20px;
}
.header .meta-item {
display: block;
margin-right: 0;
margin-bottom: 5px;
}
}
/* Real-time Update Styles */
/* Connection Status Indicator */
.connection-indicator {
position: fixed;
top: 20px;
right: 20px;
padding: 8px 16px;
border-radius: 20px;
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
z-index: 1000;
transition: all 0.3s ease;
}
.connection-indicator.connection-connected {
background: #4caf50;
color: white;
}
.connection-indicator.connection-connecting {
background: #ff9800;
color: white;
animation: pulse 1.5s ease-in-out infinite;
}
.connection-indicator.connection-reconnecting {
background: #ff9800;
color: white;
animation: pulse 1.5s ease-in-out infinite;
}
.connection-indicator.connection-disconnected {
background: #f44336;
color: white;
}
@keyframes pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.6;
}
}
/* Update Toast Notification */
.update-toast {
position: fixed;
top: 80px;
right: 20px;
background: #2196f3;
color: white;
padding: 16px 20px;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
z-index: 1001;
opacity: 0;
transform: translateX(400px);
transition: all 0.3s ease;
}
.update-toast.show {
opacity: 1;
transform: translateX(0);
}
.update-toast-content {
display: flex;
align-items: center;
gap: 12px;
}
.update-toast-icon {
font-size: 20px;
animation: spin 1s linear infinite;
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.update-toast-message {
font-size: 14px;
font-weight: 500;
}
/* Form Deleted Message */
.form-deleted-message {
text-align: center;
padding: 60px 20px;
background: #fff3cd;
border: 2px solid #ffc107;
border-radius: 8px;
margin: 20px 0;
}
.form-deleted-icon {
font-size: 64px;
margin-bottom: 20px;
line-height: 1;
}
.form-deleted-message h2 {
color: #856404;
margin: 0 0 15px 0;
font-size: 28px;
font-weight: 600;
}
.form-deleted-message p {
color: #856404;
margin: 10px 0;
font-size: 16px;
}
.form-deleted-details {
background: rgba(255, 193, 7, 0.1);
padding: 15px;
border-radius: 4px;
margin-top: 20px;
font-size: 14px;
text-align: left;
display: inline-block;
}
/* Reconnect UI */
.reconnect-ui {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.7);
display: flex;
align-items: center;
justify-content: center;
z-index: 2000;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
}
.reconnect-ui.show {
opacity: 1;
visibility: visible;
}
.reconnect-content {
background: white;
padding: 40px;
border-radius: 12px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
text-align: center;
max-width: 400px;
margin: 20px;
}
.reconnect-icon {
font-size: 64px;
margin-bottom: 20px;
line-height: 1;
}
.reconnect-content h3 {
color: #333;
margin: 0 0 15px 0;
font-size: 24px;
font-weight: 600;
}
.reconnect-content p {
color: #666;
margin: 15px 0 25px 0;
font-size: 16px;
line-height: 1.5;
}
.reconnect-content .browser-info {
font-size: 14px;
color: #888;
margin-top: 10px;
}
.reconnect-button {
background: #2196f3;
color: white;
border: none;
padding: 12px 32px;
border-radius: 6px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: background 0.2s ease;
}
.reconnect-button:hover {
background: #1976d2;
}
.reconnect-button:active {
background: #1565c0;
}
/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
.connection-indicator {
top: 10px;
right: 10px;
font-size: 11px;
padding: 6px 12px;
}
.update-toast {
top: 60px;
right: 10px;
left: 10px;
padding: 12px 16px;
}
.update-toast-icon {
font-size: 18px;
}
.update-toast-message {
font-size: 13px;
}
.form-deleted-icon {
font-size: 48px;
}
.form-deleted-message h2 {
font-size: 24px;
}
.form-deleted-message p {
font-size: 15px;
}
.reconnect-content {
padding: 30px 20px;
margin: 10px;
}
.reconnect-icon {
font-size: 48px;
}
.reconnect-content h3 {
font-size: 20px;
}
.reconnect-content p {
font-size: 15px;
}
}