:root { --bg: #f7f8fb; --card-bg: #ffffff; --text: #1f2937; --muted: #6b7280; --primary: #0b7bd6; /* Accessible blue */ --primary-600: #0a6ec0; --primary-700: #095fa6; --border: #e5e7eb; --ring: rgba(11, 123, 214, 0.35); --table-head-bg: #f3f4f6; --input-bg: #ffffff; --control-accent: var(--primary); } /* Dark theme variables */ [data-theme="dark"] { --bg: #0b1220; --card-bg: #121a2a; --text: #e5e7eb; --muted: #9aa4b2; --primary: #5aa1ff; --primary-600: #4b90ea; --primary-700: #3c7ace; --border: #243045; --ring: rgba(90, 161, 255, 0.35); --table-head-bg: #172136; --input-bg: #0f1726; --control-accent: #2a3448; } * { box-sizing: border-box; } html, body { height: 100%; } body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; color: var(--text); background: var(--bg); line-height: 1.5; } /* Header */ .site-header { background: var(--card-bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; } .header-inner { display: flex; align-items: center; gap: 14px; height: 72px; padding: 14px 0; justify-content: space-between; } .header-left { display: flex; align-items: center; gap: 14px; } .logo { height: 48px; width: auto; } .brand-title { font-weight: 700; letter-spacing: .2px; } .brand-sub { color: var(--muted); font-size: .95rem; } .theme-toggle { display: inline-flex; align-items: center; gap: 6px; /* padding: 8px 10px; */ scale: 2; border-radius: 9999px; border: none;/*1px solid var(--border); */ background: var(--card-bg); color: var(--text); cursor: pointer; } .theme-toggle:hover { filter: brightness(1.05); } .theme-toggle:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); } /* Icon emphasis depending on theme */ [data-theme="light"] .theme-toggle .sun { opacity: 1; } [data-theme="light"] .theme-toggle .moon { opacity: 0.5; } [data-theme="dark"] .theme-toggle .sun { opacity: 0.5; } [data-theme="dark"] .theme-toggle .moon { opacity: 1; } /* Layout */ .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; } .card { background: var(--card-bg); margin: 24px 0; padding: 22px; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.05); } h1 { margin: 0 0 14px; font-size: 1.5rem; } h2 { margin: 20px 0 10px; font-size: 1.25rem; } /* Tables */ .table-wrapper { overflow-x: auto; } .form-table, .data-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card-bg); /* Ensure full rounded corners and visible outer border */ border: none; border-radius: 12px; overflow: hidden; position: relative; } /* Draw the outer border inside the rounded area to avoid clipping */ .form-table::after, .data-table::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--border); border-radius: 12px; pointer-events: none; } .form-table td, .form-table th { padding: 10px 12px; border-bottom: 1px solid var(--border); } .data-table td, .data-table th { padding: 10px 12px; border-bottom: 0; } .form-table tr:last-child td, .data-table tr:last-child td { border-bottom: 0; } .data-table th { background: var(--table-head-bg); text-align: left; font-weight: 600; } /* Inputs */ input[type="text"], input[type="email"], input[type="number"], select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--input-bg); color: var(--text); outline: none; transition: border-color .2s ease, box-shadow .2s ease; font-family: inherit; } textarea { resize: vertical; min-height: 80px; } input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); } input[type="radio"] { accent-color: var(--control-accent); } .radio { margin-right: 12px; } /* Buttons */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; font-weight: 600; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .02s ease; } .btn:active { transform: translateY(1px); } .btn-primary { background: var(--primary); color: #fff; } .btn-primary:hover { background: var(--primary-600); } .btn-primary:focus { box-shadow: 0 0 0 4px var(--ring); } .btn-secondary { background: #e7eef8; color: var(--primary-700); border-color: #cfd9ea; } .btn-secondary:hover { background: #dfe8f6; } [data-theme="dark"] .btn-secondary { background: #1c2637; color: var(--text); border-color: #2a3852; } [data-theme="dark"] .btn-secondary:hover { background: #1f2b3f; } .actions { margin-top: 16px; display: flex; justify-content: flex-end; } .footer-note { margin-top: 18px; color: var(--muted); } .footer-note a { color: var(--primary-700); text-decoration: none; } .footer-note a:hover { text-decoration: underline; } /* Responsive */ @media (max-width: 720px) { .header-inner { padding: 12px 0; } .logo { height: 40px; } .form-table td:first-child { width: 40%; } } /* Static Information grid */ .grid-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; /* row x column gap */ margin-bottom: 16px; } .form-field { display: flex; flex-direction: column; gap: 6px; } .form-field label { font-size: 0.9rem; color: var(--muted); } /* Inline info message under Apparatsname */ .field-info { margin-top: 4px; font-size: 0.85rem; color: var(--primary-700); } [data-theme="dark"] .field-info { color: #a9c8ff; } .hidden { display: none !important; } .inline-controls { display: flex; align-items: center; gap: 12px; justify-content: center; text-align: center; } .inline-controls.start { justify-content: flex-start; text-align: left; } .inline-controls input[type="number"] { width: 120px; text-align: center; } /* Responsive tweaks for the grid */ @media (max-width: 1024px) { .grid-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 640px) { .grid-form { grid-template-columns: 1fr; } .inline-controls { flex-wrap: wrap; } } /* Darken secondary button and add spacing after tables */ .data-table + .btn { margin-top: 14px; } /* Landing page styles */ .landing-hero { text-align: center; padding: 40px 0 20px; } .landing-hero h1 { font-size: 2.5rem; margin-bottom: 12px; } .hero-subtitle { font-size: 1.15rem; color: var(--muted); } .service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin: 40px 0; } .service-card { position: relative; background: var(--card-bg); border: 2px solid var(--border); border-radius: 16px; padding: 32px 24px; text-decoration: none; color: var(--text); transition: all 0.3s ease; cursor: pointer; display: flex; flex-direction: column; align-items: center; text-align: center; } .service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.12); border-color: var(--primary); } .service-card-disabled { opacity: 0.7; cursor: not-allowed; } .service-card-disabled:hover { transform: none; border-color: var(--border); } .service-icon { width: 80px; height: 80px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 2.5rem; color: #fff; } .service-card-disabled .service-icon { background: var(--muted); } .service-card h2 { margin: 0 0 12px; font-size: 1.5rem; } .service-card p { margin: 0; color: var(--muted); line-height: 1.6; } .service-arrow { margin-top: auto; padding-top: 20px; font-size: 1.5rem; color: var(--primary); } .service-card-disabled .service-arrow { display: none; } .service-badge { margin-top: 16px; padding: 6px 12px; background: #fef3c7; color: #92400e; border-radius: 20px; font-size: 0.85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; } [data-theme="dark"] .service-badge { background: #422006; color: #fde68a; } .info-section { margin: 40px 0; } .info-section h3 { margin-top: 0; margin-bottom: 16px; } .info-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; } .info-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--primary-700); text-decoration: none; font-weight: 500; } .info-links a:hover { text-decoration: underline; } /* Modal styles */ .modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; } .modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); } .modal-content { position: relative; background: var(--card-bg); border-radius: 16px; max-width: 500px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.3); } .modal-header { padding: 24px 24px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; } .modal-header h2 { margin: 0; font-size: 1.5rem; } .warning-icon { font-size: 2rem; color: #f59e0b; } .modal-body { padding: 24px; } .modal-body p { margin: 0 0 12px; line-height: 1.6; } .modal-body p:last-child { margin-bottom: 0; } .modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; } @media (max-width: 640px) { .landing-hero h1 { font-size: 2rem; } .service-grid { grid-template-columns: 1fr; } .info-links { flex-direction: column; } } /* Toast notification styles */ .toast { position: fixed; top: 20px; right: 20px; background: var(--card-bg); border: 1px solid #22c55e; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); padding: 16px 20px; display: flex; align-items: flex-start; gap: 12px; max-width: 400px; z-index: 2000; opacity: 0; transform: translateX(450px); transition: opacity 0.3s ease, transform 0.3s ease; } .toast.show { opacity: 1; transform: translateX(0); } .toast-icon { font-size: 1.5rem; color: #22c55e; flex-shrink: 0; } .toast-content { flex: 1; } .toast-title { font-weight: 600; margin-bottom: 4px; color: var(--text); } .toast-message { font-size: 0.9rem; color: var(--muted); line-height: 1.4; } .toast-close { background: none; border: none; color: var(--muted); cursor: pointer; padding: 0; font-size: 1.25rem; line-height: 1; flex-shrink: 0; transition: color 0.2s ease; } .toast-close:hover { color: var(--text); } @media (max-width: 640px) { .toast { top: 10px; right: 10px; left: 10px; max-width: none; transform: translateY(-100px); } .toast.show { transform: translateY(0); } } /* ELSA specific styles */ .legal-notice { background: #eff6ff; border: 1px solid #93c5fd; border-radius: 12px; padding: 16px 20px; margin-bottom: 24px; } [data-theme="dark"] .legal-notice { background: #0f2942; border-color: #1e3a52; } .legal-notice h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 1rem; color: #1e40af; } [data-theme="dark"] .legal-notice h3 { color: #93c5fd; } .legal-notice p { margin: 0; line-height: 1.6; font-size: 0.95rem; color: var(--text); } .media-controls { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; } .media-section { background: var(--table-head-bg); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 20px; } .media-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; } .media-section-header h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.15rem; } .btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border-radius: 8px; border: 1px solid var(--border); background: var(--card-bg); color: var(--text); cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; } .btn-icon:hover { background: var(--table-head-bg); color: #ef4444; } .btn-sm { font-size: 0.9rem; padding: 8px 14px; } .media-table { margin-bottom: 12px; } .media-table th { font-size: 0.85rem; white-space: nowrap; } .media-table td { padding: 8px 10px; } .media-table input[type="text"], .media-table input[type="number"] { font-size: 0.9rem; padding: 8px 10px; } .media-table input[type="number"] { width: 80px; } @media (max-width: 1024px) { .media-controls { flex-direction: column; } .media-table { font-size: 0.85rem; } .media-table th, .media-table td { padding: 6px 8px; } } /* Signature validation states */ .signature-validating { border-color: #3b82f6 !important; background-color: #eff6ff !important; } [data-theme="dark"] .signature-validating { background-color: #1e3a8a !important; } .signature-valid { border-color: #22c55e !important; background-color: #f0fdf4 !important; } [data-theme="dark"] .signature-valid { background-color: #14532d !important; } .signature-invalid { border-color: #ef4444 !important; background-color: #fef2f2 !important; } [data-theme="dark"] .signature-invalid { background-color: #7f1d1d !important; } /* Threshold exceeded - entire row in red */ .threshold-exceeded { background-color: #fee2e2 !important; } [data-theme="dark"] .threshold-exceeded { background-color: #991b1b !important; } .threshold-exceeded input, .threshold-exceeded select { border-color: #ef4444 !important; } /* Disabled submit button styling */ button[type="submit"]:disabled { opacity: 0.5; cursor: not-allowed; background-color: #9ca3af !important; }