style: Enhance PathRecorder.css for improved aesthetics and consistency with Minecraft theme

This commit is contained in:
MayaTheShy
2026-02-20 02:55:20 -05:00
parent 2263fbb1de
commit 943cc73163

View File

@@ -1,9 +1,13 @@
/* ============================================
Minecraft-Themed Path Recorder
============================================ */
.path-recorder { .path-recorder {
padding: 1.5rem; padding: 1.5rem;
background: #0f172a; background: #2c2c2c;
border-radius: 0.5rem;
height: 100%; height: 100%;
overflow-y: auto; overflow-y: auto;
font-family: 'Silkscreen', 'Courier New', monospace;
} }
.recorder-header { .recorder-header {
@@ -18,23 +22,23 @@
.recorder-header h2 { .recorder-header h2 {
font-size: 1.5rem; font-size: 1.5rem;
font-weight: 700; font-weight: 700;
color: #f9fafb; color: #ffff55;
margin: 0; margin: 0;
text-shadow: 2px 2px 0 #1a1a1a;
} }
.selected-turtle-badge { .selected-turtle-badge {
padding: 0.5rem 1rem; padding: 0.5rem 1rem;
background: #1e293b; background: #2d6b1a33;
border-radius: 0.5rem; border: 2px solid #55ff55;
color: #10b981; color: #55ff55;
font-weight: 600; font-weight: 600;
font-size: 0.875rem; font-size: 0.875rem;
border: 1px solid #10b981;
} }
.message { .message {
padding: 0.75rem 1rem; padding: 0.75rem 1rem;
border-radius: 0.5rem; border: 2px solid;
margin-bottom: 1rem; margin-bottom: 1rem;
font-size: 0.875rem; font-size: 0.875rem;
font-weight: 600; font-weight: 600;
@@ -42,21 +46,21 @@
} }
.message.success { .message.success {
background: #10b98133; background: #2d6b1a33;
color: #10b981; color: #55ff55;
border: 1px solid #10b981; border-color: #55ff55;
} }
.message.error { .message.error {
background: #ef444433; background: #6b1a1a33;
color: #ef4444; color: #ff5555;
border: 1px solid #ef4444; border-color: #ff5555;
} }
.message.info { .message.info {
background: #3b82f633; background: #1a4a6b33;
color: #3b82f6; color: #55ffff;
border: 1px solid #3b82f6; border-color: #55ffff;
} }
@keyframes slideIn { @keyframes slideIn {
@@ -72,17 +76,19 @@
/* Recording Section */ /* Recording Section */
.recording-section { .recording-section {
background: #1e293b; background: #3b3b3b;
border-radius: 0.5rem; border: 2px solid #1a1a1a;
padding: 1.5rem; padding: 1.5rem;
margin-bottom: 1.5rem; margin-bottom: 1.5rem;
box-shadow: inset 0 -2px 0 #2a2a2a, inset 0 2px 0 #555;
} }
.recording-section h3 { .recording-section h3 {
font-size: 1.125rem; font-size: 1.125rem;
font-weight: 600; font-weight: 600;
color: #f9fafb; color: #e0e0e0;
margin: 0 0 1rem 0; margin: 0 0 1rem 0;
text-shadow: 1px 1px 0 #1a1a1a;
} }
.record-form { .record-form {
@@ -94,36 +100,36 @@
.record-form input, .record-form input,
.record-form textarea { .record-form textarea {
padding: 0.75rem; padding: 0.75rem;
background: #0f172a; background: #1a1a1a;
border: 1px solid #334155; border: 2px solid #4b4b4b;
border-radius: 0.375rem; color: #e0e0e0;
color: #e5e7eb;
font-size: 0.875rem; font-size: 0.875rem;
font-family: inherit; font-family: 'Silkscreen', 'Courier New', monospace;
} }
.record-form input:focus, .record-form input:focus,
.record-form textarea:focus { .record-form textarea:focus {
outline: none; outline: none;
border-color: #3b82f6; border-color: #55ffff;
} }
.record-btn { .record-btn {
padding: 0.875rem 1.5rem; padding: 0.875rem 1.5rem;
background: #ef4444; background: #aa0000;
border: none; border: 2px solid #1a1a1a;
border-radius: 0.5rem;
color: white; color: white;
font-weight: 700; font-weight: 700;
font-size: 1rem; font-size: 1rem;
cursor: pointer; cursor: pointer;
transition: all 0.2s; transition: all 0.1s;
font-family: 'Silkscreen', 'Courier New', monospace;
text-shadow: 1px 1px 0 #1a1a1a;
box-shadow: inset 0 2px 0 #dd3333, inset 0 -2px 0 #770000;
} }
.record-btn:hover:not(:disabled) { .record-btn:hover:not(:disabled) {
background: #dc2626; background: #cc0000;
transform: translateY(-2px); box-shadow: inset 0 2px 0 #ff4444, inset 0 -2px 0 #880000;
box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
} }
.record-btn:disabled { .record-btn:disabled {
@@ -141,7 +147,8 @@
.waypoint-counter { .waypoint-counter {
font-size: 1.5rem; font-size: 1.5rem;
font-weight: 700; font-weight: 700;
color: #ef4444; color: #ff5555;
text-shadow: 1px 1px 0 #1a1a1a;
animation: pulse 2s infinite; animation: pulse 2s infinite;
} }
@@ -157,51 +164,53 @@
.recording-info { .recording-info {
text-align: center; text-align: center;
padding: 1rem; padding: 1rem;
background: #0f172a; background: #2c2c2c;
border-radius: 0.375rem; border: 2px solid #1a1a1a;
width: 100%; width: 100%;
} }
.recording-info p { .recording-info p {
margin: 0.25rem 0; margin: 0.25rem 0;
color: #94a3b8; color: #a0a0a0;
font-size: 0.875rem; font-size: 0.875rem;
} }
.recording-info strong { .recording-info strong {
color: #e5e7eb; color: #e0e0e0;
} }
.stop-btn { .stop-btn {
padding: 0.875rem 2rem; padding: 0.875rem 2rem;
background: #3b82f6; background: #4a8c2a;
border: none; border: 2px solid #1a1a1a;
border-radius: 0.5rem;
color: white; color: white;
font-weight: 700; font-weight: 700;
font-size: 1rem; font-size: 1rem;
cursor: pointer; cursor: pointer;
transition: all 0.2s; transition: all 0.1s;
font-family: 'Silkscreen', 'Courier New', monospace;
text-shadow: 1px 1px 0 #1a1a1a;
box-shadow: inset 0 2px 0 #6ab04c, inset 0 -2px 0 #2d6b1a;
} }
.stop-btn:hover { .stop-btn:hover {
background: #2563eb; background: #5a9c3a;
transform: translateY(-2px); box-shadow: inset 0 2px 0 #7bc05c, inset 0 -2px 0 #3d7b2a;
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
} }
/* Paths Section */ /* Paths Section */
.paths-section h3 { .paths-section h3 {
font-size: 1.125rem; font-size: 1.125rem;
font-weight: 600; font-weight: 600;
color: #f9fafb; color: #55ffff;
margin-bottom: 1rem; margin-bottom: 1rem;
text-shadow: 1px 1px 0 #1a1a1a;
} }
.loading { .loading {
text-align: center; text-align: center;
padding: 2rem; padding: 2rem;
color: #94a3b8; color: #a0a0a0;
font-size: 0.875rem; font-size: 0.875rem;
} }
@@ -212,15 +221,15 @@
} }
.path-card { .path-card {
background: #1e293b; background: #3b3b3b;
border-radius: 0.5rem; border: 2px solid #1a1a1a;
padding: 1.5rem; padding: 1.5rem;
transition: all 0.2s; transition: all 0.1s;
box-shadow: inset 0 -2px 0 #2a2a2a, inset 0 2px 0 #555;
} }
.path-card:hover { .path-card:hover {
background: #334155; background: #4b4b4b;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
} }
.path-card-header { .path-card-header {
@@ -230,13 +239,13 @@
.path-info h4 { .path-info h4 {
font-size: 1rem; font-size: 1rem;
font-weight: 600; font-weight: 600;
color: #e5e7eb; color: #e0e0e0;
margin: 0 0 0.5rem 0; margin: 0 0 0.5rem 0;
} }
.path-description { .path-description {
font-size: 0.875rem; font-size: 0.875rem;
color: #94a3b8; color: #a0a0a0;
margin: 0.5rem 0; margin: 0.5rem 0;
font-style: italic; font-style: italic;
} }
@@ -246,7 +255,7 @@
gap: 1rem; gap: 1rem;
flex-wrap: wrap; flex-wrap: wrap;
font-size: 0.75rem; font-size: 0.75rem;
color: #64748b; color: #7b7b7b;
margin-top: 0.75rem; margin-top: 0.75rem;
} }
@@ -263,44 +272,45 @@
.path-actions button { .path-actions button {
padding: 0.5rem 1rem; padding: 0.5rem 1rem;
border: none; border: 2px solid #1a1a1a;
border-radius: 0.375rem;
font-size: 0.875rem; font-size: 0.875rem;
font-weight: 600; font-weight: 700;
cursor: pointer; cursor: pointer;
transition: all 0.2s; transition: all 0.1s;
font-family: 'Silkscreen', 'Courier New', monospace;
text-shadow: 1px 1px 0 #1a1a1a;
} }
.view-btn { .view-btn {
background: #3b82f6; background: #345ec3;
color: white; color: white;
box-shadow: inset 0 2px 0 #5577dd, inset 0 -2px 0 #223399;
} }
.view-btn:hover { .view-btn:hover {
background: #2563eb; background: #4a6ed3;
transform: translateY(-2px);
} }
.play-btn { .play-btn {
background: #10b981; background: #4a8c2a;
color: white; color: white;
box-shadow: inset 0 2px 0 #6ab04c, inset 0 -2px 0 #2d6b1a;
} }
.play-btn:hover { .play-btn:hover {
background: #059669; background: #5a9c3a;
transform: translateY(-2px);
} }
.delete-btn { .delete-btn {
background: #ef4444; background: #aa0000;
color: white; color: white;
padding: 0.5rem; padding: 0.5rem;
margin-left: auto; margin-left: auto;
box-shadow: inset 0 2px 0 #dd3333, inset 0 -2px 0 #770000;
} }
.delete-btn:hover { .delete-btn:hover {
background: #dc2626; background: #cc0000;
transform: scale(1.1);
} }
/* Empty State */ /* Empty State */
@@ -318,13 +328,13 @@
.empty-title { .empty-title {
font-size: 1.25rem; font-size: 1.25rem;
font-weight: 600; font-weight: 600;
color: #e5e7eb; color: #e0e0e0;
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
} }
.empty-text { .empty-text {
font-size: 0.875rem; font-size: 0.875rem;
color: #94a3b8; color: #a0a0a0;
} }
/* Path Details Modal */ /* Path Details Modal */
@@ -334,7 +344,7 @@
left: 0; left: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
background: rgba(0, 0, 0, 0.8); background: rgba(0, 0, 0, 0.85);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@@ -353,13 +363,14 @@
} }
.modal-content { .modal-content {
background: #1e293b; background: #3b3b3b;
border-radius: 0.75rem; border: 3px solid #1a1a1a;
max-width: 800px; max-width: 800px;
width: 100%; width: 100%;
max-height: 90vh; max-height: 90vh;
overflow-y: auto; overflow-y: auto;
animation: slideUp 0.3s; animation: slideUp 0.3s;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 -2px 0 #2a2a2a, inset 0 2px 0 #555;
} }
@keyframes slideUp { @keyframes slideUp {
@@ -378,30 +389,34 @@
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
padding: 1.5rem; padding: 1.5rem;
border-bottom: 1px solid #334155; border-bottom: 2px solid #4b4b4b;
background: #6b4e28;
box-shadow: inset 0 2px 0 #8b6d3c, inset 0 -2px 0 #4a3520;
} }
.modal-header h3 { .modal-header h3 {
font-size: 1.25rem; font-size: 1.25rem;
font-weight: 700; font-weight: 700;
color: #f9fafb; color: #ffff55;
margin: 0; margin: 0;
text-shadow: 2px 2px 0 #1a1a1a;
} }
.close-btn { .close-btn {
padding: 0.5rem 0.75rem; padding: 0.5rem 0.75rem;
background: transparent; background: #aa0000;
border: none; border: 2px solid #1a1a1a;
color: #94a3b8; color: white;
font-size: 1.5rem; font-size: 1.25rem;
cursor: pointer; cursor: pointer;
transition: all 0.2s; transition: all 0.1s;
line-height: 1; line-height: 1;
font-weight: 700;
box-shadow: inset 0 2px 0 #dd3333, inset 0 -2px 0 #770000;
} }
.close-btn:hover { .close-btn:hover {
color: #e5e7eb; background: #cc0000;
transform: scale(1.1);
} }
.modal-body { .modal-body {
@@ -409,7 +424,7 @@
} }
.modal-description { .modal-description {
color: #94a3b8; color: #a0a0a0;
font-style: italic; font-style: italic;
margin-bottom: 1.5rem; margin-bottom: 1.5rem;
} }
@@ -418,8 +433,9 @@
.path-visualization h4 { .path-visualization h4 {
font-size: 1rem; font-size: 1rem;
font-weight: 600; font-weight: 600;
color: #f9fafb; color: #ffaa00;
margin: 0 0 1rem 0; margin: 0 0 1rem 0;
text-shadow: 1px 1px 0 #1a1a1a;
} }
.waypoints-grid { .waypoints-grid {
@@ -434,8 +450,8 @@
align-items: center; align-items: center;
gap: 0.5rem; gap: 0.5rem;
padding: 0.5rem; padding: 0.5rem;
background: #0f172a; background: #2c2c2c;
border-radius: 0.375rem; border: 2px solid #1a1a1a;
font-size: 0.75rem; font-size: 0.75rem;
} }
@@ -445,21 +461,21 @@
justify-content: center; justify-content: center;
width: 1.5rem; width: 1.5rem;
height: 1.5rem; height: 1.5rem;
background: #3b82f6; background: #4a8c2a;
color: white; color: white;
border-radius: 50%;
font-weight: 700; font-weight: 700;
font-size: 0.7rem; font-size: 0.7rem;
border: 2px solid #1a1a1a;
} }
.waypoint-coords { .waypoint-coords {
color: #e5e7eb; color: #e0e0e0;
font-family: 'Courier New', monospace; font-family: 'Silkscreen', 'Courier New', monospace;
} }
.waypoint-action { .waypoint-action {
margin-left: auto; margin-left: auto;
color: #10b981; color: #55ff55;
font-size: 0.7rem; font-size: 0.7rem;
} }
@@ -471,25 +487,26 @@
.stat { .stat {
padding: 1rem; padding: 1rem;
background: #0f172a; background: #2c2c2c;
border-radius: 0.375rem; border: 2px solid #1a1a1a;
} }
.stat-label { .stat .stat-label {
display: block; display: block;
font-size: 0.75rem; font-size: 0.75rem;
color: #94a3b8; color: #a0a0a0;
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 0.05em; letter-spacing: 0.05em;
} }
.stat-value { .stat .stat-value {
display: block; display: block;
font-size: 1rem; font-size: 1rem;
font-weight: 600; font-weight: 600;
color: #3b82f6; color: #55ffff;
font-family: 'Courier New', monospace; font-family: 'Silkscreen', 'Courier New', monospace;
text-shadow: 1px 1px 0 #1a1a1a;
} }
/* Mobile Responsive */ /* Mobile Responsive */