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

475 lines
8.1 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;
}
.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;
padding: 20px;
background: rgba(18, 31, 58, 0.45);
}
.modal-card {
width: min(100%, 560px);
max-height: calc(100vh - 40px);
overflow: auto;
padding: 30px;
border: 1px solid #e2e8f2;
border-radius: 22px;
background: #fff;
box-shadow: 0 24px 70px rgba(19, 38, 79, 0.25);
}
.modal-heading {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 20px;
margin-bottom: 24px;
}
.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 #d8e0eb;
border-radius: 10px;
outline: 0;
padding: 11px 12px;
color: #172033;
background: #fbfcfe;
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;
}
.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);
}
.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;
}
}