300 lines
5.9 KiB
CSS
300 lines
5.9 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: transparent;
|
|
border: 2px solid rgba(255, 255, 255, 0.8);
|
|
border-radius: 4px;
|
|
padding: 8px;
|
|
cursor: pointer;
|
|
position: relative;
|
|
width: 44px;
|
|
height: 44px;
|
|
z-index: 10002;
|
|
touch-action: manipulation;
|
|
-webkit-tap-highlight-color: transparent;
|
|
-webkit-touch-callout: none;
|
|
-webkit-user-select: none;
|
|
user-select: none;
|
|
flex-shrink: 0;
|
|
min-width: 44px;
|
|
min-height: 44px;
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
outline: none;
|
|
isolation: isolate;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
/* Hamburger Icon */
|
|
.hamburger-icon {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-around;
|
|
width: 24px;
|
|
height: 20px;
|
|
position: relative;
|
|
}
|
|
|
|
.hamburger-icon span {
|
|
display: block;
|
|
height: 3px;
|
|
width: 100%;
|
|
background-color: white;
|
|
border-radius: 2px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
/* Active state animation */
|
|
.mobile-menu-toggle.active .hamburger-icon span:nth-child(1) {
|
|
transform: translateY(7px) rotate(45deg);
|
|
}
|
|
|
|
.mobile-menu-toggle.active .hamburger-icon span:nth-child(2) {
|
|
opacity: 0;
|
|
}
|
|
|
|
.mobile-menu-toggle.active .hamburger-icon span:nth-child(3) {
|
|
transform: translateY(-7px) rotate(-45deg);
|
|
}
|
|
|
|
/* Hover effect */
|
|
.mobile-menu-toggle:hover {
|
|
background-color: rgba(255, 255, 255, 0.1);
|
|
border-color: white;
|
|
}
|
|
|
|
/* Ensure button is visible on mobile */
|
|
@media (max-width: 768px) {
|
|
.mobile-menu-toggle {
|
|
display: flex !important;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
/* Make sure header has proper layout on mobile */
|
|
.header {
|
|
display: flex;
|
|
align-items: center;
|
|
position: relative;
|
|
z-index: 10001;
|
|
padding: 10px 15px;
|
|
}
|
|
|
|
.header h1 {
|
|
margin-left: 10px;
|
|
font-size: 1.5rem;
|
|
}
|
|
}
|
|
|
|
/* 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;
|
|
}
|