/* ================ CSS VARIABLES ================ */ :root { --square-size: 60px; --gap: 8px; --v-gap: 24px; --warehouse-height: 200px; } /* ================ GLOBAL & LAYOUT ================ */ html, body { height: 100%; margin: 0; padding: 0; background: #f4f4f4; font-family: Arial, sans-serif; } h1 { text-align: center; margin-bottom: 1rem; } /* ================ BINS HEADER & NAV BUTTONS ================ */ .main-header { background-color: #232F3E; display: flex; align-items: center; padding: 0.5rem 2rem; position: fixed; top: 0; left: 0; right: 0; z-index: 1000; } .logo { height: 40px; margin-right: 1rem; } .header-title { color: #fff; font-size: 1.2rem; font-weight: bold; margin-right: auto; } .nav-btn { background-color: #FF9900; color: #111; border: none; border-radius: 5px; padding: 0.5rem 1rem; margin-left: 0.5rem; cursor: pointer; font-weight: bold; } .nav-btn:hover { background-color: #e48f00; } /* ================ PAGE CONTAINER ================ */ /* full-height container under header, using flex for trends page */ .page-container { margin-top: 70px; /* offset header */ display: flex; flex-direction: column; width: 100%; height: calc(100vh - 70px); box-sizing: border-box; background: #fff; padding: 1rem; } /* ================ FORM STYLES ================ */ .form-input { width: 80%; max-width: 400px; margin: 1rem auto; display: block; padding: 1rem; font-size: 1rem; border: 1px solid #ccc; border-radius: 6px; } .big-button { background-color: #28a745; color: white; padding: 0.75rem 1.5rem; border: none; border-radius: 6px; cursor: pointer; font-size: 1rem; margin: 1rem auto; display: block; } .big-button:hover { background-color: #218838; } fieldset { border: 1px solid #ccc; border-radius: 6px; padding: 1rem; margin-bottom: 1.5rem; } legend { font-weight: bold; } /* ================ TRENDS PAGE SPECIFIC ================ */ /* Controls area stays at top */ #trend-controls { flex: 0 0 auto; } /* Chart container fills all remaining height */ .chart-container { flex: 1 1 auto; width: 100%; position: relative; } .chart-container canvas { width: 100% !important; height: 100% !important; } /* ================ HEATMAP STYLES ================= */ /* (unchanged from before) */ .heatmap-wrapper { width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; display: flex; justify-content: flex-start; align-items: center; } .diagram-container { display: flex; flex-direction: column; align-items: center; gap: var(--v-gap); } .dock-row { display: flex; gap: var(--gap); } .dock-square { width: var(--square-size); height: var(--square-size); background: #ddd; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; color: #333; cursor: pointer; user-select: none; } .warehouse { width: calc((var(--square-size) * 83) + (var(--gap) * 82)); height: var(--warehouse-height); background: #ccc; border-radius: 6px; } .tooltip { position: absolute; pointer-events: none; background: rgba(0,0,0,0.75); color: #fff; padding: 8px; border-radius: 4px; font-size: 0.9rem; line-height: 1.2; display: none; z-index: 2000; } /* ================ UTILITY ================= */ .hidden { display: none; }