681 lines
9.7 KiB
CSS
681 lines
9.7 KiB
CSS
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
font-family: Inter, system-ui, sans-serif;
|
|
background: #f2f2f2;
|
|
color: #1f2937;
|
|
}
|
|
|
|
button,
|
|
input,
|
|
select {
|
|
font: inherit;
|
|
}
|
|
|
|
button {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.app {
|
|
min-height: 100vh;
|
|
min-width: 1280px;
|
|
display: flex;
|
|
background: #f2f2f2;
|
|
}
|
|
|
|
/* SIDEBAR */
|
|
|
|
.sidebar {
|
|
width: 250px;
|
|
background: #0d0d0d;
|
|
color: white;
|
|
padding: 26px 16px 18px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
border-right: 1px solid #171717;
|
|
}
|
|
|
|
.brand {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 34px;
|
|
text-align: center;
|
|
}
|
|
|
|
.logo {
|
|
width: 72px;
|
|
height: 72px;
|
|
border-radius: 24px;
|
|
background: linear-gradient(135deg, #5da8ff, #b7e236);
|
|
display: grid;
|
|
place-items: center;
|
|
font-weight: 900;
|
|
font-size: 24px;
|
|
color: #0d0d0d;
|
|
}
|
|
|
|
.brand-logo {
|
|
width: 115px;
|
|
height: auto;
|
|
display: block;
|
|
}
|
|
|
|
.brand strong {
|
|
display: block;
|
|
font-size: 18px;
|
|
letter-spacing: 0.5px;
|
|
color: #5da8ff;
|
|
}
|
|
|
|
.brand span {
|
|
display: block;
|
|
font-size: 13px;
|
|
color: white;
|
|
letter-spacing: 4px;
|
|
margin-top: -2px;
|
|
}
|
|
|
|
nav {
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
nav button {
|
|
background: transparent;
|
|
border: 0;
|
|
color: #d1d5db;
|
|
padding: 12px 14px;
|
|
border-radius: 9px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 11px;
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
nav button.active,
|
|
nav button:hover {
|
|
background: #5da8ff;
|
|
color: white;
|
|
}
|
|
|
|
.status-card {
|
|
margin-top: auto;
|
|
background: #181818;
|
|
border: 1px solid #262626;
|
|
border-radius: 14px;
|
|
padding: 16px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.status-card strong {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.status-card p {
|
|
margin: 0;
|
|
color: #b7e236;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.dot {
|
|
width: 9px;
|
|
height: 9px;
|
|
background: #22c55e;
|
|
display: inline-block;
|
|
border-radius: 50%;
|
|
margin-right: 8px;
|
|
}
|
|
|
|
/* MAIN */
|
|
|
|
.content {
|
|
flex: 1;
|
|
padding: 30px;
|
|
overflow-x: auto;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.page-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.page-header h1 {
|
|
margin: 0;
|
|
font-size: 26px;
|
|
line-height: 1.1;
|
|
color: #111827;
|
|
}
|
|
|
|
.page-header p {
|
|
margin: 6px 0 0;
|
|
color: #6b7280;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.health,
|
|
.primary,
|
|
.secondary {
|
|
border: 0;
|
|
border-radius: 9px;
|
|
padding: 11px 18px;
|
|
font-weight: 800;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.health {
|
|
background: white;
|
|
color: #111827;
|
|
box-shadow: 0 5px 18px rgba(0, 0, 0, 0.06);
|
|
}
|
|
|
|
.health::before {
|
|
content: "";
|
|
width: 8px;
|
|
height: 8px;
|
|
background: #b7e236;
|
|
display: inline-block;
|
|
border-radius: 50%;
|
|
margin-right: 9px;
|
|
}
|
|
|
|
.primary {
|
|
background: #b7e236;
|
|
color: #0d0d0d;
|
|
}
|
|
|
|
.secondary {
|
|
background: #f3f4f6;
|
|
color: #374151;
|
|
}
|
|
|
|
.primary:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* CARDS */
|
|
|
|
.cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 18px;
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
.metric-card,
|
|
.panel {
|
|
background: white;
|
|
border-radius: 14px;
|
|
padding: 20px;
|
|
border: 1px solid #eceff3;
|
|
box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
|
|
}
|
|
|
|
.metric-card {
|
|
min-height: 118px;
|
|
}
|
|
|
|
.metric-card span {
|
|
color: #6b7280;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.metric-card strong {
|
|
display: block;
|
|
font-size: 34px;
|
|
margin-top: 10px;
|
|
color: #111827;
|
|
}
|
|
|
|
/* TABLE */
|
|
|
|
.panel {
|
|
padding: 0;
|
|
overflow: visible;
|
|
}
|
|
|
|
.panel table {
|
|
overflow: hidden;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
background: white;
|
|
}
|
|
|
|
th,
|
|
td {
|
|
text-align: left;
|
|
padding: 15px 18px;
|
|
border-bottom: 1px solid #edf0f3;
|
|
font-size: 14px;
|
|
}
|
|
|
|
th {
|
|
color: #6b7280;
|
|
font-size: 12px;
|
|
font-weight: 800;
|
|
background: #fbfbfc;
|
|
}
|
|
|
|
td {
|
|
color: #374151;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.badge {
|
|
padding: 6px 10px;
|
|
border-radius: 999px;
|
|
font-size: 12px;
|
|
font-weight: 800;
|
|
background: #e5e7eb;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.badge::before {
|
|
content: "";
|
|
width: 7px;
|
|
height: 7px;
|
|
border-radius: 50%;
|
|
background: currentColor;
|
|
}
|
|
|
|
.badge.provisioned,
|
|
.badge.active,
|
|
.badge.online,
|
|
.badge.success {
|
|
color: #16a34a;
|
|
background: #dcfce7;
|
|
}
|
|
|
|
.badge.pending,
|
|
.badge.inactive,
|
|
.badge.warning {
|
|
color: #ca8a04;
|
|
background: #fef9c3;
|
|
}
|
|
|
|
.badge.failed,
|
|
.badge.offline {
|
|
color: #dc2626;
|
|
background: #fee2e2;
|
|
}
|
|
|
|
.badge.removed {
|
|
color: #6b7280;
|
|
background: #f3f4f6;
|
|
}
|
|
|
|
/* ERROR */
|
|
|
|
.error-banner {
|
|
background: #fee2e2;
|
|
color: #991b1b;
|
|
padding: 12px 16px;
|
|
border-radius: 12px;
|
|
margin-bottom: 18px;
|
|
font-weight: 800;
|
|
}
|
|
|
|
/* MODAL */
|
|
|
|
.modal-backdrop {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.55);
|
|
display: grid;
|
|
place-items: center;
|
|
z-index: 50;
|
|
}
|
|
|
|
.modal {
|
|
width: 760px;
|
|
max-width: calc(100vw - 48px);
|
|
background: #f7f8fa;
|
|
border-radius: 18px;
|
|
padding: 22px;
|
|
box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
.modal-header h2 {
|
|
margin: 0;
|
|
color: #111827;
|
|
}
|
|
|
|
.modal-header p {
|
|
margin: 5px 0 0;
|
|
color: #6b7280;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.icon-button {
|
|
border: 0;
|
|
background: white;
|
|
border-radius: 10px;
|
|
width: 36px;
|
|
height: 36px;
|
|
display: grid;
|
|
place-items: center;
|
|
}
|
|
|
|
.router-form {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 16px;
|
|
}
|
|
|
|
.router-form label {
|
|
background: white;
|
|
border: 1px solid #eceff3;
|
|
border-radius: 14px;
|
|
padding: 14px;
|
|
display: grid;
|
|
gap: 8px;
|
|
font-size: 13px;
|
|
font-weight: 800;
|
|
color: #374151;
|
|
}
|
|
|
|
.router-form input {
|
|
height: 40px;
|
|
border: 1px solid #dfe3e8;
|
|
border-radius: 8px;
|
|
padding: 0 12px;
|
|
background: #fbfbfc;
|
|
color: #111827;
|
|
}
|
|
|
|
.router-form input:focus {
|
|
outline: 2px solid rgba(93, 168, 255, 0.25);
|
|
border-color: #5da8ff;
|
|
}
|
|
|
|
.modal-actions {
|
|
grid-column: 1 / -1;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 12px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
/* RESPONSIVE */
|
|
|
|
@media (max-width: 1000px) {
|
|
.cards {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
.router-form {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.custom-select {
|
|
position: relative;
|
|
}
|
|
|
|
.custom-select-button {
|
|
width: 100%;
|
|
height: 40px;
|
|
border: 1px solid #dfe3e8;
|
|
border-radius: 8px;
|
|
padding: 0 12px;
|
|
background: #fbfbfc;
|
|
color: #111827;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.custom-select-menu {
|
|
position: absolute;
|
|
z-index: 9999;
|
|
top: calc(100% + 6px);
|
|
left: 0;
|
|
right: 0;
|
|
max-height: 220px;
|
|
overflow-y: auto;
|
|
background: white;
|
|
border: 1px solid #e5e7eb;
|
|
border-radius: 12px;
|
|
box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
|
|
padding: 6px;
|
|
}
|
|
|
|
.custom-select-option {
|
|
width: 100%;
|
|
border: 0;
|
|
background: transparent;
|
|
color: #111827;
|
|
text-align: left;
|
|
padding: 9px 10px;
|
|
border-radius: 8px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.custom-select-option:hover {
|
|
background: #eef6ff;
|
|
}
|
|
|
|
.table-action {
|
|
width: 34px;
|
|
height: 34px;
|
|
border: 0;
|
|
border-radius: 10px;
|
|
display: grid;
|
|
place-items: center;
|
|
background: #f3f4f6;
|
|
color: #374151;
|
|
}
|
|
|
|
.table-action.danger {
|
|
color: #dc2626;
|
|
}
|
|
|
|
.table-action.danger:hover {
|
|
background: #fee2e2;
|
|
}
|
|
|
|
.confirm-dialog {
|
|
width: 430px;
|
|
background: white;
|
|
border-radius: 18px;
|
|
padding: 24px;
|
|
box-shadow: 0 25px 80px rgba(0, 0, 0, 0.28);
|
|
}
|
|
|
|
.confirm-dialog h2 {
|
|
margin: 0;
|
|
color: #111827;
|
|
}
|
|
|
|
.confirm-dialog p {
|
|
margin: 10px 0 22px;
|
|
color: #6b7280;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.danger-button {
|
|
border: 0;
|
|
border-radius: 9px;
|
|
padding: 11px 18px;
|
|
font-weight: 800;
|
|
font-size: 14px;
|
|
background: #ef4444;
|
|
color: white;
|
|
}
|
|
|
|
.danger-button:hover {
|
|
background: #dc2626;
|
|
}
|
|
|
|
.panel-empty {
|
|
padding: 22px;
|
|
margin: 0;
|
|
color: #6b7280;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.table-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.small-action {
|
|
height: 34px;
|
|
border: 0;
|
|
border-radius: 10px;
|
|
padding: 0 12px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
background: #f3f4f6;
|
|
color: #374151;
|
|
font-weight: 800;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.primary-action {
|
|
background: #b7e236;
|
|
color: #0d0d0d;
|
|
}
|
|
|
|
.table-action.warning {
|
|
color: #ca8a04;
|
|
}
|
|
|
|
.table-action.warning:hover {
|
|
background: #fef9c3;
|
|
}
|
|
|
|
.table-action:disabled,
|
|
.small-action:disabled {
|
|
opacity: 0.55;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.warning-action {
|
|
color: #ca8a04;
|
|
background: #fef9c3;
|
|
}
|
|
|
|
.deployment-modal {
|
|
width: 720px;
|
|
max-width: calc(100vw - 48px);
|
|
background: white;
|
|
border-radius: 18px;
|
|
padding: 24px;
|
|
box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.deployment-summary {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
background: #f8fafc;
|
|
border: 1px solid #e5e7eb;
|
|
border-radius: 14px;
|
|
padding: 14px;
|
|
margin-bottom: 16px;
|
|
font-weight: 800;
|
|
color: #64748b;
|
|
}
|
|
|
|
.deployment-status {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.log-box {
|
|
background: #050505;
|
|
border-radius: 14px;
|
|
padding: 16px;
|
|
min-height: 220px;
|
|
max-height: 360px;
|
|
overflow: auto;
|
|
}
|
|
|
|
.log-box pre {
|
|
margin: 0;
|
|
color: #b7e236;
|
|
font-size: 13px;
|
|
line-height: 1.5;
|
|
white-space: pre-wrap;
|
|
font-family: "JetBrains Mono", Consolas, monospace;
|
|
}
|
|
|
|
.table-toolbar {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 14px;
|
|
padding: 16px;
|
|
border-bottom: 1px solid #edf0f3;
|
|
background: white;
|
|
position: relative;
|
|
z-index: 20;
|
|
}
|
|
|
|
.search-box {
|
|
height: 40px;
|
|
min-width: 320px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 9px;
|
|
background: #fbfbfc;
|
|
border: 1px solid #dfe3e8;
|
|
border-radius: 10px;
|
|
padding: 0 12px;
|
|
color: #64748b;
|
|
}
|
|
|
|
.search-box input {
|
|
width: 100%;
|
|
border: 0;
|
|
outline: 0;
|
|
background: transparent;
|
|
color: #111827;
|
|
font-weight: 700;
|
|
}
|
|
|
|
|
|
.toolbar-select {
|
|
width: 200px;
|
|
}
|
|
|
|
.toolbar-select .custom-select-button {
|
|
height: 40px;
|
|
}
|
|
|
|
.chevron {
|
|
color: #64748b;
|
|
transition: transform 0.2s ease;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.chevron.open {
|
|
transform: rotate(180deg);
|
|
} |