zoraxy-dhcp/web/style.css

195 lines
2.9 KiB
CSS

*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
Ubuntu, Cantarell, sans-serif;
font-size: 14px;
color: #1a1a2e;
background: #f5f6fa;
padding: 20px;
max-width: 960px;
margin: 0 auto;
}
header {
margin-bottom: 20px;
}
h1 {
font-size: 20px;
font-weight: 600;
margin-bottom: 8px;
}
.stats-bar {
color: #636e72;
margin-bottom: 12px;
}
.actions-bar {
display: flex;
gap: 8px;
}
.btn {
padding: 6px 14px;
border: 1px solid #dcdde1;
border-radius: 4px;
background: #fff;
font-size: 13px;
cursor: pointer;
transition: background 0.15s;
}
.btn:hover {
background: #f0f0f5;
}
.btn-primary {
background: #0984e3;
color: #fff;
border-color: #0984e3;
}
.btn-primary:hover {
background: #0773c5;
}
.btn-danger {
background: #d63031;
color: #fff;
border-color: #d63031;
}
.btn-danger:hover {
background: #b71c1c;
}
.btn-secondary {
background: #dfe6e9;
border-color: #b2bec3;
}
.btn-secondary:hover {
background: #b2bec3;
}
.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.pin-form {
display: inline-flex;
align-items: center;
gap: 4px;
}
.pin-form input[type="text"] {
padding: 4px 8px;
border: 1px solid #0984e3;
border-radius: 3px;
font-size: 13px;
width: 130px;
outline: none;
}
.pin-form input[type="text"]:focus {
border-color: #0773c5;
box-shadow: 0 0 0 2px rgba(9,132,227,0.2);
}
.pin-form .btn {
padding: 3px 8px;
font-size: 12px;
}
table {
width: 100%;
border-collapse: collapse;
background: #fff;
border-radius: 6px;
overflow: hidden;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
th {
text-align: left;
padding: 10px 14px;
background: #f8f9fc;
font-weight: 600;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.5px;
color: #636e72;
border-bottom: 1px solid #eee;
}
td {
padding: 10px 14px;
border-bottom: 1px solid #f0f0f5;
font-size: 13px;
}
tr:last-child td {
border-bottom: none;
}
.loading-row td {
text-align: center;
padding: 30px;
color: #999;
}
.status-badge {
display: inline-block;
padding: 2px 8px;
border-radius: 10px;
font-size: 11px;
font-weight: 500;
}
.status-active {
background: #dfe6e9;
color: #636e72;
}
.status-permanent {
background: #00b894;
color: #fff;
}
.mac-address {
font-family: "SF Mono", "Fira Code", monospace;
font-size: 12px;
}
.actions-cell {
display: flex;
gap: 6px;
}
/* Toast notification */
.toast {
position: fixed;
bottom: 20px;
right: 20px;
padding: 10px 18px;
border-radius: 4px;
font-size: 13px;
color: #fff;
background: #2d3436;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
transition: opacity 0.25s, transform 0.25s;
z-index: 1000;
}
.toast.success { background: #00b894; }
.toast.error { background: #d63031; }
.toast.hidden {
opacity: 0;
transform: translateY(10px);
pointer-events: none;
}