1830 lines
30 KiB
CSS

/* Reset and Base Styles */
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
:root {
--primary: #2563eb;
--primary-dark: #1d4ed8;
--primary-light: #3b82f6;
--secondary: #10b981;
--background: #f8fafc;
--surface: #ffffff;
--text: #1e293b;
--text-light: #64748b;
--border: #e2e8f0;
--shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
--radius: 8px;
--radius-lg: 12px;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background-color: var(--background);
color: var(--text);
line-height: 1.6;
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* Header */
.header {
background: var(--surface);
border-bottom: 1px solid var(--border);
position: sticky;
top: 0;
z-index: 100;
}
.header-content {
max-width: 1400px;
margin: 0 auto;
padding: 1rem 1.5rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
display: flex;
align-items: center;
gap: 0.5rem;
text-decoration: none;
color: var(--text);
font-weight: 700;
font-size: 1.25rem;
}
.logo-icon {
font-size: 1.5rem;
}
.nav-link {
color: var(--text-light);
text-decoration: none;
font-weight: 500;
transition: color 0.2s;
}
.nav-link:hover {
color: var(--primary);
}
/* Hero Section */
.hero {
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
color: white;
padding: 3rem 1.5rem;
}
.hero-content {
max-width: 800px;
margin: 0 auto;
text-align: center;
}
.hero h1 {
font-size: 2.25rem;
font-weight: 700;
margin-bottom: 0.5rem;
}
.hero p {
font-size: 1.125rem;
opacity: 0.9;
margin-bottom: 1.5rem;
}
/* Search Container */
.search-container {
display: flex;
gap: 0.5rem;
max-width: 600px;
margin: 0 auto;
}
.search-input {
flex: 1;
padding: 0.875rem 1rem;
font-size: 1rem;
border: none;
border-radius: var(--radius);
outline: none;
}
.search-input:focus {
box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}
.search-btn {
padding: 0.875rem 1.5rem;
font-size: 1rem;
font-weight: 600;
background: var(--secondary);
color: white;
border: none;
border-radius: var(--radius);
cursor: pointer;
transition: background 0.2s;
}
.search-btn:hover {
background: #059669;
}
.location-btn {
padding: 0.875rem;
background: rgba(255, 255, 255, 0.2);
color: white;
border: none;
border-radius: var(--radius);
cursor: pointer;
transition: background 0.2s;
display: flex;
align-items: center;
justify-content: center;
}
.location-btn:hover {
background: rgba(255, 255, 255, 0.3);
}
/* Main Content */
.main-content {
flex: 1;
max-width: 1400px;
margin: 0 auto;
padding: 1.5rem;
width: 100%;
}
/* Filters Bar */
.filters-bar {
display: flex;
justify-content: space-between;
align-items: center;
gap: 1rem;
margin-bottom: 1.5rem;
flex-wrap: wrap;
}
.filters-left {
display: flex;
gap: 0.75rem;
}
.filters-right {
display: flex;
align-items: center;
gap: 0.5rem;
}
.filter-select {
padding: 0.5rem 2rem 0.5rem 0.75rem;
font-size: 0.875rem;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--surface);
cursor: pointer;
appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 0.5rem center;
}
.filter-select:focus {
outline: none;
border-color: var(--primary);
}
/* Multi-Select Dropdown */
.multi-select {
position: relative;
display: inline-block;
}
.multi-select-btn {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 0.75rem;
font-size: 0.875rem;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--surface);
cursor: pointer;
min-width: 140px;
justify-content: space-between;
transition: border-color 0.2s;
}
.multi-select-btn:hover,
.multi-select.open .multi-select-btn {
border-color: var(--primary);
}
.multi-select-label {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 150px;
}
.multi-select-arrow {
flex-shrink: 0;
color: var(--text-light);
transition: transform 0.2s;
}
.multi-select.open .multi-select-arrow {
transform: rotate(180deg);
}
.multi-select-dropdown {
position: absolute;
top: calc(100% + 4px);
left: 0;
min-width: 220px;
max-width: 300px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
box-shadow: var(--shadow-lg);
z-index: 100;
}
.multi-select-search {
padding: 0.5rem;
border-bottom: 1px solid var(--border);
}
.multi-select-search-input {
width: 100%;
padding: 0.5rem;
font-size: 0.875rem;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--background);
}
.multi-select-search-input:focus {
outline: none;
border-color: var(--primary);
}
.multi-select-options {
max-height: 250px;
overflow-y: auto;
padding: 0.5rem 0;
}
.multi-select-option {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 0.75rem;
cursor: pointer;
font-size: 0.875rem;
transition: background 0.15s;
}
.multi-select-option:hover {
background: var(--background);
}
.multi-select-option input[type="checkbox"] {
width: 16px;
height: 16px;
cursor: pointer;
accent-color: var(--primary);
}
.multi-select-option span {
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.multi-select-option .count {
color: var(--text-light);
font-size: 0.75rem;
}
.multi-select-actions {
display: flex;
gap: 0.5rem;
padding: 0.5rem;
border-top: 1px solid var(--border);
background: var(--background);
}
.multi-select-clear,
.multi-select-apply {
flex: 1;
padding: 0.5rem;
font-size: 0.75rem;
font-weight: 500;
border-radius: var(--radius);
cursor: pointer;
transition: all 0.15s;
}
.multi-select-clear {
background: var(--surface);
border: 1px solid var(--border);
color: var(--text);
}
.multi-select-clear:hover {
background: var(--background);
}
.multi-select-apply {
background: var(--primary);
border: 1px solid var(--primary);
color: white;
}
.multi-select-apply:hover {
background: var(--primary-dark);
}
.multi-select-badge {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 18px;
height: 18px;
padding: 0 5px;
font-size: 0.7rem;
font-weight: 600;
background: var(--primary);
color: white;
border-radius: 9px;
margin-left: 0.25rem;
}
.view-btn {
padding: 0.5rem;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
cursor: pointer;
color: var(--text-light);
transition: all 0.2s;
}
.view-btn:hover,
.view-btn.active {
background: var(--primary);
border-color: var(--primary);
color: white;
}
.result-count {
color: var(--text-light);
font-size: 0.875rem;
margin-left: 0.5rem;
}
/* Content Area */
.content-area {
min-height: 400px;
}
/* Split Layout - Map and List side by side */
.content-area.split-layout {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1.5rem;
min-height: 600px;
}
.split-layout .map-container {
position: sticky;
top: 80px;
height: calc(100vh - 100px);
max-height: 700px;
}
.split-layout .list-container {
max-height: calc(100vh - 100px);
overflow-y: auto;
}
/* Map Container */
.map-container {
height: 500px;
border-radius: var(--radius-lg);
overflow: hidden;
box-shadow: var(--shadow);
}
#map {
height: 100%;
width: 100%;
}
/* List Container */
.resource-list {
display: grid;
gap: 1rem;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}
/* Resource Card */
.resource-card {
background: var(--surface);
border-radius: var(--radius-lg);
padding: 1.25rem;
box-shadow: var(--shadow);
transition: box-shadow 0.2s, transform 0.2s;
cursor: pointer;
}
.resource-card:hover {
box-shadow: var(--shadow-lg);
transform: translateY(-2px);
}
.resource-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 0.5rem;
margin-bottom: 0.25rem;
}
.resource-click-hint {
font-size: 0.7rem;
color: var(--primary);
margin-bottom: 0.5rem;
opacity: 0.7;
transition: opacity 0.2s;
}
.resource-card:hover .resource-click-hint {
opacity: 1;
}
.resource-name {
font-size: 1.125rem;
font-weight: 600;
color: var(--text);
margin: 0;
}
.resource-type {
font-size: 0.75rem;
font-weight: 500;
padding: 0.25rem 0.5rem;
border-radius: 9999px;
background: var(--primary);
color: white;
white-space: nowrap;
}
.resource-type.food_bank { background: #dc2626; }
.resource-type.community_meal { background: #ea580c; }
.resource-type.hamper { background: #ca8a04; }
.resource-type.pantry { background: #16a34a; }
.resource-type.soup_kitchen { background: #9333ea; }
.resource-type.mobile_food { background: #0891b2; }
.resource-type.grocery_program { background: #4f46e5; }
.resource-info {
display: flex;
flex-direction: column;
gap: 0.5rem;
font-size: 0.875rem;
color: var(--text-light);
}
.resource-info-row {
display: flex;
align-items: flex-start;
gap: 0.5rem;
}
.resource-info-row svg {
flex-shrink: 0;
margin-top: 0.125rem;
}
.resource-actions {
display: flex;
gap: 0.5rem;
margin-top: 1rem;
padding-top: 1rem;
border-top: 1px solid var(--border);
}
.resource-action-btn {
flex: 1;
padding: 0.5rem;
font-size: 0.875rem;
font-weight: 500;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--surface);
color: var(--text);
cursor: pointer;
text-decoration: none;
text-align: center;
transition: all 0.2s;
}
.resource-action-btn:hover {
background: var(--primary);
border-color: var(--primary);
color: white;
}
.resource-action-btn.primary {
background: var(--primary);
border-color: var(--primary);
color: white;
}
.resource-action-btn.primary:hover {
background: var(--primary-dark);
}
.resource-action-btn.maps-btn {
background: #10b981;
border-color: #10b981;
color: white;
}
.resource-action-btn.maps-btn:hover {
background: #059669;
border-color: #059669;
}
.resource-action-btn.update-btn {
flex: 0;
padding: 0.375rem 0.625rem;
font-size: 0.75rem;
background: transparent;
border-color: var(--text-light);
color: var(--text-light);
}
.resource-action-btn.update-btn:hover {
background: var(--text-light);
color: white;
}
/* Loading & No Results */
.loading-indicator {
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;
padding: 3rem;
color: var(--text-light);
}
.spinner {
width: 40px;
height: 40px;
border: 3px solid var(--border);
border-top-color: var(--primary);
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
.loading-more-indicator {
display: flex;
align-items: center;
justify-content: center;
gap: 0.75rem;
padding: 1.5rem;
color: var(--text-light);
font-size: 0.875rem;
}
.loading-more-indicator .spinner {
width: 24px;
height: 24px;
border-width: 2px;
}
.no-results {
text-align: center;
padding: 3rem;
color: var(--text-light);
}
/* Pagination */
.pagination {
display: flex;
justify-content: center;
align-items: center;
gap: 1rem;
margin-top: 2rem;
}
.page-btn {
padding: 0.5rem 1rem;
font-size: 0.875rem;
font-weight: 500;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--surface);
cursor: pointer;
transition: all 0.2s;
}
.page-btn:hover:not(:disabled) {
background: var(--primary);
border-color: var(--primary);
color: white;
}
.page-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.page-info {
color: var(--text-light);
font-size: 0.875rem;
}
/* Modal */
.modal {
position: fixed;
inset: 0;
z-index: 200;
display: flex;
align-items: center;
justify-content: center;
}
.modal-overlay {
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.5);
}
.modal-content {
position: relative;
background: var(--surface);
border-radius: var(--radius-lg);
max-width: 600px;
max-height: 90vh;
width: 90%;
overflow-y: auto;
box-shadow: var(--shadow-lg);
}
.modal-close {
position: absolute;
top: 1rem;
right: 1rem;
width: 32px;
height: 32px;
font-size: 1.5rem;
border: none;
background: none;
cursor: pointer;
color: var(--text-light);
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
transition: background 0.2s;
}
.modal-close:hover {
background: var(--border);
}
#modalBody {
padding: 1.5rem;
}
.modal-header {
margin-bottom: 1.5rem;
}
.modal-title {
font-size: 1.5rem;
font-weight: 700;
margin-bottom: 0.5rem;
}
.modal-section {
margin-bottom: 1.25rem;
}
.modal-section-title {
font-size: 0.875rem;
font-weight: 600;
color: var(--text-light);
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 0.5rem;
}
.modal-section-content {
color: var(--text);
}
.modal-actions {
display: flex;
gap: 0.75rem;
margin-top: 1.5rem;
padding-top: 1.5rem;
border-top: 1px solid var(--border);
}
/* Add Listing Call-to-Action */
.add-listing-cta {
background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
border-top: 1px solid #bbf7d0;
padding: 3rem 1.5rem;
}
.add-listing-cta-content {
max-width: 600px;
margin: 0 auto;
text-align: center;
}
.add-listing-cta h2 {
font-size: 1.5rem;
font-weight: 700;
color: var(--text);
margin-bottom: 0.5rem;
}
.add-listing-cta p {
color: var(--text-light);
margin-bottom: 1.5rem;
}
.add-listing-cta .resource-action-btn.large {
padding: 0.875rem 2rem;
font-size: 1rem;
}
/* Footer */
.footer {
background: var(--surface);
border-top: 1px solid var(--border);
padding: 2rem 1.5rem;
margin-top: auto;
}
.footer-content {
max-width: 1400px;
margin: 0 auto;
text-align: center;
color: var(--text-light);
font-size: 0.875rem;
}
.footer a {
color: var(--primary);
text-decoration: none;
}
.footer a:hover {
text-decoration: underline;
}
.footer-note {
margin-top: 0.5rem;
font-size: 0.75rem;
}
.footer-admin {
margin-top: 1rem;
font-size: 0.7rem;
opacity: 0.6;
}
.footer-admin:hover {
opacity: 1;
}
/* Utility Classes */
.hidden {
display: none !important;
}
/* Responsive */
@media (max-width: 1024px) {
.content-area.split-layout {
grid-template-columns: 1fr;
}
.split-layout .map-container {
position: relative;
top: 0;
height: 400px;
max-height: none;
}
.split-layout .list-container {
max-height: calc(100vh - 250px);
overflow-y: auto;
}
}
@media (max-width: 768px) {
.hero h1 {
font-size: 1.75rem;
}
.search-container {
flex-wrap: wrap;
}
.search-input {
width: 100%;
}
.search-btn {
flex: 1;
}
.filters-bar {
flex-direction: column;
align-items: stretch;
}
.filters-left,
.filters-right {
justify-content: space-between;
}
.resource-list {
grid-template-columns: 1fr;
}
.split-layout .list-container {
max-height: calc(100vh - 350px);
min-height: 300px;
}
.map-container {
height: 350px;
}
.split-layout .map-container {
height: 300px;
}
}
/* Leaflet Popup Customization */
.leaflet-popup-content-wrapper {
border-radius: var(--radius);
}
.leaflet-popup-content {
margin: 0.75rem;
}
.popup-title {
font-weight: 600;
margin-bottom: 0.25rem;
}
.popup-address {
font-size: 0.875rem;
color: var(--text-light);
}
/* Directions Modal */
.modal-large {
max-width: 1000px;
max-height: 95vh;
}
.directions-container {
padding: 1.5rem;
}
.directions-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
flex-wrap: wrap;
gap: 1rem;
}
.directions-header h2 {
margin: 0;
font-size: 1.5rem;
}
.directions-controls {
display: flex;
gap: 0.5rem;
align-items: center;
}
.directions-summary {
display: flex;
gap: 2rem;
padding: 1rem;
background: var(--background);
border-radius: var(--radius);
margin-bottom: 1rem;
flex-wrap: wrap;
}
.directions-summary-item {
display: flex;
flex-direction: column;
}
.directions-summary-label {
font-size: 0.75rem;
color: var(--text-light);
text-transform: uppercase;
}
.directions-summary-value {
font-size: 1.25rem;
font-weight: 600;
color: var(--text);
}
.directions-layout {
display: grid;
grid-template-columns: 1fr 350px;
gap: 1rem;
height: 450px;
}
.directions-map-container {
border-radius: var(--radius);
overflow: hidden;
background: var(--border);
}
#directionsMap {
height: 100%;
width: 100%;
}
.directions-steps-container {
overflow-y: auto;
border: 1px solid var(--border);
border-radius: var(--radius);
}
.directions-steps {
padding: 0.5rem;
}
.direction-step {
display: flex;
gap: 0.75rem;
padding: 0.75rem;
border-bottom: 1px solid var(--border);
transition: background 0.2s;
cursor: pointer;
}
.direction-step:last-child {
border-bottom: none;
}
.direction-step:hover {
background: var(--background);
}
.direction-step-number {
width: 28px;
height: 28px;
background: var(--primary);
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.75rem;
font-weight: 600;
flex-shrink: 0;
}
.direction-step-number.start {
background: var(--secondary);
}
.direction-step-number.end {
background: #dc2626;
}
.direction-step-content {
flex: 1;
min-width: 0;
}
.direction-step-instruction {
font-size: 0.875rem;
margin-bottom: 0.25rem;
}
.direction-step-meta {
font-size: 0.75rem;
color: var(--text-light);
}
/* Maneuver icons */
.direction-icon {
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
color: var(--text-light);
}
/* Route line styling */
.route-line {
stroke: var(--primary);
stroke-width: 5;
stroke-linecap: round;
stroke-linejoin: round;
fill: none;
}
/* Print Styles */
.print-only {
display: none;
}
@media print {
/* Hide everything except print content */
body * {
visibility: hidden;
}
.print-only,
.print-only * {
visibility: visible;
}
.print-only {
position: absolute;
left: 0;
top: 0;
width: 100%;
padding: 1.5rem 2rem;
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
color: #1e293b;
}
/* Header with branding */
.print-header {
display: flex;
justify-content: space-between;
align-items: center;
padding-bottom: 1rem;
border-bottom: 3px solid #2563eb;
margin-bottom: 1.5rem;
}
.print-logo {
display: flex;
align-items: center;
gap: 0.5rem;
}
.print-logo-icon {
font-size: 2rem;
}
.print-logo-text {
font-size: 1.5rem;
font-weight: 700;
color: #2563eb;
}
.print-tagline {
font-size: 0.875rem;
color: #64748b;
}
/* Title section */
.print-title {
margin-bottom: 1.5rem;
}
.print-title h1 {
font-size: 1.75rem;
font-weight: 700;
margin: 0 0 0.25rem 0;
color: #1e293b;
}
.print-date {
font-size: 0.875rem;
color: #64748b;
margin: 0;
}
/* Summary box */
.print-summary {
display: flex;
gap: 2rem;
margin-bottom: 1.5rem;
padding: 1rem 1.25rem;
background: #f1f5f9;
border-radius: 8px;
border-left: 4px solid #2563eb;
}
.print-summary-item {
display: flex;
flex-direction: column;
}
.print-summary-label {
font-size: 0.7rem;
text-transform: uppercase;
letter-spacing: 0.5px;
color: #64748b;
font-weight: 600;
}
.print-summary-value {
font-size: 1.125rem;
font-weight: 600;
color: #1e293b;
}
/* Destination card */
.print-destination {
margin-bottom: 1.5rem;
padding: 1rem;
background: #fff;
border: 1px solid #e2e8f0;
border-radius: 8px;
}
.print-destination-label {
font-size: 0.7rem;
text-transform: uppercase;
letter-spacing: 0.5px;
color: #64748b;
font-weight: 600;
margin-bottom: 0.25rem;
}
.print-destination h2 {
font-size: 1.25rem;
font-weight: 600;
margin: 0 0 0.5rem 0;
color: #1e293b;
}
.print-destination p {
margin: 0.25rem 0;
font-size: 0.875rem;
color: #475569;
}
.print-destination-contact {
margin-top: 0.75rem;
padding-top: 0.75rem;
border-top: 1px solid #e2e8f0;
}
/* Steps section */
.print-steps-header {
font-size: 1rem;
font-weight: 600;
margin-bottom: 0.75rem;
color: #1e293b;
}
.print-steps {
margin-bottom: 1.5rem;
}
.print-step {
display: flex;
gap: 0.75rem;
padding: 0.625rem 0;
border-bottom: 1px solid #e2e8f0;
align-items: flex-start;
}
.print-step:last-child {
border-bottom: none;
}
.print-step-number {
width: 24px;
height: 24px;
min-width: 24px;
background: #2563eb;
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.7rem;
font-weight: 700;
margin-top: 2px;
}
.print-step-number.start {
background: #10b981;
}
.print-step-number.end {
background: #dc2626;
}
.print-step-content {
flex: 1;
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 1rem;
}
.print-step-instruction {
flex: 1;
font-size: 0.875rem;
line-height: 1.4;
}
.print-step-distance {
font-size: 0.75rem;
color: #64748b;
white-space: nowrap;
}
/* Footer */
.print-footer {
margin-top: 2rem;
padding-top: 1rem;
border-top: 2px solid #e2e8f0;
display: flex;
justify-content: space-between;
align-items: center;
}
.print-footer-brand {
font-weight: 600;
color: #2563eb;
}
.print-footer-url {
font-size: 0.875rem;
color: #64748b;
}
.print-footer-note {
font-size: 0.7rem;
color: #94a3b8;
}
/* Hide interactive elements */
.modal,
.header,
.footer,
button,
select,
input {
display: none !important;
}
}
/* Responsive directions */
@media (max-width: 768px) {
.directions-layout {
grid-template-columns: 1fr;
height: auto;
}
.directions-map-container {
height: 250px;
}
.directions-steps-container {
max-height: 300px;
}
.directions-summary {
gap: 1rem;
}
}
/* Update Modal Styles */
.update-modal-container {
padding: 1.5rem;
}
.update-modal-container h2 {
margin: 0 0 0.5rem 0;
font-size: 1.5rem;
}
.update-modal-subtitle {
color: var(--text-light);
margin-bottom: 1.5rem;
}
.update-form {
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.form-section {
border-bottom: 1px solid var(--border);
padding-bottom: 1.5rem;
}
.form-section:last-of-type {
border-bottom: none;
}
.form-section h3 {
font-size: 1rem;
font-weight: 600;
margin-bottom: 1rem;
color: var(--text);
}
.form-hint {
font-size: 0.875rem;
color: var(--text-light);
margin-bottom: 1rem;
}
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
}
.form-group {
display: flex;
flex-direction: column;
gap: 0.375rem;
}
.form-group label {
font-size: 0.875rem;
font-weight: 500;
color: var(--text);
}
.form-group .required {
color: #dc2626;
}
.form-group input,
.form-group select,
.form-group textarea {
padding: 0.625rem 0.75rem;
font-size: 0.875rem;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--surface);
font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}
.form-group textarea {
resize: vertical;
}
.form-actions {
display: flex;
gap: 0.75rem;
justify-content: flex-end;
padding-top: 1rem;
}
.modal-update-section {
margin-top: 1rem;
padding-top: 1rem;
border-top: 1px solid var(--border);
}
.modal-update-btn {
width: 100%;
background: transparent;
border: 1px dashed var(--border);
color: var(--text-light);
}
.modal-update-btn:hover {
background: var(--background);
border-color: var(--primary);
color: var(--primary);
}
/* Admin Panel Styles */
.admin-badge {
background: var(--primary);
color: white;
padding: 0.25rem 0.75rem;
border-radius: 9999px;
font-size: 0.75rem;
font-weight: 600;
}
.logout-btn {
cursor: pointer;
background: none;
border: none;
font-size: inherit;
}
.admin-login-section {
display: flex;
justify-content: center;
align-items: center;
min-height: 400px;
}
.login-card {
background: var(--surface);
padding: 2rem;
border-radius: var(--radius-lg);
box-shadow: var(--shadow-lg);
max-width: 400px;
width: 100%;
}
.login-card h1 {
margin: 0 0 0.5rem 0;
font-size: 1.5rem;
}
.login-card p {
color: var(--text-light);
margin-bottom: 1.5rem;
}
.full-width {
width: 100%;
}
.error-message {
background: #fef2f2;
color: #dc2626;
padding: 0.75rem;
border-radius: var(--radius);
font-size: 0.875rem;
margin-bottom: 1rem;
}
.admin-stats-bar {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1rem;
margin-bottom: 1.5rem;
}
.stat-card {
background: var(--surface);
padding: 1.25rem;
border-radius: var(--radius);
box-shadow: var(--shadow);
text-align: center;
}
.stat-value {
display: block;
font-size: 2rem;
font-weight: 700;
color: var(--primary);
}
.stat-label {
font-size: 0.875rem;
color: var(--text-light);
}
/* Admin Section Tabs */
.admin-section-tabs {
display: flex;
gap: 0.5rem;
margin-bottom: 1.5rem;
background: var(--surface);
padding: 0.5rem;
border-radius: var(--radius-lg);
box-shadow: var(--shadow);
}
.admin-section-tab {
flex: 1;
padding: 0.75rem 1rem;
background: transparent;
border: none;
font-size: 0.875rem;
font-weight: 600;
color: var(--text-light);
cursor: pointer;
border-radius: var(--radius);
transition: all 0.2s;
}
.admin-section-tab:hover {
background: var(--background);
color: var(--text);
}
.admin-section-tab.active {
background: var(--primary);
color: white;
}
.admin-section {
animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.section-title {
font-size: 1.25rem;
font-weight: 600;
margin-bottom: 1rem;
color: var(--text);
}
.admin-tabs {
display: flex;
gap: 0.5rem;
margin-bottom: 1.5rem;
border-bottom: 1px solid var(--border);
padding-bottom: 0.5rem;
}
.admin-tab {
padding: 0.5rem 1rem;
background: none;
border: none;
font-size: 0.875rem;
font-weight: 500;
color: var(--text-light);
cursor: pointer;
border-radius: var(--radius);
transition: all 0.2s;
}
.admin-tab:hover {
background: var(--background);
color: var(--text);
}
.admin-tab.active {
background: var(--primary);
color: white;
}
.requests-list {
display: flex;
flex-direction: column;
gap: 1rem;
}
.request-card {
background: var(--surface);
padding: 1.25rem;
border-radius: var(--radius-lg);
box-shadow: var(--shadow);
}
.request-card-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 0.75rem;
}
.request-resource-name {
font-size: 1.125rem;
font-weight: 600;
margin: 0 0 0.25rem 0;
}
.request-date {
font-size: 0.75rem;
color: var(--text-light);
}
.status-badge {
font-size: 0.75rem;
font-weight: 500;
padding: 0.25rem 0.75rem;
border-radius: 9999px;
text-transform: capitalize;
}
.status-badge.pending {
background: #fef3c7;
color: #92400e;
}
.status-badge.approved {
background: #d1fae5;
color: #065f46;
}
.status-badge.rejected {
background: #fee2e2;
color: #991b1b;
}
.request-card-info {
font-size: 0.875rem;
color: var(--text-light);
margin-bottom: 1rem;
}
.request-submitter {
margin-bottom: 0.5rem;
}
.request-card-actions {
display: flex;
gap: 0.5rem;
}
/* Request Detail Modal */
.request-detail {
padding: 1.5rem;
}
.request-detail-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
}
.request-detail-header h2 {
margin: 0;
font-size: 1.25rem;
}
.diff-container {
display: flex;
flex-direction: column;
gap: 1rem;
}
.diff-row {
background: var(--background);
padding: 1rem;
border-radius: var(--radius);
}
.diff-label {
font-weight: 600;
font-size: 0.875rem;
margin-bottom: 0.5rem;
color: var(--text);
}
.diff-values {
display: grid;
grid-template-columns: 1fr auto 1fr;
gap: 0.75rem;
align-items: center;
}
.diff-current,
.diff-proposed {
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.diff-tag {
font-size: 0.625rem;
text-transform: uppercase;
font-weight: 600;
color: var(--text-light);
}
.diff-value {
font-size: 0.875rem;
color: var(--text);
word-break: break-word;
}
.diff-current .diff-value {
color: var(--text-light);
text-decoration: line-through;
}
.diff-proposed .diff-value {
color: #059669;
font-weight: 500;
}
.diff-arrow {
color: var(--text-light);
font-size: 1.25rem;
}
.admin-notes-input {
width: 100%;
padding: 0.75rem;
font-size: 0.875rem;
border: 1px solid var(--border);
border-radius: var(--radius);
font-family: inherit;
resize: vertical;
}
.admin-notes-input:focus {
outline: none;
border-color: var(--primary);
}
.reject-btn {
background: #fee2e2;
border-color: #fecaca;
color: #991b1b;
}
.reject-btn:hover {
background: #dc2626;
border-color: #dc2626;
color: white;
}
/* Listing Fields Display */
.listing-fields {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.listing-field {
background: var(--background);
padding: 0.75rem 1rem;
border-radius: var(--radius);
}
.listing-field-label {
font-size: 0.75rem;
font-weight: 600;
color: var(--text-light);
text-transform: uppercase;
margin-bottom: 0.25rem;
}
.listing-field-value {
font-size: 0.875rem;
color: var(--text);
word-break: break-word;
}
/* Responsive Admin */
@media (max-width: 768px) {
.form-row {
grid-template-columns: 1fr;
}
.admin-stats-bar {
grid-template-columns: 1fr;
}
.diff-values {
grid-template-columns: 1fr;
}
.diff-arrow {
transform: rotate(90deg);
text-align: center;
}
}