Scert/frontend/src/views/Dashboard/Dashboard.css

1208 lines
20 KiB
CSS

.page-shell {
max-width: 1180px;
margin: 0 auto;
padding: 42px 28px 70px;
}
.topbar,
.panel-heading {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
}
.topbar-actions,
.row-actions,
.modal-actions {
display: flex;
align-items: center;
gap: 10px;
}
.topbar-actions {
flex-wrap: wrap;
justify-content: flex-end;
}
.eyebrow {
margin: 0 0 9px;
color: #687792;
font-size: 11px;
font-weight: 800;
letter-spacing: 0.15em;
}
h1,
h2,
p {
margin-top: 0;
}
h1 {
margin-bottom: 0;
font-size: clamp(30px, 5vw, 52px);
letter-spacing: -0.05em;
}
h2 {
margin-bottom: 10px;
font-size: clamp(24px, 4vw, 38px);
letter-spacing: -0.04em;
}
.secondary-button {
border: 1px solid #d5ddea;
border-radius: 12px;
background: #fff;
color: #32405a;
padding: 11px 16px;
font-weight: 700;
}
.primary-button {
border: 1px solid #315aaa;
border-radius: 12px;
background: #315aaa;
color: #fff;
padding: 11px 16px;
font-weight: 800;
box-shadow: 0 8px 18px rgba(49, 90, 170, 0.18);
}
.primary-button:disabled,
.secondary-button:disabled {
cursor: wait;
opacity: 0.6;
}
.hero-card {
display: flex;
align-items: center;
justify-content: space-between;
min-height: 250px;
margin: 36px 0 18px;
padding: 36px 42px;
border-radius: 28px;
color: #fff;
background: linear-gradient(120deg, #182b5b, #315aaa);
box-shadow: 0 20px 45px rgba(42, 75, 145, 0.2);
}
.hero-card p {
max-width: 650px;
margin-bottom: 0;
color: #d5e1ff;
line-height: 1.8;
}
.status-label {
font-size: 13px;
font-weight: 800;
}
.status-dot {
display: inline-block;
width: 9px;
height: 9px;
margin-right: 8px;
border-radius: 50%;
background: #ffba58;
}
.status-dot.online {
background: #5ee0a0;
box-shadow: 0 0 0 5px rgba(94, 224, 160, 0.15);
}
.hero-mark {
display: block;
width: 138px;
height: 138px;
object-fit: contain;
filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.18));
}
.error-banner,
.notice-banner {
margin: 18px 0;
padding: 14px 18px;
border-radius: 12px;
}
.error-banner {
border: 1px solid #f0c4c4;
color: #9c3b3b;
background: #fff2f2;
}
.notice-banner {
border: 1px solid #bfe7d1;
color: #24734b;
background: #effbf4;
}
.metrics-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 14px;
margin-bottom: 18px;
}
.metric-card,
.panel {
border: 1px solid #e2e8f2;
border-radius: 20px;
background: rgba(255, 255, 255, 0.86);
box-shadow: 0 10px 30px rgba(31, 50, 87, 0.04);
}
.metric-card {
padding: 22px;
}
.metric-card span,
.domain-row span,
.muted {
color: #7a879d;
font-size: 13px;
}
.metric-card strong {
display: block;
margin-top: 13px;
font-size: 28px;
}
.panel {
padding: 28px;
}
.server-panel {
margin-top: 18px;
}
.operations-panel {
margin-top: 18px;
}
.operation-columns {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 18px;
}
.operation-columns h3 {
margin: 0 0 10px;
color: #32405a;
font-size: 15px;
}
.record-list {
display: grid;
gap: 8px;
}
.record-row {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
min-height: 54px;
padding: 11px 12px;
border: 1px solid #edf0f5;
border-radius: 11px;
background: #fbfcfe;
}
.record-row-actions {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 10px;
flex-wrap: wrap;
}
.record-row > div {
display: grid;
gap: 5px;
min-width: 0;
}
.record-row strong,
.record-row .muted {
overflow-wrap: anywhere;
}
.compact-empty {
min-height: 80px;
padding: 18px 8px;
font-size: 12px;
}
.settings-modal {
width: min(100%, 760px);
}
.settings-modal h3 {
margin: 22px 0 10px;
color: #32405a;
font-size: 15px;
}
.settings-modal h3:first-of-type {
margin-top: 0;
}
.panel-heading {
margin-bottom: 22px;
}
.panel-heading h2 {
margin-bottom: 0;
font-size: 26px;
}
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
padding: 52px 10px;
color: #7a879d;
text-align: center;
}
.empty-state strong {
color: #32405a;
font-size: 17px;
}
code {
padding: 2px 6px;
border-radius: 6px;
background: #eef2f8;
font-family: Consolas, monospace;
}
.domain-list {
display: grid;
gap: 10px;
}
.domain-row {
display: grid;
grid-template-columns: minmax(0, 1fr) auto auto;
align-items: center;
gap: 22px;
padding: 17px 18px;
border: 1px solid #edf0f5;
border-radius: 13px;
}
.domain-row strong,
.domain-row span {
display: block;
}
.domain-title-line {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 10px;
}
.domain-title-line strong {
margin-bottom: 0;
font-size: 17px;
}
.domain-meta {
display: flex;
flex-wrap: wrap;
gap: 8px 16px;
margin-top: 9px;
}
.domain-meta span,
.domain-expiry span {
color: #7a879d;
font-size: 12px;
}
.domain-expiry {
min-width: 105px;
text-align: right;
}
.domain-expiry strong {
margin-bottom: 5px;
font-size: 13px;
}
.text-button {
padding: 5px 3px;
border: 0;
color: #315aaa;
background: transparent;
font-weight: 800;
}
.danger-text {
color: #ba5555;
}
.tag {
padding: 5px 10px;
border-radius: 99px;
background: #fff3d8;
color: #9b6a1a !important;
font-size: 12px !important;
}
.tag.success {
background: #e7f8ee;
color: #24734b !important;
}
.tag.danger {
background: #fff0f0;
color: #ba5555 !important;
}
.modal-backdrop {
position: fixed;
inset: 0;
z-index: 10;
display: grid;
place-items: center;
overflow-y: auto;
padding: clamp(16px, 3vw, 32px);
background: rgba(18, 31, 58, 0.52);
backdrop-filter: blur(2px);
}
.modal-card {
width: min(100%, 860px);
max-height: calc(100vh - 32px);
overflow: auto;
padding: 32px;
border: 1px solid #b9cbe0;
border-radius: 22px;
background: #fff;
box-shadow:
0 30px 86px rgba(19, 38, 79, 0.34),
0 0 0 5px rgba(227, 237, 248, 0.72),
inset 0 1px 0 rgba(255, 255, 255, 0.96);
}
.ssh-key-modal {
width: min(100%, 1080px);
overflow: hidden;
padding: 30px 34px;
background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}
.ssh-key-modal form {
display: grid;
grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
align-items: start;
gap: 24px;
}
.ssh-key-modal .ssh-key-guide {
grid-column: 1;
margin-bottom: 0;
}
.ssh-key-form-fields {
grid-column: 2;
min-width: 0;
padding: 18px 18px 16px;
border: 1px solid #cfdeed;
border-radius: 14px;
background: rgba(255, 255, 255, 0.94);
box-shadow: 0 8px 22px rgba(45, 79, 123, 0.06);
}
.ssh-key-form-fields .field:last-of-type {
margin-bottom: 14px;
}
.ssh-key-form-fields .field textarea {
min-height: 230px;
}
.ssh-key-form-fields .modal-actions {
margin-top: 20px;
padding-top: 16px;
border-top: 1px solid #dbe5f0;
}
.modal-heading {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 20px;
margin-bottom: 24px;
padding-bottom: 18px;
border-bottom: 1px solid #dbe5f0;
}
.modal-heading h2 {
margin-bottom: 0;
font-size: 28px;
}
.close-button {
width: 34px;
height: 34px;
border: 0;
border-radius: 10px;
color: #687792;
background: #f1f4f8;
font-size: 24px;
line-height: 1;
}
.field {
display: flex;
flex-direction: column;
gap: 8px;
margin-bottom: 17px;
color: #32405a;
font-size: 13px;
font-weight: 800;
}
.field small,
.switch-field small {
margin-left: 5px;
color: #8995a8;
font-size: 11px;
font-weight: 500;
}
.field input,
.field select,
.field textarea {
width: 100%;
border: 1px solid #bdcde0;
border-radius: 10px;
outline: 0;
padding: 11px 12px;
color: #172033;
background: #ffffff;
font: inherit;
font-weight: 500;
}
.field textarea {
resize: vertical;
line-height: 1.6;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
border-color: #4f7ed5;
box-shadow: 0 0 0 3px rgba(79, 126, 213, 0.12);
}
.form-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 14px;
}
.switch-field {
display: flex;
align-items: flex-start;
gap: 10px;
margin: 4px 0 20px;
color: #32405a;
font-size: 13px;
}
.switch-field input {
width: 18px;
height: 18px;
accent-color: #315aaa;
}
.switch-field strong,
.switch-field small {
display: block;
}
.switch-field small {
margin: 5px 0 0;
}
.settings-web-controls {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(240px, 0.9fr);
align-items: center;
gap: 12px 18px;
margin: 4px 0 18px;
padding: 12px 14px;
border: 1px solid #d8e6f3;
border-radius: 11px;
background: #fbfdff;
}
.settings-switch-field {
margin: 0;
}
.settings-web-hint {
margin: 0;
}
.server-picker {
margin: 4px 0 20px;
padding: 15px;
border: 1px solid #e2e8f2;
border-radius: 12px;
}
.server-picker legend {
padding: 0 5px;
color: #32405a;
font-size: 13px;
font-weight: 800;
}
.server-option {
display: flex;
align-items: flex-start;
gap: 9px;
padding: 9px 4px;
color: #32405a;
font-size: 13px;
}
.server-option input {
width: 17px;
height: 17px;
accent-color: #315aaa;
}
.server-option strong,
.server-option small {
display: block;
}
.server-option small {
margin-top: 4px;
color: #8995a8;
font-size: 11px;
}
.form-error {
margin: 0 0 16px;
color: #ba5555;
font-size: 13px;
}
.field-hint {
margin: -4px 0 17px;
color: #6d7b91;
font-size: 12px;
line-height: 1.6;
}
.security-hint {
margin: -2px 0 16px;
padding: 12px 14px;
border-radius: 10px;
color: #315b48;
background: #eef9f3;
font-size: 12px;
line-height: 1.6;
}
.key-fingerprint {
overflow-wrap: anywhere;
font-family: Consolas, monospace;
}
.modal-actions {
justify-content: flex-end;
padding-top: 5px;
}
@media (max-width: 760px) {
.page-shell {
padding: 26px 16px 48px;
}
.topbar {
align-items: flex-start;
flex-direction: column;
}
.topbar-actions {
width: 100%;
justify-content: stretch;
}
.topbar-actions button {
flex: 1 1 calc(50% - 10px);
}
.hero-card {
align-items: flex-start;
padding: 28px;
}
.hero-mark {
display: none;
}
.metrics-grid {
grid-template-columns: repeat(2, 1fr);
}
.operation-columns {
grid-template-columns: 1fr;
}
.panel {
padding: 20px;
}
.panel-heading {
align-items: flex-start;
flex-direction: column;
gap: 8px;
}
.domain-row {
grid-template-columns: 1fr auto;
gap: 14px;
}
.domain-expiry {
text-align: left;
}
.row-actions {
grid-column: 1 / -1;
justify-content: flex-end;
border-top: 1px solid #edf0f5;
padding-top: 10px;
}
.modal-card {
padding: 22px;
}
.form-grid {
grid-template-columns: 1fr;
gap: 0;
}
}
@media (max-width: 900px) {
.ssh-key-modal {
width: min(100%, 760px);
}
.ssh-key-modal form {
display: block;
}
.ssh-key-modal .ssh-key-guide {
margin-bottom: 18px;
}
}
.field-label-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.field-label-row > span:first-child {
min-width: 0;
}
.inline-button {
flex: 0 0 auto;
border: 0;
padding: 4px 8px;
border-radius: 6px;
color: #2557a7;
background: #edf4ff;
font-size: 12px;
line-height: 1.4;
cursor: pointer;
}
.inline-button:hover {
color: #17458f;
background: #dceaff;
}
.ssh-key-guide {
margin: 0 0 18px;
padding: 16px;
border: 1px solid #c4d7eb;
border-radius: 12px;
background: linear-gradient(135deg, #f4f9ff, #edf4fc);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.ssh-key-guide-heading {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 14px;
color: #183b68;
font-size: 14px;
font-weight: 700;
}
.ssh-key-guide-heading::before {
content: "K";
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
border-radius: 7px;
color: #ffffff;
background: #3677d8;
font-size: 12px;
}
.ssh-key-steps {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
margin: 0;
}
.ssh-key-steps article {
display: flex;
gap: 9px;
min-width: 0;
padding: 11px;
border: 1px solid #d7e3f0;
border-radius: 9px;
background: #ffffff;
}
.ssh-key-steps b {
display: inline-flex;
flex: 0 0 22px;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
border-radius: 50%;
color: #ffffff;
background: #5f93dc;
font-size: 12px;
}
.ssh-key-steps div {
display: grid;
gap: 3px;
min-width: 0;
}
.ssh-key-steps strong {
color: #23466f;
font-size: 12px;
}
.ssh-key-steps span {
color: #687b94;
font-size: 11px;
line-height: 1.55;
}
.ssh-key-platforms {
display: flex;
gap: 6px;
margin: 16px 0 10px;
padding: 4px;
border-radius: 8px;
background: #e8eff9;
}
.platform-tab {
flex: 1;
border: 0;
padding: 8px 10px;
border-radius: 6px;
color: #55708e;
background: transparent;
font-size: 12px;
cursor: pointer;
}
.platform-tab.active {
color: #214f98;
background: #ffffff;
box-shadow: 0 2px 8px rgba(48, 83, 132, 0.12);
font-weight: 700;
}
.ssh-key-path-line,
.ssh-key-path-summary {
display: grid;
gap: 8px;
margin: 8px 0;
padding: 8px 10px;
border: 1px solid #c7d8e9;
border-radius: 9px;
color: #3b5778;
background: #ffffff;
font-size: 11px;
}
.ssh-key-path-line {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 8px;
}
.ssh-key-path-line code,
.ssh-key-path-summary code {
overflow-wrap: anywhere;
color: #294765;
font-family: Consolas, "SFMono-Regular", monospace;
}
.ssh-key-path-summary {
grid-template-columns: repeat(2, minmax(0, 1fr));
margin-top: 0;
gap: 6px;
background: #f8fbff;
}
.ssh-key-path-summary > div {
display: grid;
gap: 4px;
min-width: 0;
}
.ssh-key-path-summary > div:last-child {
grid-column: 1 / -1;
}
.ssh-key-path-summary span {
color: #71839a;
}
.ssh-command-card {
margin-top: 10px;
padding: 11px 12px;
border: 1px solid #c7d8e9;
border-radius: 9px;
background: #ffffff;
}
.ssh-command-heading {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
margin-bottom: 7px;
color: #3b5778;
font-size: 12px;
font-weight: 700;
}
.ssh-command-card > code {
display: block;
overflow-wrap: anywhere;
color: #294765;
font-family: Consolas, "SFMono-Regular", monospace;
font-size: 11px;
line-height: 1.65;
white-space: pre-wrap;
}
.ssh-command-card small {
display: block;
margin-top: 8px;
color: #71839a;
font-size: 11px;
line-height: 1.55;
}
.ssh-key-guide-note {
margin: 12px 0 0;
color: #637895;
font-size: 11px;
line-height: 1.6;
}
.field input[type="file"] {
padding: 9px;
color: #5d6f86;
background: #f8fafc;
font-size: 12px;
}
@media (max-width: 700px) {
.ssh-key-steps {
grid-template-columns: 1fr;
}
.ssh-key-path-summary {
grid-template-columns: 1fr;
}
.ssh-key-path-summary > div:last-child {
grid-column: auto;
}
.field-label-row {
align-items: flex-start;
}
}
.ssh-key-guide-heading > div:first-child {
display: grid;
gap: 3px;
min-width: 0;
}
.ssh-key-guide-heading > div:first-child span {
color: #6d819b;
font-size: 11px;
font-weight: 400;
line-height: 1.55;
}
.guide-badge {
flex: 0 0 auto;
padding: 4px 8px;
border-radius: 999px;
color: #2c68ba;
background: #e2efff;
font-size: 11px;
white-space: nowrap;
}
.certificate-import-modal {
width: min(100%, 680px);
}
.import-result {
display: grid;
gap: 6px;
margin: 16px 0;
padding: 14px 16px;
border: 1px solid #bfe7d1;
border-radius: 12px;
color: #24734b;
background: #effbf4;
}
.import-result span {
color: #4c7a61;
font-size: 13px;
}
@media (min-width: 1100px) {
.settings-modal {
width: min(100%, 980px);
}
}
.page-shell {
max-width: 1380px;
}
.task-details-modal {
width: min(100%, 860px);
}
.task-detail-summary {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 12px;
margin-bottom: 18px;
}
.task-detail-summary > div {
display: grid;
gap: 7px;
min-width: 0;
padding: 13px 14px;
border: 1px solid #e0e8f2;
border-radius: 12px;
background: #f8fbff;
}
.task-detail-summary span,
.task-detail-message > span {
color: #718198;
font-size: 12px;
font-weight: 700;
}
.task-detail-summary strong {
min-width: 0;
color: #243653;
font-size: 13px;
overflow-wrap: anywhere;
}
.task-detail-summary strong.tag {
width: fit-content;
color: inherit;
}
.task-detail-message {
margin-bottom: 20px;
padding: 14px 16px;
border: 1px solid #e0e8f2;
border-radius: 12px;
background: #fbfdff;
}
.task-detail-message p {
margin: 8px 0 0;
color: #3f506b;
line-height: 1.65;
overflow-wrap: anywhere;
}
.modal-section-title {
margin: 0 0 10px;
color: #32405a;
font-size: 15px;
}
.attempt-list {
display: grid;
gap: 9px;
}
.attempt-row {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 14px;
padding: 13px 14px;
border: 1px solid #e1e8f1;
border-radius: 12px;
background: #ffffff;
}
.attempt-row > div {
display: grid;
gap: 5px;
min-width: 0;
}
.attempt-row strong {
color: #2d4568;
font-size: 13px;
overflow-wrap: anywhere;
}
.attempt-error {
color: #b14e4e;
font-size: 12px;
line-height: 1.5;
overflow-wrap: anywhere;
}
@media (max-width: 900px) {
.task-detail-summary {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 640px) {
.page-shell {
padding: 28px 16px 52px;
}
.task-detail-summary {
grid-template-columns: minmax(0, 1fr);
}
.attempt-row {
flex-direction: column;
}
}
.settings-modal {
width: min(100%, 1080px);
max-height: calc(100vh - 24px);
padding: 30px 34px;
}
.settings-section-note {
display: grid;
gap: 4px;
margin: -2px 0 16px;
padding: 11px 13px;
border: 1px solid #d8e6f3;
border-radius: 10px;
color: #637895;
background: #f7fbff;
font-size: 12px;
line-height: 1.55;
}
.dns-provider-description {
margin: -3px 0 15px;
padding: 0 2px;
line-height: 1.55;
}
.dns-credentials-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0 14px;
}
.dns-test-actions {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
margin: 2px 0 15px;
padding: 12px 13px;
border: 1px solid #d8e6f3;
border-radius: 11px;
background: #fbfdff;
}
.dns-test-actions .text-button {
padding: 5px 2px;
}
.dns-verification-status {
margin-left: auto;
padding: 5px 10px;
border-radius: 999px;
color: #8b681e;
background: #fff4d9;
font-size: 12px;
font-weight: 800;
}
.dns-verification-status.verified {
color: #24734b;
background: #e7f8ee;
}
.dns-verification-progress {
display: grid;
gap: 4px;
margin: -4px 0 16px;
padding: 12px 13px;
border: 1px solid #cbdcf2;
border-radius: 11px;
color: #2d5b99;
background: #f0f6ff;
font-size: 12px;
line-height: 1.55;
}
.dns-verification-progress strong {
font-size: 13px;
}
.dns-verification-progress small {
color: #6d7b91;
font-size: 12px;
}
.dns-test-report {
display: grid;
gap: 8px;
margin: 8px 0 16px;
padding: 13px 14px;
border: 1px solid #d9e6f3;
border-radius: 11px;
background: #f8fbff;
}
.dns-test-report-heading {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 12px;
flex-wrap: wrap;
padding-bottom: 4px;
}
.dns-test-report-heading strong {
color: #32405a;
font-size: 13px;
}
.dns-test-report-heading span,
.dns-test-stage span {
color: #6d7b91;
font-size: 12px;
line-height: 1.5;
}
.dns-test-stage {
display: grid;
grid-template-columns: 8px minmax(0, 1fr);
align-items: start;
gap: 9px;
padding: 8px 0;
border-top: 1px solid #e6eef6;
}
.dns-test-stage > div {
display: grid;
gap: 3px;
min-width: 0;
}
.dns-test-stage strong {
color: #32405a;
font-size: 12px;
}
.dns-stage-indicator {
width: 8px;
height: 8px;
margin-top: 4px;
border-radius: 50%;
background: #f0b44c;
}
.dns-stage-indicator.success {
background: #45ad72;
}
.dns-stage-indicator.failed,
.dns-stage-indicator.error {
background: #c55c5c;
}
@media (min-width: 1100px) {
.settings-modal {
width: min(100%, 1080px);
}
}
@media (max-width: 700px) {
.settings-modal {
max-height: calc(100vh - 16px);
padding: 24px 20px;
}
.dns-credentials-grid {
grid-template-columns: 1fr;
}
.dns-verification-status {
margin-left: 0;
}
.settings-web-controls {
grid-template-columns: 1fr;
}
}