API/client/src/views/GameInterface/tabs/styles/DashboardTab.css

273 lines
4.2 KiB
CSS

.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;
}
.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;
}
.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);
}
.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-val {
font-size: 1rem;
font-weight: 900;
color: #fff;
font-family: "Space Mono", monospace;
position: relative;
padding-right: 20px;
}
.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.online {
color: #00ff88;
display: flex;
align-items: center;
gap: 8px;
text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}
.online-info {
display: flex;
align-items: center;
gap: 8px;
}
.online-dot {
width: 6px;
height: 6px;
background-color: #00ff88;
border-radius: 50%;
display: inline-block;
animation: pulse 2s infinite;
}
@keyframes pulse {
0% {
opacity: 1;
transform: scale(1);
}
50% {
opacity: 0.4;
transform: scale(1.2);
}
100% {
opacity: 1;
transform: scale(1);
}
}
@media (min-width: 600px) {
.dashboard-grid {
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
}
}
@media (min-width: 992px) {
.dashboard-grid {
grid-template-columns: repeat(3, 1fr);
}
.pilot-info {
flex-direction: row;
}
.diag-grid {
grid-template-columns: 1fr 1fr;
}
}