css constant
String
const css
CSS stylesheet
Implementation
static const String css = r'''* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
padding: 20px;
}
.container {
max-width: 1400px;
margin: 0 auto;
background: white;
border-radius: 12px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
overflow: hidden;
}
header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 30px;
text-align: center;
}
header h1 {
font-size: 2.5em;
margin-bottom: 10px;
}
.atsign {
font-size: 1.5em;
font-weight: 600;
opacity: 0.9;
}
main {
padding: 30px;
}
.management-nav {
display: grid;
grid-template-columns: 1fr minmax(280px, auto) 1fr;
align-items: center;
gap: 16px;
margin-bottom: 24px;
padding: 16px 20px;
border-radius: 16px;
background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
color: #fff;
box-shadow: 0 20px 40px rgba(15, 23, 42, 0.22);
}
.management-nav-side {
display: flex;
align-items: center;
}
.management-nav-side-left {
justify-content: flex-start;
}
.management-nav-side-right {
justify-content: flex-end;
}
.management-nav-center {
text-align: center;
}
.management-nav-label {
font-size: 12px;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: #93c5fd;
margin-bottom: 6px;
}
.management-nav-atsign {
font-size: clamp(1.15rem, 2vw, 1.7rem);
font-weight: 800;
line-height: 1.2;
word-break: break-word;
}
.management-page {
min-width: 0;
}
.management-section {
background: #ffffff;
border: 1px solid #d7e2ee;
border-radius: 16px;
overflow: hidden;
box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}
.management-section + .management-section {
margin-top: 20px;
}
.management-section-summary {
list-style: none;
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 18px 20px;
cursor: pointer;
}
.management-section-summary::-webkit-details-marker {
display: none;
}
.management-section-summary h2 {
font-size: 1.25rem;
color: #0f172a;
margin-bottom: 6px;
}
.management-section-summary p {
color: #334155;
}
.management-section-toggle {
display: inline-flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.65);
color: #0f172a;
flex-shrink: 0;
}
.management-section-toggle::before {
content: '+';
font-size: 18px;
font-weight: 700;
line-height: 1;
}
.management-section[open] .management-section-toggle::before {
content: '-';
}
.management-section-body {
padding: 20px;
background: #fff;
}
.management-section-yellow .management-section-summary {
background: linear-gradient(135deg, #fde68a 0%, #facc15 100%);
}
.management-section-orange .management-section-summary {
background: linear-gradient(135deg, #fdba74 0%, #f97316 100%);
}
.management-section-blue .management-section-summary {
background: linear-gradient(135deg, #93c5fd 0%, #3b82f6 100%);
}
.management-section-green .management-section-summary {
background: linear-gradient(135deg, #86efac 0%, #22c55e 100%);
}
.management-section-slate .management-section-summary {
background: linear-gradient(135deg, #cbd5e1 0%, #64748b 100%);
}
.management-section-blue .management-section-summary h2,
.management-section-blue .management-section-summary p {
color: #eff6ff;
}
.management-section-slate .management-section-summary h2,
.management-section-slate .management-section-summary p {
color: #f8fafc;
}
.management-section-blue .management-section-toggle {
background: rgba(255, 255, 255, 0.18);
color: #eff6ff;
}
.management-section-slate .management-section-toggle {
background: rgba(255, 255, 255, 0.18);
color: #f8fafc;
}
.otp-management-grid {
display: grid;
grid-template-columns: minmax(260px, 420px);
gap: 12px;
margin-bottom: 16px;
}
.enrollment-command-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
margin: 16px 0;
}
.auto-approval-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
margin-bottom: 16px;
}
.management-command-actions {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
}
.management-command-label {
font-weight: 700;
color: #1f2937;
}
.namespace-permission-list {
display: flex;
flex-direction: column;
gap: 10px;
margin: 10px 0 12px;
}
.namespace-permission-row {
display: grid;
grid-template-columns: minmax(0, 1fr) 120px auto;
gap: 10px;
align-items: center;
}
.namespace-permission-row input,
.namespace-permission-row select {
width: 100%;
border: 1px solid #cfd8e3;
border-radius: 8px;
padding: 10px 12px;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
font-size: 13px;
background: #fff;
}
.namespace-preview {
margin-top: 8px;
font-size: 13px;
color: #64748b;
word-break: break-word;
}
.otp-inline-result {
margin-top: 14px;
padding: 14px 16px;
border-radius: 12px;
background: #fff8db;
border: 1px solid #facc15;
}
.otp-inline-result-error {
background: #fef2f2;
border-color: #fca5a5;
}
.otp-inline-label {
font-size: 12px;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: #92400e;
margin-bottom: 8px;
}
.otp-inline-value {
display: block;
font-size: 1.25rem;
font-weight: 800;
color: #111827;
word-break: break-all;
}
.otp-inline-command {
white-space: pre-wrap;
font-size: 0.95rem;
font-weight: 700;
}
.otp-inline-meta {
margin-top: 8px;
font-size: 13px;
color: #6b7280;
}
.otp-history-section {
margin-top: 16px;
}
.otp-history-empty {
color: #64748b;
font-size: 14px;
}
.otp-history-table-wrap {
border: 1px solid #e2e8f0;
border-radius: 12px;
overflow: hidden;
background: #fff;
}
.otp-history-table {
width: 100%;
border-collapse: collapse;
}
.otp-history-table th,
.otp-history-table td {
padding: 12px 14px;
border-bottom: 1px solid #e2e8f0;
text-align: left;
}
.otp-history-table th {
background: #f8fafc;
font-size: 12px;
letter-spacing: 0.06em;
text-transform: uppercase;
color: #475569;
}
.otp-history-table tbody tr:last-child td {
border-bottom: none;
}
.otp-time-left {
margin-top: 4px;
font-size: 12px;
color: #64748b;
font-weight: 600;
}
.otp-history-copy-btn {
border: none;
background: transparent;
padding: 0;
color: #0f172a;
font: inherit;
font-weight: 700;
cursor: pointer;
text-decoration: underline;
text-underline-offset: 3px;
}
.otp-history-clear-btn {
border: 1px solid #fecaca;
background: #fff1f2;
color: #b91c1c;
border-radius: 8px;
padding: 6px 10px;
font: inherit;
font-weight: 700;
cursor: pointer;
}
.auto-approval-checkbox-field {
justify-content: flex-end;
}
.auto-approval-checkbox {
display: flex;
align-items: center;
gap: 10px;
min-height: 44px;
padding: 10px 12px;
border: 1px solid #cfd8e3;
border-radius: 8px;
background: #fff;
color: #334155;
}
.auto-approval-checkbox input {
width: 18px;
height: 18px;
}
.auto-approval-list {
display: flex;
flex-direction: column;
gap: 12px;
}
.auto-approval-card {
border: 1px solid #d7e2ee;
border-radius: 12px;
background: #fff;
padding: 16px;
}
.auto-approval-card-header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
margin-bottom: 12px;
}
.auto-approval-card-title {
font-size: 1rem;
font-weight: 800;
color: #0f172a;
}
.auto-approval-card-status {
display: inline-flex;
align-items: center;
gap: 8px;
border-radius: 999px;
padding: 6px 10px;
font-size: 12px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.05em;
background: #e2e8f0;
color: #334155;
}
.auto-approval-card-status.running,
.auto-approval-card-status.starting {
background: #dcfce7;
color: #166534;
}
.auto-approval-card-status.stopping,
.auto-approval-card-status.stopped,
.auto-approval-card-status.completed {
background: #fef3c7;
color: #92400e;
}
.auto-approval-card-status.error {
background: #fee2e2;
color: #b91c1c;
}
.auto-approval-card-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px 16px;
margin-bottom: 14px;
}
.auto-approval-card-row-wide {
grid-column: 1 / -1;
}
.auto-approval-card-row strong {
display: block;
margin-bottom: 4px;
color: #475569;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.auto-approval-card-row code,
.auto-approval-card-row span {
color: #0f172a;
word-break: break-word;
}
.auto-approval-approved-list {
display: flex;
flex-direction: column;
gap: 6px;
}
.auto-approval-approved-list code {
display: block;
padding: 8px 10px;
border-radius: 8px;
background: #f8fafc;
border: 1px solid #e2e8f0;
color: #0f172a;
}
.auto-approval-card-actions {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.auto-approval-card-actions .api-v4-secondary.auto-approval-delete-btn {
border-color: #fecaca;
color: #b91c1c;
background: #fff1f2;
}
.auto-approval-log-panel {
margin-top: 14px;
border: 1px solid #d7e2ee;
border-radius: 10px;
background: #0f172a;
color: #e2e8f0;
overflow: hidden;
}
.auto-approval-log-label {
padding: 10px 12px;
font-size: 12px;
font-weight: 800;
letter-spacing: 0.05em;
text-transform: uppercase;
background: #111827;
color: #93c5fd;
}
.auto-approval-log-output {
margin: 0;
padding: 14px 16px;
max-height: 260px;
overflow: auto;
white-space: pre-wrap;
word-break: break-word;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
font-size: 12px;
line-height: 1.5;
}
.history-list {
display: flex;
flex-direction: column;
gap: 12px;
}
.history-item {
border: 1px solid #e2e8f0;
border-radius: 10px;
padding: 14px 16px;
background: #fff;
}
.history-item-header {
display: flex;
justify-content: space-between;
gap: 12px;
align-items: center;
margin-bottom: 6px;
}
.history-item-type {
font-size: 12px;
font-weight: 800;
letter-spacing: 0.06em;
text-transform: uppercase;
color: #2563eb;
}
.history-item-time {
font-size: 12px;
color: #64748b;
}
.history-item-summary {
color: #0f172a;
font-weight: 600;
margin-bottom: 6px;
}
.history-item-data {
color: #475569;
font-size: 13px;
word-break: break-word;
}
.atsign-name-row {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
}
.atsign-auto-badge {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 28px;
height: 28px;
padding: 0 10px;
border-radius: 999px;
background: #dcfce7;
color: #166534;
font-size: 12px;
font-weight: 800;
letter-spacing: 0.04em;
text-transform: uppercase;
}
.tabs-nav {
display: flex;
gap: 12px;
flex-wrap: wrap;
align-items: center;
margin-bottom: 24px;
border: 1px solid #d7e2ee;
border-radius: 14px;
background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
padding: 12px;
overflow: visible;
}
.tab-dropdown {
position: relative;
}
.tab-btn {
border: 1px solid #cbd5e1;
border-radius: 10px;
background: #ffffff;
color: #374151;
font-size: 15px;
font-weight: 600;
padding: 11px 16px;
cursor: pointer;
transition: all 0.2s;
white-space: nowrap;
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.tab-btn:hover {
background: #eef2ff;
border-color: #818cf8;
}
.tab-btn.active {
background: #1e293b;
border-color: #1e293b;
color: #fff;
box-shadow: 0 10px 20px rgba(30, 41, 59, 0.18);
}
.tab-dropdown-trigger::after {
content: '▾';
margin-left: 8px;
font-size: 12px;
}
.tab-dropdown-menu {
position: absolute;
top: calc(100% + 8px);
left: 0;
min-width: 240px;
padding: 8px;
border: 1px solid #cbd5e1;
border-radius: 12px;
background: #fff;
box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
z-index: 100;
}
.tab-dropdown-item {
display: block;
width: 100%;
border: none;
border-radius: 8px;
background: transparent;
color: #334155;
text-align: left;
padding: 10px 12px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
}
.tab-dropdown-item:hover {
background: #eef2ff;
color: #312e81;
}
.tab-dropdown-item.active {
background: #e0e7ff;
color: #312e81;
}
.tab-panel {
display: none;
}
.tab-panel.active {
display: block;
}
.placeholder-panel {
background: #f8fafc;
border: 2px dashed #cbd5e1;
border-radius: 12px;
padding: 40px 24px;
text-align: center;
color: #475569;
}
.placeholder-panel h2 {
margin-bottom: 10px;
}
.api-v4-console {
background: #f8fafc;
border: 2px solid #dbe4f0;
border-radius: 12px;
padding: 20px;
}
.api-v4-global-field {
margin-bottom: 16px;
}
.api-v4-config-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
margin-bottom: 16px;
}
.api-v4-field-wide {
grid-column: 1 / -1;
}
.api-v4-inline-input {
display: flex;
align-items: center;
gap: 10px;
}
.api-v4-inline-input input {
flex: 1 1 auto;
min-width: 0;
}
.api-v4-global-actions {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 18px;
flex-wrap: wrap;
}
.wizard-report-form {
margin: 18px 0 22px;
padding: 18px;
border: 1px solid #d7e2ee;
border-radius: 14px;
background: #f8fafc;
}
.wizard-console textarea {
min-height: 140px;
}
.wizard-report-body {
display: flex;
flex-direction: column;
gap: 12px;
}
.wizard-progress-bar {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 10px;
}
.wizard-progress-segment {
display: flex;
align-items: center;
gap: 10px;
min-height: 56px;
padding: 12px 14px;
border-radius: 12px;
border: 1px solid #d7e2ee;
background: #f8fafc;
}
.wizard-progress-index {
display: inline-flex;
align-items: center;
justify-content: center;
width: 26px;
height: 26px;
border-radius: 999px;
font-size: 13px;
font-weight: 700;
flex: 0 0 auto;
background: rgba(15, 23, 42, 0.08);
color: #0f172a;
}
.wizard-progress-label-wrap {
display: flex;
flex-direction: column;
gap: 2px;
}
.wizard-progress-label {
font-size: 13px;
font-weight: 700;
line-height: 1.3;
color: #0f172a;
}
.wizard-progress-state {
font-size: 12px;
line-height: 1.2;
color: #64748b;
text-transform: capitalize;
}
.wizard-progress-pending {
background: #f8fafc;
border-color: #d7e2ee;
}
.wizard-progress-running {
background: #fff7ed;
border-color: #fdba74;
}
.wizard-progress-running .wizard-progress-index {
background: #f97316;
color: #fff;
}
.wizard-progress-warning {
background: #fffbeb;
border-color: #fcd34d;
}
.wizard-progress-warning .wizard-progress-index {
background: #d97706;
color: #fff;
}
.wizard-progress-completed {
background: #ecfdf5;
border-color: #86efac;
}
.wizard-progress-completed .wizard-progress-index {
background: #16a34a;
color: #fff;
}
.wizard-progress-error {
background: #fef2f2;
border-color: #fca5a5;
}
.wizard-progress-error .wizard-progress-index {
background: #dc2626;
color: #fff;
}
.wizard-step-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}
.wizard-step-card {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
padding: 12px 14px;
border-radius: 10px;
border: 1px solid #d7e2ee;
background: #fff;
}
.wizard-step-card strong {
color: #0f172a;
}
.wizard-step-card span {
color: #475569;
text-transform: capitalize;
}
.wizard-log-list {
display: flex;
flex-direction: column;
gap: 8px;
padding: 8px 0;
}
.wizard-log-entry {
display: grid;
grid-template-columns: 170px 1fr;
gap: 10px;
align-items: start;
padding: 8px 10px;
border-radius: 10px;
background: #f8fafc;
border: 1px solid #e2e8f0;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
font-size: 12px;
}
.wizard-log-timestamp {
color: #475569;
white-space: nowrap;
}
.wizard-log-message {
color: #0f172a;
white-space: pre-wrap;
word-break: break-word;
}
.wizard-report-table-wrap {
overflow-x: auto;
}
.wizard-report-table {
width: 100%;
border-collapse: collapse;
font-size: 12px;
background: #fff;
border: 1px solid #d7e2ee;
border-radius: 10px;
overflow: hidden;
}
.wizard-report-table th,
.wizard-report-table td {
padding: 10px 12px;
text-align: left;
vertical-align: top;
border-bottom: 1px solid #e2e8f0;
}
.wizard-report-table th {
background: #f8fafc;
color: #334155;
font-weight: 700;
white-space: nowrap;
}
.wizard-report-table td {
color: #0f172a;
word-break: break-word;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
}
.wizard-report-table tbody tr:last-child td {
border-bottom: none;
}
@media (max-width: 900px) {
.wizard-progress-bar {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 640px) {
.wizard-progress-bar {
grid-template-columns: 1fr;
}
.wizard-log-entry {
grid-template-columns: 1fr;
}
}
.api-v4-save-status {
font-size: 13px;
color: #475569;
}
.api-v4-subtitle {
color: #4b5563;
margin: 8px 0 16px;
}
.api-v4-subsection-title {
margin: 18px 0 10px;
font-size: 16px;
font-weight: 700;
color: #0f172a;
}
.api-v4-field {
display: block;
margin-bottom: 12px;
}
.api-v4-field span {
display: block;
font-weight: 600;
margin-bottom: 6px;
color: #1f2937;
}
.api-v4-field input,
.api-v4-field select,
.api-v4-field textarea {
width: 100%;
border: 1px solid #cfd8e3;
border-radius: 8px;
padding: 10px 12px;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
font-size: 13px;
background: #fff;
}
.api-v4-field textarea {
resize: vertical;
}
.api-v4-row {
background: #ffffff;
border: 1px solid #d7e2ee;
border-radius: 12px;
padding: 16px;
}
.api-v4-row + .api-v4-row {
margin-top: 14px;
}
.api-v4-section {
margin-top: 16px;
border: 1px solid #cbd5e1;
border-radius: 12px;
background: #f1f5f9;
overflow: hidden;
}
.api-v4-section summary {
cursor: pointer;
padding: 14px 16px;
font-size: 16px;
font-weight: 700;
color: #0f172a;
background: #e2e8f0;
}
.api-v4-section-body {
padding: 14px;
}
.api-v4-row-head {
width: 100%;
border: none;
background: transparent;
padding: 0;
display: flex;
justify-content: space-between;
gap: 12px;
align-items: baseline;
flex-wrap: wrap;
margin-bottom: 10px;
text-align: left;
cursor: pointer;
}
.api-v4-row-title {
font-size: 18px;
font-weight: 700;
color: #0f172a;
}
.api-v4-row-route {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
}
.api-v4-toggle-indicator {
display: inline-flex;
width: 24px;
height: 24px;
align-items: center;
justify-content: center;
border-radius: 999px;
background: #e2e8f0;
color: #0f172a;
font-weight: 700;
}
.api-v4-row-head[aria-expanded="true"] .api-v4-toggle-indicator {
background: #cbd5e1;
content: '-';
}
.api-v4-row-head[aria-expanded="true"] .api-v4-toggle-indicator::before {
content: '-';
}
.api-v4-row-head[aria-expanded="false"] .api-v4-toggle-indicator::before {
content: '+';
}
.api-v4-row-body {
padding-top: 6px;
}
.api-v4-method {
border-radius: 999px;
padding: 4px 10px;
font-size: 12px;
font-weight: 700;
letter-spacing: 0.04em;
}
.api-v4-method-get {
background: #dbeafe;
color: #1d4ed8;
}
.api-v4-method-post {
background: #dcfce7;
color: #15803d;
}
.api-v4-method-delete {
background: #fee2e2;
color: #b91c1c;
}
.api-v4-method-put,
.api-v4-method-patch,
.api-v4-method-options {
background: #fef3c7;
color: #b45309;
}
.api-v4-param-summary {
font-size: 13px;
color: #475569;
margin-bottom: 12px;
}
.api-v4-param-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 12px;
}
.api-v4-inline-warning {
margin: 8px 0 12px;
padding: 10px 12px;
border-radius: 8px;
background: #fff7ed;
border: 1px solid #fdba74;
color: #9a3412;
font-size: 13px;
}
.api-v4-field small {
font-size: 11px;
color: #64748b;
}
.api-v4-advanced {
margin: 10px 0 12px;
padding-top: 10px;
border-top: 1px dashed #cbd5e1;
}
.api-v4-advanced summary {
cursor: pointer;
font-weight: 600;
color: #334155;
margin-bottom: 10px;
}
.api-v4-actions {
display: flex;
gap: 10px;
margin: 6px 0 12px;
}
.api-v4-actions button[data-role="send"] {
border: none;
border-radius: 8px;
background: #0f766e;
color: #fff;
padding: 10px 14px;
font-weight: 600;
cursor: pointer;
}
.api-v4-actions button[data-role="send"]:hover {
background: #0d6a63;
}
.api-v4-secondary {
border: 1px solid #cbd5e1;
border-radius: 8px;
background: #fff;
color: #334155;
padding: 10px 14px;
font-weight: 600;
cursor: pointer;
}
.api-v4-status {
margin-bottom: 10px;
font-size: 13px;
color: #334155;
}
.api-v4-result {
margin-bottom: 12px;
}
.api-v4-result-card {
border-radius: 10px;
padding: 12px;
border: 1px solid transparent;
}
.api-v4-result-success {
background: #ecfdf5;
border-color: #86efac;
}
.api-v4-result-error {
background: #fef2f2;
border-color: #fca5a5;
}
.api-v4-result-head {
display: flex;
gap: 10px;
align-items: center;
flex-wrap: wrap;
}
.api-v4-result-badge {
padding: 4px 10px;
border-radius: 999px;
font-size: 12px;
font-weight: 700;
}
.api-v4-result-badge-success {
background: #22c55e;
color: #fff;
}
.api-v4-result-badge-error {
background: #ef4444;
color: #fff;
}
.api-v4-result-text {
font-size: 14px;
color: #0f172a;
font-weight: 600;
}
.api-v4-cramkey-block {
margin-top: 12px;
padding: 12px;
border-radius: 8px;
background: #0b1220;
color: #dbeafe;
}
.api-v4-cramkey-label {
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.06em;
color: #93c5fd;
margin-bottom: 6px;
}
.api-v4-cramkey-block code {
display: block;
white-space: pre-wrap;
word-break: break-all;
}
.api-v4-transaction-path {
margin-top: 10px;
font-size: 12px;
color: #334155;
}
.api-v4-transaction-path code {
word-break: break-all;
}
.api-v4-batch-results {
margin-bottom: 12px;
}
.api-v4-batch-item {
border: 1px solid #dbe4f0;
border-radius: 10px;
background: #ffffff;
padding: 12px;
}
.api-v4-batch-item + .api-v4-batch-item {
margin-top: 10px;
}
.api-v4-batch-item-success {
border-color: #86efac;
background: #ecfdf5;
}
.api-v4-batch-item-error {
border-color: #fca5a5;
background: #fef2f2;
}
.api-v4-batch-item-head {
display: flex;
justify-content: space-between;
gap: 12px;
align-items: center;
flex-wrap: wrap;
}
.api-v4-batch-atsign {
font-weight: 700;
color: #0f172a;
}
.api-v4-batch-state {
font-size: 12px;
font-weight: 700;
color: #334155;
}
.api-v4-batch-message {
margin-top: 8px;
font-size: 13px;
color: #334155;
word-break: break-word;
}
.api-v4-batch-cramkey {
margin-top: 10px;
display: flex;
gap: 10px;
align-items: center;
flex-wrap: wrap;
}
.api-v4-batch-cramkey code {
display: block;
padding: 10px;
border-radius: 8px;
background: #0b1220;
color: #dbeafe;
word-break: break-all;
flex: 1 1 320px;
}
.api-v4-transaction-card {
background: #ffffff;
border: 1px solid #d7e2ee;
border-radius: 12px;
padding: 0;
overflow: hidden;
}
.api-v4-transaction-card + .api-v4-transaction-card {
margin-top: 12px;
}
.api-v4-transaction-summary {
list-style: none;
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
padding: 14px;
cursor: pointer;
}
.api-v4-transaction-summary::-webkit-details-marker {
display: none;
}
.api-v4-transaction-title-wrap {
min-width: 0;
}
.api-v4-transaction-title {
font-size: 15px;
font-weight: 700;
color: #0f172a;
word-break: break-word;
}
.api-v4-transaction-subtitle {
margin-top: 4px;
font-size: 13px;
color: #475569;
word-break: break-word;
}
.api-v4-transaction-summary-right {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 8px;
flex-shrink: 0;
}
.api-v4-transaction-summary-right .api-v4-secondary {
min-width: 88px;
}
.api-v4-transaction-created {
font-size: 12px;
color: #64748b;
}
.api-v4-transaction-body {
border-top: 1px solid #d7e2ee;
padding: 14px;
}
.api-v4-transaction-meta {
font-size: 13px;
color: #334155;
margin-bottom: 6px;
word-break: break-word;
}
.api-v4-transaction-cramkey {
display: flex;
gap: 10px;
align-items: center;
flex-wrap: wrap;
margin-top: 12px;
margin-bottom: 12px;
}
.api-v4-transaction-cramkey code {
display: block;
padding: 10px;
border-radius: 8px;
background: #0b1220;
color: #dbeafe;
word-break: break-all;
flex: 1 1 320px;
}
.api-v4-transaction-raw {
margin-top: 12px;
}
.api-v4-transaction-raw summary {
cursor: pointer;
font-size: 13px;
font-weight: 600;
color: #334155;
}
.api-v4-activation-log {
margin-top: 12px;
background: #0b1220;
color: #dbeafe;
border-radius: 8px;
padding: 12px;
overflow: auto;
max-height: 260px;
font-size: 12px;
line-height: 1.5;
white-space: pre-wrap;
word-break: break-word;
}
.api-v4-activation-actions {
margin-top: 12px;
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.api-v4-transaction-json {
margin-top: 10px;
background: #0b1220;
color: #dbeafe;
border-radius: 8px;
padding: 12px;
overflow: auto;
max-height: 360px;
font-size: 12px;
line-height: 1.5;
}
.api-v4-output {
background: #0b1220;
color: #dbeafe;
border-radius: 8px;
padding: 12px;
min-height: 220px;
max-height: 480px;
overflow: auto;
font-size: 12px;
line-height: 1.5;
}
.controls {
display: flex;
justify-content: space-between;
align-items: center;
gap: 20px;
margin-bottom: 20px;
flex-wrap: wrap;
gap: 15px;
}
#refresh-btn {
background: #667eea;
color: white;
border: none;
padding: 12px 24px;
border-radius: 6px;
font-size: 16px;
cursor: pointer;
transition: all 0.3s;
font-weight: 600;
}
#refresh-btn:hover {
background: #5568d3;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
#otp-btn {
background: #f59e0b;
color: white;
border: none;
padding: 12px 24px;
border-radius: 6px;
font-size: 16px;
cursor: pointer;
transition: all 0.3s;
font-weight: 600;
}
#otp-btn:hover {
background: #d97706;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}
/* Wizards Dropdown */
.wizards-dropdown {
position: relative;
}
#wizards-btn {
background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
color: white;
border: none;
padding: 12px 24px;
border-radius: 6px;
font-size: 16px;
cursor: pointer;
transition: all 0.3s;
font-weight: 600;
display: flex;
align-items: center;
gap: 8px;
}
#wizards-btn:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(167, 139, 250, 0.4);
}
.wizards-menu {
position: absolute;
top: calc(100% + 8px);
left: 0;
background: white;
border-radius: 8px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
min-width: 280px;
z-index: 1000;
display: none;
overflow: hidden;
}
.wizards-menu.show {
display: block;
animation: menuSlideIn 0.2s ease-out;
}
@keyframes menuSlideIn {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.wizard-option {
width: 100%;
padding: 16px;
border: none;
background: white;
cursor: pointer;
display: flex;
align-items: center;
gap: 12px;
transition: background 0.2s;
text-align: left;
}
.wizard-option:hover {
background: #f3f4f6;
}
.wizard-option:not(:last-child) {
border-bottom: 1px solid #e5e7eb;
}
.wizard-icon {
font-size: 24px;
flex-shrink: 0;
}
.wizard-details {
flex: 1;
}
.wizard-title {
font-weight: 600;
color: #1f2937;
font-size: 15px;
margin-bottom: 2px;
}
.wizard-description {
font-size: 13px;
color: #6b7280;
}
/* Back Button */
.back-btn {
background: #6b7280;
color: white;
border: none;
padding: 12px 24px;
border-radius: 6px;
font-size: 16px;
cursor: pointer;
transition: all 0.3s;
font-weight: 600;
}
.back-btn:hover {
background: #4b5563;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
}
/* Close Button */
.close-btn {
background: #ef4444;
color: white;
border: none;
padding: 12px 24px;
border-radius: 6px;
font-size: 16px;
cursor: pointer;
transition: all 0.3s;
font-weight: 600;
margin-left: auto;
}
.close-btn:hover {
background: #dc2626;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}
.search-box {
flex: 1;
max-width: 600px;
position: relative;
}
#search-input {
width: 100%;
padding: 12px 45px 12px 15px;
border: 2px solid #e0e0e0;
border-radius: 6px;
font-size: 16px;
transition: all 0.3s;
}
#search-input:focus {
outline: none;
border-color: #667eea;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
#clear-search {
position: absolute;
right: 10px;
top: 50%;
transform: translateY(-50%);
background: #999;
color: white;
border: none;
border-radius: 50%;
width: 24px;
height: 24px;
cursor: pointer;
font-size: 14px;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s;
}
#clear-search:hover {
background: #666;
}
.filter-controls {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
flex-wrap: wrap;
gap: 15px;
}
.filter {
display: flex;
gap: 20px;
flex-wrap: wrap;
}
.filter label {
display: flex;
align-items: center;
gap: 8px;
font-size: 14px;
cursor: pointer;
}
.filter input[type="checkbox"] {
width: 18px;
height: 18px;
cursor: pointer;
}
.match-count {
font-size: 14px;
color: #666;
font-weight: 600;
padding: 8px 16px;
background: #f5f5f5;
border-radius: 6px;
}
.loading {
text-align: center;
padding: 60px;
font-size: 18px;
color: #666;
}
.error {
background: #fee;
color: #c33;
padding: 15px;
border-radius: 6px;
margin-bottom: 20px;
border-left: 4px solid #c33;
}
.enrollments-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
gap: 20px;
}
.enrollment-card {
background: white;
border: 2px solid #e0e0e0;
border-radius: 8px;
padding: 20px;
transition: all 0.3s;
position: relative;
}
.enrollment-card:hover {
transform: translateY(-4px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.enrollment-card.approved {
border-color: #4caf50;
background: #f1f8f4;
}
.enrollment-card.pending {
border-color: #ff9800;
background: #fff8f0;
}
.enrollment-card.revoked {
border-color: #f44336;
background: #fef1f0;
}
.enrollment-card.denied {
border-color: #9e9e9e;
background: #f5f5f5;
}
.status-badge {
position: absolute;
top: 15px;
right: 15px;
padding: 6px 12px;
border-radius: 20px;
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
}
.status-badge.approved {
background: #4caf50;
color: white;
}
.status-badge.pending {
background: #ff9800;
color: white;
}
.status-badge.revoked {
background: #f44336;
color: white;
}
.status-badge.denied {
background: #9e9e9e;
color: white;
}
.enrollment-id {
font-size: 16px;
font-weight: 700;
color: #333;
margin-bottom: 12px;
padding-right: 100px;
word-break: break-all;
}
.enrollment-details {
margin-bottom: 15px;
}
.detail-row {
display: flex;
justify-content: space-between;
padding: 6px 0;
font-size: 14px;
border-bottom: 1px solid #f0f0f0;
}
.detail-label {
font-weight: 600;
color: #666;
}
.detail-value {
color: #333;
text-align: right;
}
.enrollment-actions {
display: flex;
gap: 10px;
flex-wrap: wrap;
margin-top: 15px;
}
.btn {
flex: 1;
min-width: 100px;
padding: 10px;
border: none;
border-radius: 6px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s;
}
.btn-approve {
background: #4caf50;
color: white;
}
.btn-approve:hover {
background: #388e3c;
}
.btn-revoke {
background: #f44336;
color: white;
}
.btn-revoke:hover {
background: #da190b;
}
.btn-delete {
background: #9e9e9e;
color: white;
}
.btn-delete:hover {
background: #757575;
}
.btn-view {
background: #2196f3;
color: white;
}
.btn-view:hover {
background: #1976d2;
}
.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.keys-section {
margin-top: 15px;
padding-top: 15px;
border-top: 2px solid #e0e0e0;
display: none;
}
.keys-section.show {
display: block;
}
.keys-list {
max-height: 300px;
overflow-y: auto;
}
.key-item {
margin-bottom: 12px;
padding: 10px;
background: #f5f5f5;
border-radius: 4px;
font-size: 12px;
}
.key-name {
font-family: 'Courier New', monospace;
font-weight: 600;
color: #667eea;
word-break: break-all;
margin-bottom: 6px;
}
.key-value {
font-family: 'Courier New', monospace;
color: #666;
word-break: break-all;
max-height: 100px;
overflow-y: auto;
}
@media (max-width: 768px) {
header h1 {
font-size: 1.8em;
}
.management-nav {
grid-template-columns: 1fr;
text-align: center;
}
.management-nav-side-left,
.management-nav-side-right {
justify-content: center;
}
.enrollments-grid {
grid-template-columns: 1fr;
}
.otp-management-grid {
grid-template-columns: 1fr;
}
.enrollment-command-grid {
grid-template-columns: 1fr;
}
.namespace-permission-row {
grid-template-columns: 1fr;
}
.controls {
flex-direction: column;
align-items: stretch;
}
.api-v4-row-head {
flex-direction: column;
align-items: flex-start;
}
.api-v4-config-grid {
grid-template-columns: 1fr;
}
.api-v4-inline-input {
flex-wrap: wrap;
}
}
/* OTP Modal */
.modal-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 1000;
align-items: center;
justify-content: center;
}
.modal-overlay.show {
display: flex;
}
.modal-content {
background: white;
padding: 30px;
border-radius: 12px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
max-width: 500px;
width: 90%;
}
.modal-header {
margin-bottom: 20px;
}
.modal-header h2 {
margin: 0;
color: #333;
font-size: 24px;
}
.modal-body {
margin-bottom: 20px;
}
.otp-display {
background: #f5f5f5;
border: 2px solid #f59e0b;
border-radius: 6px;
padding: 15px;
text-align: center;
margin: 15px 0;
}
.otp-value {
font-family: 'Courier New', monospace;
font-size: 24px;
font-weight: bold;
color: #f59e0b;
letter-spacing: 2px;
user-select: all;
cursor: text;
}
.otp-instructions {
color: #666;
font-size: 14px;
margin-top: 10px;
}
.modal-footer {
display: flex;
gap: 10px;
justify-content: flex-end;
}
.modal-btn {
padding: 10px 20px;
border: none;
border-radius: 6px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s;
}
.modal-btn-primary {
background: #f59e0b;
color: white;
}
.modal-btn-primary:hover {
background: #d97706;
}
.modal-btn-secondary {
background: #e0e0e0;
color: #333;
}
.modal-btn-secondary:hover {
background: #d0d0d0;
}
.copy-success {
color: #10b981;
font-size: 14px;
margin-top: 10px;
text-align: center;
font-weight: 600;
}
/* Notification animations */
@keyframes slideIn {
from {
transform: translateX(400px);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
@keyframes slideOut {
from {
transform: translateX(0);
opacity: 1;
}
to {
transform: translateX(400px);
opacity: 0;
}
}
/* no_ports Wizard Styles */
.modal-content-wide {
max-width: 700px;
}
.wizard-step {
min-height: 200px;
}
.wizard-description {
color: #555;
margin-bottom: 20px;
font-size: 16px;
}
.form-group {
margin-bottom: 20px;
}
.form-group label {
display: block;
font-weight: 600;
margin-bottom: 8px;
color: #333;
}
.form-input {
width: 100%;
padding: 12px;
border: 2px solid #e0e0e0;
border-radius: 6px;
font-size: 16px;
transition: border-color 0.3s;
}
.form-input:focus {
outline: none;
border-color: #f59e0b;
}
.form-hint {
color: #999;
font-size: 13px;
margin-top: 5px;
}
.command-display {
background: #1e1e1e;
border-radius: 6px;
padding: 20px;
margin: 15px 0;
overflow-x: auto;
}
.command-text {
font-family: 'Courier New', monospace;
font-size: 13px;
color: #d4d4d4;
white-space: pre-wrap;
word-break: break-all;
user-select: all;
cursor: text;
margin: 0;
}
.success-message {
background: #d1fae5;
color: #065f46;
padding: 12px;
border-radius: 6px;
margin-bottom: 20px;
font-weight: 600;
text-align: center;
}
.error-message {
background: #fee2e2;
color: #991b1b;
padding: 12px;
border-radius: 6px;
margin-top: 10px;
font-weight: 600;
}
.wizard-info {
background: #e0f2fe;
border-left: 4px solid #0284c7;
padding: 15px;
border-radius: 4px;
margin-top: 20px;
}
.wizard-info p {
margin-bottom: 10px;
color: #0c4a6e;
font-weight: 600;
}
.wizard-info ol {
margin-left: 20px;
color: #075985;
}
.wizard-info ol li {
margin-bottom: 8px;
}
''';