Heat-Tracker/public/styles.css

199 lines
4.2 KiB
CSS

/* styles.css */
/* ─── Global & Layout ───────────────────────────────────────────────────────── */
/* Fixed header */
.main-header {
background-color: #232F3E;
display: flex;
align-items: center;
padding: 0.5rem 1rem;
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;
}
/* Main page container (offset for fixed header) */
.page-container {
margin-top: 70px; /* height of header */
width: 95%;
max-width: 1200px;
margin-left: auto;
margin-right: auto;
padding: 1rem;
background-color: #fff;
border-radius: 6px;
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
/* Utility */
.hidden {
display: none !important;
}
/* ─── Forms & Buttons ───────────────────────────────────────────────────────── */
/* Text inputs and textareas */
.form-input,
.form-textarea {
width: 90%;
margin: 0.5rem auto;
display: block;
padding: 0.75rem;
border: 1px solid #ccc;
border-radius: 6px;
font-size: 1rem;
box-sizing: border-box;
}
/* Large submit button */
.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;
}
/* ─── Heat Map Page ────────────────────────────────────────────────────────── */
/* Container for the heat map (scrollable & zoomable) */
#heatmap-container {
margin-top: 70px; /* offset under header */
width: 95%;
height: calc(100vh - 70px);
margin-left: auto;
margin-right: auto;
position: relative;
overflow: auto;
background-color: #f9f9f9;
border-radius: 6px;
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
/* Dock door squares */
.dock-door {
width: 30px;
height: 30px;
background-color: #ccc;
border: 1px solid #999;
box-sizing: border-box;
position: absolute;
cursor: pointer;
}
.dock-door:hover {
outline: 2px solid #FF9900;
z-index: 10;
}
/* Additional area rectangles */
.area-rect {
position: absolute;
background-color: rgba(200,200,200,0.3);
border: 1px solid #999;
box-sizing: border-box;
}
.area-rect label {
position: absolute;
top: 4px; left: 4px;
font-size: 0.85rem;
font-weight: bold;
}
/* Floor selector radios */
.floor-selector {
position: absolute;
top: 10px; right: 10px;
background: rgba(255,255,255,0.9);
padding: 0.5rem;
border-radius: 6px;
box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
/* ─── Trends Page ──────────────────────────────────────────────────────────── */
/* Chart container */
#chart-container {
height: 50vh;
width: 100%;
margin-bottom: 2rem;
}
/* Spreadsheet-style table wrapper */
#trends-table-container {
max-height: 50vh;
overflow: auto;
border: 1px solid #ddd;
margin-bottom: 1rem;
}
/* Table styling */
#trends-table {
width: 100%;
border-collapse: collapse;
table-layout: fixed;
}
#trends-table th,
#trends-table td {
padding: 8px;
text-align: center;
border-bottom: 1px solid #ddd;
font-size: 0.95rem;
}
#trends-table thead th {
position: sticky;
top: 0;
background: #f2f2f2;
border-bottom: 2px solid #ccc;
cursor: pointer;
user-select: none;
}
/* Zebra striping */
#trends-table tbody tr:nth-child(even) {
background: #fafafa;
}
/* Sort arrow indicators */
.sortable::after {
content: '▲▼';
font-size: 0.6em;
margin-left: 4px;
color: #888;
}
.sortable.asc::after {
content: '▲';
}
.sortable.desc::after {
content: '▼';
}