API/client/src/styles/App.css
2026-04-03 23:42:11 +03:00

325 lines
4.9 KiB
CSS

#root {
max-width: 1280px;
margin: 0 auto;
padding: 2rem;
text-align: center;
}
.logo {
height: 6em;
padding: 1.5em;
will-change: filter;
transition: filter 300ms;
}
.logo:hover {
filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.react:hover {
filter: drop-shadow(0 0 2em #61dafbaa);
}
@keyframes logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@media (prefers-reduced-motion: no-preference) {
a:nth-of-type(2) .logo {
animation: logo-spin infinite 20s linear;
}
}
.card {
padding: 2em;
}
.read-the-docs {
color: #888;
}
.dash-container {
padding: 15px;
position: relative;
overflow-y: auto;
overflow-x: hidden;
height: 100%;
box-sizing: border-box;
scrollbar-gutter: stable;
}
.dash-scanline {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 2px;
background: rgba(0, 212, 255, 0.05);
animation: scan 6s linear infinite;
pointer-events: none;
z-index: 1;
}
@keyframes scan {
0% {
top: 0;
}
100% {
top: 100%;
}
}
.dashboard-grid {
display: grid;
grid-template-columns: 1fr;
gap: 15px;
max-width: 1400px;
margin: 0 auto;
position: relative;
z-index: 2;
width: 100%;
box-sizing: border-box;
align-items: start;
overflow: hidden;
}
.dash-card {
background: rgba(10, 15, 24, 0.95) !important;
border: 1px solid #1a2638 !important;
border-radius: 2px !important;
position: relative;
padding: 20px !important;
box-sizing: border-box;
overflow: hidden;
contain: paint;
}
.card-tag {
position: absolute;
top: 0;
right: 0;
background: #1a2638;
color: #00d4ff;
font-size: 8px;
padding: 2px 6px;
font-weight: 900;
text-transform: uppercase;
letter-spacing: 1px;
}
.pilot-info {
display: flex;
flex-direction: column;
gap: 15px;
margin-bottom: 15px;
align-items: flex-start;
}
.pilot-avatar {
width: 50px;
height: 50px;
background: #05080c;
border: 1px solid #00d4ff;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
position: relative;
color: #00d4ff;
flex-shrink: 0;
}
.level-badge {
position: absolute;
bottom: -3px;
right: -3px;
background: #00d4ff;
color: #000;
font-size: 9px;
padding: 1px 4px;
font-weight: 900;
}
.pilot-details {
flex: 1;
min-width: 0;
width: 100%;
}
.pilot-details h3 {
margin: 0 0 5px 0;
font-size: 1rem;
color: #fff;
word-break: break-all;
overflow-wrap: break-word;
}
.status-online {
font-size: 10px;
color: #4a5d75;
margin: 0;
}
.exp-bar-container {
margin-top: 10px;
}
.exp-labels {
display: flex;
justify-content: space-between;
font-size: 9px;
color: #4a5d75;
margin-bottom: 3px;
}
.exp-track {
height: 3px;
background: #05080c;
border: 1px solid #1a2638;
}
.exp-fill {
height: 100%;
background: linear-gradient(90deg, #00d4ff, #00ff88);
box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}
.resource-list {
display: flex;
flex-direction: column;
gap: 8px;
}
.res-item {
display: flex;
align-items: center;
gap: 12px;
padding: 10px;
background: rgba(0, 0, 0, 0.4);
border-left: 2px solid #00d4ff;
position: relative;
contain: paint;
}
.res-content {
display: flex;
justify-content: space-between;
align-items: center;
flex: 1;
}
.res-label {
font-size: 9px;
color: #4a5d75;
text-transform: uppercase;
}
.res-val {
font-size: 1rem;
font-weight: 900;
color: #fff;
font-family: "Space Mono", monospace;
position: relative;
padding-right: 25px;
}
.credit-plus {
position: absolute;
top: 0;
right: 0;
color: #00ff88;
font-size: 0.8rem;
font-weight: 900;
pointer-events: none;
animation: floatUp 1.2s ease-out forwards;
}
@keyframes floatUp {
0% {
transform: translateY(5px);
opacity: 0;
}
20% {
opacity: 1;
}
100% {
transform: translateY(-15px);
opacity: 0;
}
}
.diag-grid {
display: grid;
grid-template-columns: 1fr;
gap: 8px;
}
.diag-item {
background: rgba(0, 0, 0, 0.2);
padding: 8px 12px;
border: 1px solid #1a2638;
display: flex;
justify-content: space-between;
align-items: center;
}
.diag-status {
font-size: 10px;
color: #00ff88;
font-weight: bold;
}
.diag-item.warning {
border-color: rgba(255, 170, 0, 0.5);
}
.diag-item.warning .diag-status {
color: #ffaa00;
}
.diag-status.online {
text-shadow: 0 0 5px #00ff88;
}
@media (min-width: 600px) {
.dashboard-grid {
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
}
.dash-container {
padding: 20px;
}
}
@media (min-width: 992px) {
.dashboard-grid {
grid-template-columns: repeat(3, 1fr);
}
.pilot-info {
flex-direction: row;
align-items: center;
}
.pilot-details h3 {
font-size: 1.1rem;
word-break: normal;
}
.diag-grid {
grid-template-columns: 1fr 1fr;
}
}
*::-webkit-scrollbar {
width: 0px;
background: transparent;
}
* {
scrollbar-width: none;
-ms-overflow-style: none;
}