Files
2026-06-11 01:50:37 +07:00

389 lines
6.8 KiB
CSS

.search-box {
display: flex;
align-items: center;
gap: 10px;
width: 100%;
border: 1px solid var(--line);
background: rgba(255, 255, 255, .96);
border-radius: 999px;
padding: 9px 14px;
box-shadow: var(--shadow-soft);
}
.search-icon {
flex: 0 0 auto;
color: var(--muted-2);
font-size: 14px;
line-height: 1;
}
.search-results {
position: absolute;
top: calc(100% + 8px);
left: 0;
right: 0;
z-index: 5000;
display: none;
padding: 8px;
border: 1px solid var(--line);
border-radius: 18px;
background: rgba(255, 255, 255, .98);
box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
backdrop-filter: blur(12px);
max-height: 320px;
overflow-y: auto;
overflow-x: hidden;
}
.search-results.show {
display: grid;
gap: 10px;
}
.search-results-head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 10px;
padding: 2px 4px 0;
}
.search-results-hint {
padding: 0 4px;
font-size: 11px;
color: var(--muted);
}
.search-results-title {
font-size: 10px;
font-weight: 800;
letter-spacing: .08em;
text-transform: uppercase;
color: var(--muted-2);
}
.search-results-count {
font-size: 10px;
color: var(--muted);
white-space: nowrap;
}
.search-results-list {
display: grid;
gap: 6px;
}
.search-result-item {
display: flex;
align-items: center;
gap: 10px;
width: 100%;
border: 1px solid transparent;
background: #f8fbff;
border-radius: 14px;
padding: 10px 12px;
text-align: left;
transition: all .14s ease;
}
.search-result-item:hover,
.search-result-item.active {
border-color: #cfe0ff;
background: #eef5ff;
transform: translateY(-1px);
}
.search-result-icon {
width: 30px;
height: 30px;
border-radius: 10px;
display: inline-flex;
align-items: center;
justify-content: center;
background: #fff;
border: 1px solid var(--line);
flex: 0 0 auto;
}
.search-result-info {
flex: 1;
min-width: 0;
}
.search-result-name {
font-size: 12px;
font-weight: 700;
color: var(--text);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.search-result-sub {
margin-top: 2px;
font-size: 10px;
color: var(--muted);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.search-result-type {
flex: 0 0 auto;
font-size: 9px;
font-weight: 800;
letter-spacing: .04em;
text-transform: uppercase;
color: var(--accent);
background: var(--accent-soft);
border: 1px solid #cfe0ff;
border-radius: 999px;
padding: 4px 8px;
}
.search-empty {
padding: 14px 12px;
border: 1px dashed #cbd6e3;
border-radius: 14px;
color: var(--muted);
font-size: 12px;
text-align: center;
background: #fbfcfe;
}
.search-empty strong {
color: var(--text);
}
.btn-add {
width: 100%;
text-align: left;
border: 1.5px dashed #aebfda;
background: rgba(255, 255, 255, .92);
color: var(--muted);
border-radius: var(--radius-sm);
padding: 11px 12px;
margin-top: 6px;
transition: all .16s ease;
}
.btn-add:hover,
.btn-add.active {
border-color: var(--accent);
color: var(--accent);
background: var(--accent-soft);
}
.badge-green {
background: #e6f8ec;
color: #15803d;
border-color: #b9ebc9;
}
.badge-red {
background: #feecec;
color: #dc2626;
border-color: #fecaca;
}
.badge-blue {
background: #eaf1ff;
color: #165dff;
border-color: #cfe0ff;
}
.badge-amber {
background: #fff4df;
color: #d97706;
border-color: #f9deb0;
}
.badge-purple {
background: #f1eaff;
color: #7c3aed;
border-color: #ddd2ff;
}
.modal-head {
padding: 18px 20px 14px;
border-bottom: 1px solid var(--line);
background: linear-gradient(180deg, #fff, #fbfdff);
}
.modal-head h3 {
margin: 0;
font-family: var(--font-head);
font-size: 18px;
letter-spacing: -.03em;
}
.form-group {
margin-bottom: 14px;
}
.form-row {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}
.form-label {
display: block;
margin-bottom: 6px;
font-size: 12px;
font-weight: 700;
color: var(--text);
}
.form-input,
.form-select {
width: 100%;
border: 1px solid var(--line-strong);
background: #fff;
border-radius: 12px;
padding: 11px 12px;
outline: none;
transition: all .14s ease;
}
.form-input:focus,
.form-select:focus {
border-color: #8eb3ff;
box-shadow: 0 0 0 4px rgba(22, 93, 255, .10);
}
.form-coord,
.form-calc {
margin-bottom: 14px;
padding: 11px 12px;
background: #eef5ff;
color: #1140b8;
border: 1px solid #d7e5ff;
border-radius: 12px;
font-size: 12px;
font-weight: 600;
}
.btn {
border: 1px solid transparent;
border-radius: 12px;
padding: 10px 14px;
font-weight: 700;
font-size: 12px;
transition: all .16s ease;
}
.btn:hover {
transform: translateY(-1px);
}
.btn-primary {
background: var(--accent);
color: #fff;
box-shadow: 0 12px 22px rgba(22, 93, 255, .18);
}
.btn-primary:hover {
background: #0d4ae0;
}
.btn-ghost {
background: #fff;
border-color: var(--line);
color: var(--text);
}
.btn-danger {
background: #ef4444;
color: #fff;
}
.btn-sm {
padding: 7px 10px;
border-radius: 10px;
}
.toast {
min-width: 240px;
max-width: 360px;
border-radius: 14px;
padding: 12px 14px;
color: #fff;
box-shadow: var(--shadow);
animation: toast-in .2s ease;
}
.toast.info {
background: #0f172a;
}
.toast.success {
background: #16a34a;
}
.toast.error {
background: #dc2626;
}
.btn-logout {
width: 100%;
padding: 10px 14px;
background: transparent;
border: 1px solid #334155;
color: #cbd5e1;
border-radius: 10px;
font-size: 12px;
font-weight: 600;
transition: all .2s ease;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
cursor: pointer;
}
.btn-logout:hover {
background: rgba(239, 68, 68, 0.1);
border-color: #ef4444;
color: #fca5a5;
}
/* Adjust grid for sidebar mapping page */
.login-form .form-group {
margin-bottom: 20px;
}
.login-form .form-label {
color: #cbd5e1;
font-weight: 500;
font-size: 12px;
margin-bottom: 8px;
}
.login-form .form-input {
background: rgba(30, 41, 59, 0.7);
border: 1px solid rgba(255, 255, 255, 0.1);
color: #fff;
border-radius: 12px;
padding: 12px 14px;
font-size: 13px;
width: 100%;
outline: none;
transition: all 0.2s ease;
}
.login-form .form-input:focus {
border-color: var(--accent);
box-shadow: 0 0 0 4px rgba(22, 93, 255, 0.25);
background: rgba(30, 41, 59, 0.9);
}
.btn-login {
width: 100%;
padding: 12px;
font-size: 14px;
border-radius: 12px;
margin-top: 10px;
}