/*!****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./styles/globals.css ***!
  \****************************************************************************************************************************************************************************************************************************************************************/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --accent-color: #f59e0b;
  --text-color: #1f2937;
  --background-color: #f9fafb;
  --border-color: #e5e7eb;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .container {
    padding: 0 0.5rem;
  }
}

/* Utility classes */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary-color);
}

.text-secondary {
  color: var(--secondary-color);
}

.text-success {
  color: var(--success-color);
}

.text-warning {
  color: var(--warning-color);
}

.text-error {
  color: var(--error-color);
}

.bg-primary {
  background-color: var(--primary-color);
}

.bg-secondary {
  background-color: var(--secondary-color);
}

.bg-success {
  background-color: var(--success-color);
}

.bg-warning {
  background-color: var(--warning-color);
}

.bg-error {
  background-color: var(--error-color);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--background-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: #e5e7eb;
  text-decoration: none;
}

.btn-success {
  background-color: var(--success-color);
  color: white;
}

.btn-success:hover {
  background-color: #059669;
  text-decoration: none;
}

.btn-warning {
  background-color: var(--warning-color);
  color: white;
}

.btn-warning:hover {
  background-color: #d97706;
  text-decoration: none;
}

.btn-error {
  background-color: var(--error-color);
  color: white;
}

.btn-error:hover {
  background-color: #dc2626;
  text-decoration: none;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card:hover {
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(37, 99, 235, 0.3);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Leaflet map overrides for mobile */
.leaflet-container {
  font-size: 1rem;
}

.leaflet-popup-content {
  margin: 10px;
  line-height: 1.4;
}

.leaflet-popup-content h4 {
  margin: 0 0 0.5rem 0;
  color: var(--text-color);
}

.leaflet-popup-content p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .leaflet-control {
    font-size: 0.8rem;
  }
  
  .leaflet-popup-content {
    margin: 5px;
    font-size: 0.9rem;
  }
  
  .leaflet-popup-content h4 {
    font-size: 1rem;
  }
}
.route-item{
  display: flex;
  background-color: #fff;
  padding: 20px 35px;
  margin-bottom: 8px;
  border: 1px solid #ccc;
  border-radius: 10px;
  justify-content: space-between;
} 
.drag-handle:hover{
  cursor: pointer;
}
.route-actions > *, .route-actions button, .drag-handle  {
  margin-right: 15px;
}
.route-actions label input, .route-details span{
  margin-right: 8px;
}
.section-item{
  display: flex;
  justify-content: space-between;
}

/* App layout styles */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.app-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1 1;
}

/* Footer link override */
.app-footer a{
  color: #fff;
}

.app-footer a:hover {
  text-decoration: none !important;
}
.add-marker-form{
   margin-bottom: 25px;
}
.dropdown-menu a, .dropdown-item{
   color: #333 !important;
}

/*!****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./styles/leaflet.css ***!
  \****************************************************************************************************************************************************************************************************************************************************************/
/* 
 * Leaflet CSS imports are handled via CDN in _app.js
 * This file is here to satisfy Next.js CSS imports
 * Custom Leaflet overrides can be added here
 */

/* Custom mobile-friendly Leaflet styles */
@media (max-width: 768px) {
  .leaflet-touch .leaflet-control-zoom-in, 
  .leaflet-touch .leaflet-control-zoom-out {
    font-size: 1.2rem;
    line-height: 1.5rem;
    width: 2rem;
    height: 2rem;
  }
  
  .leaflet-control-attribution {
    font-size: 0.7rem;
    padding: 0 5px;
  }
  
  .leaflet-popup-content-wrapper {
    border-radius: 8px;
  }
  
  .leaflet-popup-tip {
    width: 12px;
    height: 12px;
  }
}

/* Ensure map is responsive */
.leaflet-container {
  width: 100%;
  height: 100%;
}

/* Mobile touch optimizations */
.leaflet-touch .leaflet-bar a {
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
  border-radius: 4px;
}

.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
  border: none;
  box-shadow: 0 1px 5px rgba(0,0,0,0.4);
}

/* Custom popup styling for better readability */
.leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.4);
}

.leaflet-popup-content {
  margin: 12px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Custom marker styles */
.custom-marker {
  background: #2563eb;
  border: 2px solid white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.custom-marker.user-location {
  background: #10b981;
}

.custom-marker.defect {
  background: #ef4444;
}

.custom-marker.poi {
  background: #f59e0b;
}

/*!**********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./styles/map-container.css ***!
  \**********************************************************************************************************************************************************************************************************************************************************************/
/* Map container styles to ensure proper dimensions */
.map-container-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 400px;
}

.map-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Ensure parent containers have proper height */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

#root, #__next {
  height: 100%;
}

.container {
  height: 100%;
  min-height: 100vh;
}

.main {
  height: 100%;
  /*min-height: 100vh;*/
}

/* Loading overlay */
.map-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Ensure Leaflet map container has proper dimensions */
.leaflet-map-container {
  width: 100%;
  height: 100%;
  min-height: 400px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .map-container-wrapper {
    height: 100vh;
    min-height: 300px;
  }
  
  .map-container {
    height: 100%;
  }
}
/*!*****************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./styles/border-image-markers.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************************/
/* Simplified border image marker styling */
.border-image-marker {
  visibility: visible !important;
  display: block !important;
  opacity: 1 !important;
  z-index: 1000 !important;
}

/* Prevent Leaflet from hiding border images during zoom operations */
.border-image-marker.leaflet-zoom-hide {
  visibility: visible !important;
  display: block !important;
}

/* Ensure border images maintain their dimensions */
.border-image-marker img {
  width: inherit !important;
  height: inherit !important;
}

/* Prevent unwanted transitions (but keep transforms for positioning) */
.border-image-marker {
  transition: none !important;
}

