feat: Revamp Control Panel styling for improved aesthetics and usability

This commit is contained in:
MayaTheShy
2026-02-16 02:11:21 -05:00
parent 81bfdd75d5
commit bd96333d22

View File

@@ -2,8 +2,9 @@
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
background: #0f172a; background: #ffffff;
color: #e2e8f0; color: #1f2937;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
} }
.panel-header { .panel-header {
@@ -11,14 +12,16 @@
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
padding: 1rem 1.5rem; padding: 1rem 1.5rem;
background: #1e293b; background: #ffffff;
border-bottom: 2px solid #334155; border-bottom: 1px solid #e5e7eb;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
} }
.panel-header h1 { .panel-header h1 {
font-size: 1.5rem; font-size: 1.25rem;
font-weight: 700; font-weight: 600;
color: #f1f5f9; color: #111827;
letter-spacing: -0.025em;
} }
.connection-status { .connection-status {
@@ -69,58 +72,54 @@
display: flex; display: flex;
flex: 1; flex: 1;
overflow: hidden; overflow: hidden;
flex-direction: column;
} }
.turtle-list { .turtle-list {
width: 380px; width: 100%;
border-right: 1px solid #334155; border-bottom: 1px solid #e5e7eb;
display: flex; display: flex;
flex-direction: column; flex-direction: row;
background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%); background: #f9fafb;
overflow-x: auto;
padding: 0.75rem;
gap: 0.75rem;
flex-shrink: 0;
} }
.turtle-list h2 { .turtle-list h2 {
padding: 1.25rem 1.5rem; display: none;
font-size: 1rem;
font-weight: 700;
letter-spacing: 0.05em;
text-transform: uppercase;
border-bottom: 2px solid #334155;
color: #94a3b8;
background: #1e293b;
} }
.turtle-cards { .turtle-cards {
flex: 1;
overflow-y: auto;
padding: 1rem;
gap: 0.75rem;
display: flex; display: flex;
flex-direction: column; flex-direction: row;
gap: 0.75rem;
overflow-x: auto;
} }
.turtle-cards::-webkit-scrollbar { .turtle-cards::-webkit-scrollbar {
width: 8px; height: 6px;
} }
.turtle-cards::-webkit-scrollbar-track { .turtle-cards::-webkit-scrollbar-track {
background: #0f172a; background: #f3f4f6;
border-radius: 4px; border-radius: 3px;
} }
.turtle-cards::-webkit-scrollbar-thumb { .turtle-cards::-webkit-scrollbar-thumb {
background: #334155; background: #d1d5db;
border-radius: 4px; border-radius: 3px;
} }
.turtle-cards::-webkit-scrollbar-thumb:hover { .turtle-cards::-webkit-scrollbar-thumb:hover {
background: #475569; background: #9ca3af;
} }
.empty-state { .empty-state {
padding: 3rem 2rem; padding: 3rem 2rem;
text-align: center; text-align: center;
color: #64748b; color: #9ca3af;
} }
.empty-state::before { .empty-state::before {
@@ -134,74 +133,67 @@
.empty-state .hint { .empty-state .hint {
margin-top: 1rem; margin-top: 1rem;
font-size: 0.875rem; font-size: 0.875rem;
color: #475569; color: #6b7280;
font-style: italic; font-style: italic;
} }
.turtle-card { .turtle-card {
background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); background: #ffffff;
border: 1px solid #334155; border: 2px solid #e5e7eb;
border-radius: 0.75rem; border-radius: 0.5rem;
padding: 1.25rem; padding: 0.875rem;
cursor: pointer; cursor: pointer;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); transition: all 0.2s ease;
position: relative; position: relative;
overflow: hidden; min-width: 200px;
flex-shrink: 0;
} }
.turtle-card::before { .turtle-card::before {
content: ''; display: none;
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3px;
background: linear-gradient(90deg, #3b82f6, #60a5fa);
transform: scaleX(0);
transition: transform 0.3s ease;
} }
.turtle-card:hover { .turtle-card:hover {
border-color: #60a5fa; border-color: #3b82f6;
transform: translateY(-2px); transform: translateY(-2px);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 0 0 20px rgba(96, 165, 250, 0.1); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
} }
.turtle-card:hover::before { .turtle-card:hover::before {
transform: scaleX(1); display: none;
} }
.turtle-card.selected { .turtle-card.selected {
border-color: #60a5fa; border-color: #3b82f6;
background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%); background: #eff6ff;
box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2), 0 8px 24px rgba(96, 165, 250, 0.3); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
} }
.turtle-card.selected::before { .turtle-card.selected::before {
transform: scaleX(1); display: none;
} }
.turtle-header { .turtle-header {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
margin-bottom: 1rem; margin-bottom: 0.625rem;
padding-bottom: 0.75rem; padding-bottom: 0.625rem;
border-bottom: 1px solid #334155; border-bottom: 1px solid #e5e7eb;
} }
.turtle-header h3 { .turtle-header h3 {
font-size: 1.125rem; font-size: 0.875rem;
font-weight: 700; font-weight: 700;
color: #f1f5f9; color: #111827;
display: flex; display: flex;
align-items: center; align-items: center;
gap: 0.5rem; gap: 0.375rem;
} }
.turtle-header h3::before { .turtle-header h3::before {
content: '🐢'; content: '🐢';
font-size: 1.25rem; font-size: 1rem;
} }
.mode-badge { .mode-badge {
@@ -216,58 +208,58 @@
.turtle-stats { .turtle-stats {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 0.625rem; gap: 0.375rem;
} }
.turtle-stats .stat { .turtle-stats .stat {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
font-size: 0.875rem; font-size: 0.75rem;
padding: 0.5rem; padding: 0.375rem;
background: rgba(15, 23, 42, 0.5); background: #f9fafb;
border-radius: 0.375rem; border-radius: 0.25rem;
border: 1px solid rgba(51, 65, 85, 0.5); border: 1px solid #e5e7eb;
} }
.turtle-stats .label { .turtle-stats .label {
color: #94a3b8; color: #6b7280;
font-weight: 500; font-weight: 500;
display: flex; display: flex;
align-items: center; align-items: center;
gap: 0.5rem; gap: 0.25rem;
} }
.turtle-stats .value { .turtle-stats .value {
color: #f1f5f9; color: #111827;
font-weight: 600; font-weight: 600;
font-family: 'Courier New', monospace; font-family: 'Courier New', monospace;
font-size: 0.9rem; font-size: 0.75rem;
} }
.turtle-details { .turtle-details {
flex: 1; flex: 1;
padding: 1.5rem; padding: 1.5rem;
overflow-y: auto; overflow-y: auto;
background: linear-gradient(180deg, #0f172a 0%, #020617 100%); background: #ffffff;
} }
.turtle-details::-webkit-scrollbar { .turtle-details::-webkit-scrollbar {
width: 10px; width: 8px;
} }
.turtle-details::-webkit-scrollbar-track { .turtle-details::-webkit-scrollbar-track {
background: #0f172a; background: #f3f4f6;
border-radius: 5px; border-radius: 4px;
} }
.turtle-details::-webkit-scrollbar-thumb { .turtle-details::-webkit-scrollbar-thumb {
background: #334155; background: #d1d5db;
border-radius: 5px; border-radius: 4px;
} }
.turtle-details::-webkit-scrollbar-thumb:hover { .turtle-details::-webkit-scrollbar-thumb:hover {
background: #475569; background: #9ca3af;
} }
.turtle-details.empty { .turtle-details.empty {
@@ -275,16 +267,25 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
flex-direction: column; flex-direction: column;
color: #64748b; color: #9ca3af;
font-size: 1.25rem; font-size: 1rem;
gap: 1rem; gap: 0.75rem;
} }
.turtle-details.empty::before { .turtle-details.empty::before {
content: '👈'; content: '☝️';
font-size: 4rem; font-size: 3rem;
opacity: 0.5; opacity: 0.5;
animation: bounce 2s infinite; animation: bounce-up 2s infinite;
}
@keyframes bounce-up {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-10px);
}
} }
@keyframes bounce { @keyframes bounce {
@@ -297,41 +298,41 @@
} }
.turtle-details h2 { .turtle-details h2 {
font-size: 1.5rem; font-size: 1.25rem;
margin-bottom: 1.25rem; margin-bottom: 1.5rem;
color: #f1f5f9; color: #111827;
font-weight: 700; font-weight: 700;
display: flex; display: flex;
align-items: center; align-items: center;
gap: 0.75rem; gap: 0.5rem;
padding-bottom: 0.75rem; padding-bottom: 0.75rem;
border-bottom: 2px solid #334155; border-bottom: 2px solid #e5e7eb;
} }
.turtle-details h2::before { .turtle-details h2::before {
content: '🐢'; content: '🐢';
font-size: 1.5rem; font-size: 1.25rem;
} }
.detail-section { .detail-section {
margin-bottom: 1.25rem; margin-bottom: 1.25rem;
padding: 1.25rem; padding: 1rem;
background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); background: #ffffff;
border-radius: 0.75rem; border-radius: 0.5rem;
border: 1px solid #334155; border: 1px solid #e5e7eb;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
transition: all 0.3s ease; transition: all 0.2s ease;
} }
.detail-section:hover { .detail-section:hover {
border-color: #475569; border-color: #d1d5db;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
} }
.detail-section h3 { .detail-section h3 {
font-size: 1.125rem; font-size: 1rem;
margin-bottom: 1rem; margin-bottom: 1rem;
color: #60a5fa; color: #3b82f6;
font-weight: 700; font-weight: 700;
display: flex; display: flex;
align-items: center; align-items: center;
@@ -339,9 +340,10 @@
} }
.detail-section h4 { .detail-section h4 {
font-size: 1rem; font-size: 0.875rem;
margin: 1.5rem 0 1rem; margin: 1rem 0 0.75rem;
color: #cbd5e1; color: #4b5563;
font-weight: 600;
} }
.status-grid { .status-grid {
@@ -355,19 +357,19 @@
flex-direction: column; flex-direction: column;
gap: 0.375rem; gap: 0.375rem;
padding: 0.75rem; padding: 0.75rem;
background: rgba(15, 23, 42, 0.6); background: #f9fafb;
border-radius: 0.5rem; border-radius: 0.375rem;
border: 1px solid rgba(51, 65, 85, 0.5); border: 1px solid #e5e7eb;
transition: all 0.2s ease; transition: all 0.2s ease;
} }
.status-item:hover { .status-item:hover {
background: rgba(30, 41, 59, 0.6); background: #f3f4f6;
border-color: #60a5fa; border-color: #3b82f6;
} }
.status-item .label { .status-item .label {
color: #94a3b8; color: #6b7280;
font-size: 0.75rem; font-size: 0.75rem;
font-weight: 600; font-weight: 600;
text-transform: uppercase; text-transform: uppercase;
@@ -375,7 +377,7 @@
} }
.status-item .value { .status-item .value {
color: #f1f5f9; color: #111827;
font-weight: 700; font-weight: 700;
font-family: 'Courier New', monospace; font-family: 'Courier New', monospace;
font-size: 0.95rem; font-size: 0.95rem;
@@ -389,9 +391,9 @@
} }
.command-btn { .command-btn {
padding: 0.625rem 0.75rem; padding: 0.75rem;
border: none; border: none;
border-radius: 0.375rem; border-radius: 0.5rem;
font-size: 0.8125rem; font-size: 0.8125rem;
font-weight: 600; font-weight: 600;
cursor: pointer; cursor: pointer;
@@ -402,11 +404,12 @@
justify-content: center; justify-content: center;
gap: 0.375rem; gap: 0.375rem;
white-space: nowrap; white-space: nowrap;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
} }
.command-btn:hover { .command-btn:hover {
transform: translateY(-2px); transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
} }
.command-btn:active { .command-btn:active {
@@ -450,15 +453,16 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
gap: 0.375rem; gap: 0.5rem;
padding: 0.75rem; padding: 1rem;
background: #1e293b; background: #f9fafb;
border-radius: 0.5rem; border-radius: 0.5rem;
border: 1px solid #e5e7eb;
} }
.movement-row { .movement-row {
display: flex; display: flex;
gap: 0.375rem; gap: 0.5rem;
justify-content: center; justify-content: center;
} }
@@ -467,24 +471,25 @@
} }
.movement-controls button { .movement-controls button {
width: 2.75rem; width: 3rem;
height: 2.75rem; height: 3rem;
border: 2px solid #334155; border: 2px solid #e5e7eb;
background: #0f172a; background: #ffffff;
color: #60a5fa; color: #3b82f6;
border-radius: 0.375rem; border-radius: 0.5rem;
font-size: 1.25rem; font-size: 1.25rem;
cursor: pointer; cursor: pointer;
transition: all 0.2s; transition: all 0.2s;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
} }
.movement-controls button:hover { .movement-controls button:hover {
background: #1e293b; background: #eff6ff;
border-color: #60a5fa; border-color: #3b82f6;
box-shadow: 0 0 15px rgba(96, 165, 250, 0.3); box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
transform: scale(1.05); transform: scale(1.05);
} }
@@ -500,11 +505,11 @@
} }
.action-btn { .action-btn {
padding: 0.625rem 0.75rem; padding: 0.75rem;
border: 2px solid #334155; border: 2px solid #e5e7eb;
background: #0f172a; background: #ffffff;
color: #60a5fa; color: #3b82f6;
border-radius: 0.375rem; border-radius: 0.5rem;
font-size: 0.8125rem; font-size: 0.8125rem;
font-weight: 600; font-weight: 600;
cursor: pointer; cursor: pointer;
@@ -514,12 +519,13 @@
justify-content: center; justify-content: center;
gap: 0.375rem; gap: 0.375rem;
white-space: nowrap; white-space: nowrap;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
} }
.action-btn:hover { .action-btn:hover {
border-color: #60a5fa; border-color: #3b82f6;
transform: translateY(-2px); transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(96, 165, 250, 0.2); box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
} }
.action-btn.dig { .action-btn.dig {
@@ -571,14 +577,15 @@
align-items: center; align-items: center;
gap: 0.625rem; gap: 0.625rem;
padding: 0.625rem; padding: 0.625rem;
background: #1e293b; background: #f9fafb;
border: 1px solid #334155; border: 1px solid #e5e7eb;
border-radius: 0.375rem; border-radius: 0.375rem;
transition: all 0.2s; transition: all 0.2s;
} }
.inventory-item:hover { .inventory-item:hover {
border-color: #60a5fa; border-color: #3b82f6;
background: #eff6ff;
transform: translateX(4px); transform: translateX(4px);
} }
@@ -589,13 +596,13 @@
.item-name { .item-name {
flex: 1; flex: 1;
color: #e2e8f0; color: #111827;
font-size: 0.8125rem; font-size: 0.8125rem;
text-transform: capitalize; text-transform: capitalize;
} }
.item-count { .item-count {
color: #94a3b8; color: #6b7280;
font-weight: 600; font-weight: 600;
font-family: 'Courier New', monospace; font-family: 'Courier New', monospace;
font-size: 0.8125rem; font-size: 0.8125rem;