- Removed unnecessary dependencies (fs, path - built-in modules) - Organized debug files into /debug folder - Reduced excessive console logging for cleaner output - Fixed README formatting issues - Added comprehensive .gitignore - Removed redundant backup files (game.js.new) - Fixed duplicate code patterns in analytics - Created CLEANUP_SUMMARY.md documentation - Regenerated clean package-lock.json No breaking changes - all functionality preserved
414 lines
7.7 KiB
CSS
414 lines
7.7 KiB
CSS
/* Clean Tablet Menu System - Starting Fresh */
|
|
|
|
/* Hide original navigation */
|
|
#nav {
|
|
display: none !important;
|
|
}
|
|
|
|
/* Hamburger Menu Toggle - Position at Top Right */
|
|
.menu-toggle {
|
|
position: fixed;
|
|
top: 20px;
|
|
right: 20px;
|
|
z-index: 1001;
|
|
background: var(--primary);
|
|
color: white;
|
|
border: none;
|
|
width: 50px;
|
|
height: 50px;
|
|
border-radius: 8px;
|
|
font-size: 1.5rem;
|
|
cursor: pointer;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
|
|
transition: all 0.3s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.menu-toggle:hover {
|
|
background: var(--primary-dark);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.menu-toggle.active {
|
|
background: var(--error);
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
/* Popup Menu Container */
|
|
.menu-popup {
|
|
position: fixed;
|
|
width: 80vw;
|
|
max-width: 1000px;
|
|
max-height: 90vh;
|
|
background: var(--bg-primary);
|
|
border: 2px solid var(--border);
|
|
border-radius: 12px;
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
|
|
z-index: 1000;
|
|
overflow: hidden;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.menu-popup.hidden {
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
/* Popup Header */
|
|
.popup-header {
|
|
background: var(--primary);
|
|
color: white;
|
|
padding: 1rem 1.5rem;
|
|
cursor: move;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
user-select: none;
|
|
}
|
|
|
|
.popup-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-weight: 600;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.popup-controls {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.minimize-btn, .close-btn {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
border: none;
|
|
color: white;
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1.2rem;
|
|
font-weight: bold;
|
|
transition: background 0.2s ease;
|
|
}
|
|
|
|
.minimize-btn:hover, .close-btn:hover {
|
|
background: rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
/* Popup Content */
|
|
.popup-content {
|
|
padding: 1.5rem;
|
|
max-height: 80vh;
|
|
overflow-y: auto;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* Admin Grid - Stacked Single Column Layout */
|
|
.admin-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 1.5rem;
|
|
width: 100%;
|
|
}
|
|
|
|
/* Gray Cards/Boxes */
|
|
.card {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
padding: 2rem;
|
|
box-shadow: var(--shadow);
|
|
min-height: 300px;
|
|
}
|
|
|
|
.card h4 {
|
|
margin: 0 0 1rem 0;
|
|
font-size: 1.2rem;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* Admin Tabs */
|
|
.adminTab {
|
|
padding: 1rem;
|
|
width: 100%;
|
|
}
|
|
|
|
.adminTab.hidden {
|
|
display: none;
|
|
}
|
|
|
|
/* Form Elements */
|
|
.form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.form-group input,
|
|
.form-group select,
|
|
.form-group textarea {
|
|
padding: 0.75rem;
|
|
border: 2px solid var(--border);
|
|
border-radius: 8px;
|
|
font-size: 1rem;
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* Buttons */
|
|
button {
|
|
padding: 0.75rem 1.5rem;
|
|
margin: 0.5rem;
|
|
background: var(--primary);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-size: 1rem;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
button:hover {
|
|
background: var(--primary-dark);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.btn-success {
|
|
background: var(--success) !important;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: var(--secondary) !important;
|
|
color: var(--text-primary) !important;
|
|
}
|
|
|
|
.btn-error {
|
|
background: var(--error) !important;
|
|
}
|
|
|
|
/* Responsive Design */
|
|
@media (max-width: 768px) {
|
|
.admin-grid {
|
|
grid-template-columns: 1fr;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.menu-popup {
|
|
width: 95vw;
|
|
}
|
|
|
|
.card {
|
|
padding: 1.5rem;
|
|
min-height: 200px;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 769px) and (max-width: 1024px) {
|
|
.admin-grid {
|
|
grid-template-columns: 1fr 1fr;
|
|
}
|
|
}
|
|
|
|
/* Admin Dashboard Stats */
|
|
.overview-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 1rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.stat-card {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
padding: 1.5rem;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.stat-icon {
|
|
font-size: 2rem;
|
|
width: 50px;
|
|
height: 50px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--primary);
|
|
color: white;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.stat-content {
|
|
flex: 1;
|
|
}
|
|
|
|
.stat-number {
|
|
font-size: 1.5rem;
|
|
font-weight: bold;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 0.9rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* Student Dashboard */
|
|
.quick-actions-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 1rem;
|
|
margin: 1rem 0;
|
|
}
|
|
|
|
.instruction-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 1rem;
|
|
}
|
|
|
|
/* Stack navigation buttons vertically */
|
|
.nav-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
width: 100%;
|
|
}
|
|
|
|
.nav-list-btn {
|
|
width: 100%;
|
|
text-align: left;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
/* Draggable Cards Styles */
|
|
.card.dragging {
|
|
transition: none !important;
|
|
user-select: none;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.card.resizing {
|
|
transition: none !important;
|
|
}
|
|
|
|
.card-header {
|
|
position: relative;
|
|
}
|
|
|
|
.card-header:hover .drag-indicator {
|
|
opacity: 1 !important;
|
|
}
|
|
|
|
.resize-handle {
|
|
opacity: 0;
|
|
transition: opacity 0.2s ease;
|
|
}
|
|
|
|
/* Global drag mode styles - works on all pages */
|
|
.global-drag-mode .resize-handle {
|
|
opacity: 0.7 !important;
|
|
}
|
|
|
|
.global-drag-mode .resize-handle:hover {
|
|
opacity: 1 !important;
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.global-drag-mode .card-header {
|
|
cursor: move !important;
|
|
opacity: 1 !important;
|
|
}
|
|
|
|
body:not(.global-drag-mode) .card-header {
|
|
cursor: default;
|
|
opacity: 0.3;
|
|
}
|
|
|
|
.global-drag-mode .card-header:hover {
|
|
background: color-mix(in srgb, var(--primary) 80%, white 20%) !important;
|
|
}
|
|
|
|
.global-drag-mode .card {
|
|
transition: box-shadow 0.2s ease, transform 0.2s ease;
|
|
}
|
|
|
|
.global-drag-mode .card:hover {
|
|
box-shadow: 0 4px 16px rgba(0,0,0,0.1) !important;
|
|
}
|
|
|
|
/* Global card controls */
|
|
.global-card-controls {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
}
|
|
|
|
.global-card-controls .btn {
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.global-card-controls .btn:hover {
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
/* Legacy admin-grid support */
|
|
.admin-grid.drag-mode .resize-handle {
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.admin-grid.drag-mode .resize-handle:hover {
|
|
opacity: 1 !important;
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.admin-grid.drag-mode .card-header {
|
|
cursor: move;
|
|
opacity: 1 !important;
|
|
}
|
|
|
|
.admin-grid:not(.drag-mode) .card-header {
|
|
cursor: default;
|
|
opacity: 0.3;
|
|
}
|
|
|
|
.admin-grid.drag-mode .card-header:hover {
|
|
background: color-mix(in srgb, var(--primary) 80%, white 20%);
|
|
}
|
|
|
|
/* Admin Grid Modifications for Drag & Drop */
|
|
.admin-grid.drag-mode {
|
|
/* Remove grid layout when in drag mode */
|
|
display: block !important;
|
|
position: relative;
|
|
min-height: 600px;
|
|
}
|
|
|
|
.admin-grid.drag-mode .card {
|
|
position: absolute;
|
|
transition: box-shadow 0.2s ease, transform 0.2s ease;
|
|
}
|
|
|
|
.admin-grid.drag-mode .card:hover {
|
|
box-shadow: 0 4px 16px rgba(0,0,0,0.1);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
/* Card Controls */
|
|
.card-controls {
|
|
background: rgba(255,255,255,0.95);
|
|
backdrop-filter: blur(10px);
|
|
border-radius: 8px;
|
|
padding: 0.5rem;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
|
}
|