245 lines
4.6 KiB
CSS
245 lines
4.6 KiB
CSS
/* Admin Layout & Navigation Styles */
|
|
/* Core layout components: container, sidebar, content area, navigation */
|
|
|
|
.admin-container {
|
|
display: flex;
|
|
height: calc(100vh - var(--header-height));
|
|
height: calc(var(--app-height) - var(--header-height));
|
|
background-color: #f5f5f5;
|
|
width: 100%;
|
|
max-width: 100vw;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.admin-sidebar {
|
|
width: var(--sidebar-width);
|
|
min-width: var(--sidebar-width);
|
|
max-width: var(--sidebar-width);
|
|
background-color: white;
|
|
border-right: 1px solid #e0e0e0;
|
|
padding: var(--padding-base);
|
|
box-sizing: border-box;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.admin-sidebar h2 {
|
|
font-size: var(--font-size-xl);
|
|
margin-bottom: var(--padding-base);
|
|
color: var(--dark-color);
|
|
}
|
|
|
|
.admin-nav {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 5px;
|
|
}
|
|
|
|
.admin-nav a {
|
|
padding: 10px 15px;
|
|
color: var(--dark-color);
|
|
text-decoration: none;
|
|
border-radius: var(--border-radius);
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.admin-nav a:hover {
|
|
background-color: var(--light-color);
|
|
}
|
|
|
|
.admin-nav a.active {
|
|
background-color: var(--primary-color);
|
|
color: white;
|
|
}
|
|
|
|
.admin-content {
|
|
flex: 1;
|
|
padding: 30px;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
width: 100%;
|
|
min-width: 0; /* Allow flex item to shrink */
|
|
box-sizing: border-box;
|
|
max-height: calc(100vh - var(--header-height));
|
|
max-height: calc(var(--app-height) - var(--header-height));
|
|
}
|
|
|
|
.admin-section {
|
|
background-color: white;
|
|
border-radius: var(--border-radius);
|
|
padding: 30px;
|
|
box-shadow: var(--shadow-sm);
|
|
width: 100%;
|
|
max-width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.admin-section h2 {
|
|
margin-bottom: 15px;
|
|
color: var(--dark-color);
|
|
}
|
|
|
|
.admin-section p {
|
|
color: #666;
|
|
margin-bottom: 25px;
|
|
}
|
|
|
|
.admin-map-container {
|
|
display: grid;
|
|
grid-template-columns: 1fr 300px;
|
|
gap: var(--padding-base);
|
|
margin-top: var(--padding-base);
|
|
}
|
|
|
|
.admin-map {
|
|
height: 500px;
|
|
border-radius: var(--border-radius);
|
|
border: 1px solid #ddd;
|
|
position: relative;
|
|
cursor: crosshair;
|
|
}
|
|
|
|
.admin-map .leaflet-container {
|
|
cursor: crosshair;
|
|
}
|
|
|
|
.location-controls {
|
|
padding: var(--padding-base);
|
|
background-color: #f9f9f9;
|
|
border-radius: var(--border-radius);
|
|
}
|
|
|
|
.location-controls .form-group {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.location-controls .form-actions {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
margin-top: var(--padding-base);
|
|
}
|
|
|
|
.help-text {
|
|
margin-top: var(--padding-base);
|
|
padding: 15px;
|
|
background-color: #e3f2fd;
|
|
border-radius: var(--border-radius);
|
|
font-size: var(--font-size-base);
|
|
}
|
|
|
|
.help-text p {
|
|
margin: 0;
|
|
color: #1976d2;
|
|
}
|
|
|
|
.admin-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
color: rgba(255,255,255,0.9);
|
|
font-size: var(--font-size-base);
|
|
}
|
|
|
|
/* Crosshair styling */
|
|
.crosshair {
|
|
pointer-events: none;
|
|
z-index: var(--z-dropdown);
|
|
}
|
|
|
|
.crosshair div {
|
|
border-radius: 1px;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
/* Mobile Menu Components */
|
|
.mobile-menu-toggle {
|
|
display: none;
|
|
background: none;
|
|
border: none;
|
|
padding: 8px;
|
|
cursor: pointer;
|
|
position: relative;
|
|
width: 40px;
|
|
height: 40px;
|
|
}
|
|
|
|
.mobile-menu-toggle span {
|
|
display: block;
|
|
width: 24px;
|
|
height: 3px;
|
|
background: white;
|
|
margin: 5px auto;
|
|
transition: var(--transition);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.mobile-menu-toggle.active span:nth-child(1) {
|
|
transform: rotate(45deg) translate(5px, 5px);
|
|
}
|
|
|
|
.mobile-menu-toggle.active span:nth-child(2) {
|
|
opacity: 0;
|
|
}
|
|
|
|
.mobile-menu-toggle.active span:nth-child(3) {
|
|
transform: rotate(-45deg) translate(7px, -6px);
|
|
}
|
|
|
|
/* Sidebar Header & Footer (mobile) */
|
|
.sidebar-header {
|
|
display: none;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding-bottom: var(--padding-base);
|
|
border-bottom: 1px solid #e0e0e0;
|
|
margin-bottom: var(--padding-base);
|
|
}
|
|
|
|
.close-sidebar {
|
|
background: none;
|
|
border: none;
|
|
font-size: 24px;
|
|
cursor: pointer;
|
|
color: var(--dark-color);
|
|
padding: 0;
|
|
width: 30px;
|
|
height: 30px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.sidebar-footer {
|
|
display: none;
|
|
margin-top: auto;
|
|
padding-top: var(--padding-base);
|
|
border-top: 1px solid #e0e0e0;
|
|
}
|
|
|
|
.mobile-admin-info {
|
|
margin-top: 15px;
|
|
font-size: var(--font-size-base);
|
|
color: #666;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Navigation Icons */
|
|
.nav-icon {
|
|
margin-right: 10px;
|
|
font-size: var(--font-size-xl);
|
|
}
|
|
|
|
/* Utility Classes */
|
|
.desktop-only {
|
|
display: flex;
|
|
}
|
|
|
|
.mobile-only {
|
|
display: none;
|
|
}
|
|
|
|
.btn-block {
|
|
width: 100%;
|
|
justify-content: center;
|
|
}
|