spotnotes.app/static/assets/css/styles.css

340 lines
6.5 KiB
CSS
Raw Normal View History

2026-05-12 23:58:18 +00:00
/* Reset and Base Styles */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body, html {
height: 100%;
width: 100%;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
overflow: hidden; /* Prevent scrollbars, map handles panning */
}
/* Map Container */
#map {
height: 100%;
width: 100%;
position: absolute;
top: 0;
left: 0;
z-index: 1;
}
/* Map Crosshair */
#map-crosshair {
position: absolute;
top: 50%;
left: 50%;
width: 20px;
height: 20px;
transform: translate(-50%, -50%);
pointer-events: none;
z-index: 900;
}
#map-crosshair::before, #map-crosshair::after {
content: '';
position: absolute;
background: rgba(0,0,0,0.6);
}
#map-crosshair::before { top: 9px; left: 0; width: 20px; height: 2px; }
#map-crosshair::after { top: 0; left: 9px; width: 2px; height: 20px; }
/* Top Navigation Bar */
.navbar {
position: relative;
top: 0;
left: 0;
width: 100%;
height: 40px;
background-color: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(5px);
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 20px;
z-index: 1000; /* Above map */
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.brand {
font-weight: bold;
font-size: 1.2rem;
color: #333;
text-decoration: none;
}
.nav-links a {
text-decoration: none;
color: #555;
margin-left: 20px;
font-size: 0.9rem;
transition: color 0.2s;
}
.nav-links a:hover {
color: #000;
}
/* Search Bar in Navbar */
.nav-search {
flex: 1;
margin: 0 20px;
display: flex;
max-width: 400px;
}
.nav-search input {
width: 100%;
padding: 5px 10px;
border: 1px solid #ccc;
border-radius: 4px 0 0 4px;
outline: none;
}
.nav-search button {
padding: 5px 10px;
border: 1px solid #ccc;
border-left: none;
background: #f8f9fa;
border-radius: 0 4px 4px 0;
cursor: pointer;
}
.nav-search button:hover {
background: #e2e6ea;
}
/* Right Collapsible Sidebar */
.sidebar {
position: absolute;
top: 60px; /* Below navbar */
right: 0;
bottom: 0;
width: 300px;
background-color: white;
z-index: 1000;
box-shadow: -2px 0 5px rgba(0,0,0,0.1);
transition: transform 0.3s ease-in-out;
display: flex;
flex-direction: column;
}
.sidebar.collapsed {
transform: translateX(300px);
}
/* Toggle Button attached to sidebar */
.sidebar-toggle {
position: absolute;
left: -40px;
top: 10px;
width: 40px;
height: 40px;
background-color: white;
border: none;
border-radius: 5px 0 0 5px;
box-shadow: -2px 0 5px rgba(0,0,0,0.1);
cursor: pointer;
font-weight: bold;
color: #555;
}
.sidebar-content {
padding: 20px;
overflow-y: auto;
flex: 1;
}
.sidebar-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.btn-new-pad {
background-color: #007bff;
color: white;
border: none;
width: 30px;
height: 30px;
border-radius: 50%;
cursor: pointer;
font-size: 1.2rem;
line-height: 1;
}
/* Center Location Button */
.btn-center-location {
width: 100%;
padding: 10px;
margin-bottom: 15px;
background-color: #17a2b8;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: bold;
}
.btn-center-location:hover { background-color: #138496; }
/* Add Note Button (Themed) */
.btn-add-note {
background-color: #28a745;
color: white;
border: none;
padding: 5px 10px;
border-radius: 4px;
font-size: 0.8rem;
cursor: pointer;
}
.btn-add-note:hover { background-color: #218838; }
/* --- Auth & Content Page Styles --- */
/* Use this class on body for login/register/about pages */
body.page-body {
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
background: #f4f4f4;
overflow: auto; /* Allow scrolling */
}
.auth-container, .content-container {
background: white;
padding: 2rem;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
width: 100%;
}
.auth-container {
max-width: 400px;
}
.content-container {
max-width: 800px;
margin: 20px auto;
}
.form-group {
margin-bottom: 1rem;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
color: #333;
}
.form-group input {
width: 100%;
padding: 0.5rem;
border: 1px solid #ddd;
border-radius: 4px;
}
.btn {
width: 100%;
padding: 0.75rem;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 1rem;
}
.btn:hover { opacity: 0.9; }
.btn-primary { background: #007bff; }
.btn-success { background: #28a745; }
.links { margin-top: 1rem; text-align: center; font-size: 0.9rem; }
/* Ensure buttons on content pages are white */
.content-container .btn { color: white; }
/* --- Modals --- */
.modal {
position: fixed;
top: 0; left: 0; width: 100%; height: 100%;
background: rgba(0,0,0,0.5);
display: flex;
justify-content: center;
align-items: center;
z-index: 2000;
}
.modal.hidden { display: none; }
.modal-content {
background: white;
padding: 20px;
border-radius: 8px;
width: 90%;
max-width: 400px;
position: relative;
}
.close-modal {
position: absolute;
top: 10px; right: 15px;
font-size: 1.5rem;
cursor: pointer;
color: #aaa;
}
.btn-secondary { background: #6c757d; margin-top: 10px; }
/* Sidebar Note Items */
.sidebar-note-item {
padding: 10px;
border-bottom: 1px solid #eee;
cursor: pointer;
}
.sidebar-note-item:hover {
background-color: #f9f9f9;
}
/* Map Note Card (Zoomed In) */
.map-note-card {
background: white;
padding: 8px;
border-radius: 4px;
box-shadow: 0 2px 8px rgba(0,0,0,0.3);
width: 200px;
font-size: 0.85rem;
border: 1px solid #ddd;
white-space: normal;
}
/* Sidebar Sections */
.list-section {
border-bottom: 1px solid #f0f0f0;
}
.list-section-header,
.btn-toggle-section {
width: 100%;
text-align: left;
background: #fff;
border: none;
padding: 12px 15px;
cursor: pointer;
font-weight: 600;
font-size: 0.85rem;
color: #555;
text-transform: uppercase;
letter-spacing: 0.5px;
margin: 0;
transition: background-color 0.2s;
}
.list-section-header:hover,
.btn-toggle-section:hover {
background-color: #f8f9fa;
color: #333;
}
.notepad-item:hover {
background-color: #fafafa;
}