    :root {
      --primary-color: #0d6efd;
      --secondary-color: #6c757d;
      --success-color: #198754;
      --warning-color: #ffc107;
      --danger-color: #dc3545;
      --navbar-height: 75px;
      --border-radius: 12px;
      --shadow-light: 0 2px 8px rgba(0,0,0,0.1);
      --shadow-medium: 0 4px 16px rgba(0,0,0,0.15);
      --shadow-strong: 0 8px 32px rgba(0,0,0,0.2);
    }

    /* =====================================================
       ELEGANT MODERN NAVBAR DESIGN
       ===================================================== */
    
    .elegant-navbar {
      background: linear-gradient(135deg, 
        rgba(99, 125, 255, 0.95) 0%, 
        rgba(114, 107, 249, 0.95) 50%, 
        rgba(142, 84, 233, 0.95) 100%);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
      padding: 8px 0;
      height: 70px;
    }

    /* Brand Styling */
    .brand-container {
      display: flex;
      align-items: center;
      gap: 12px;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .brand-container:hover {
      transform: scale(1.02);
    }

    .brand-logo {
      border-radius: 8px;
      border: 2px solid rgba(255, 255, 255, 0.2);
      transition: all 0.3s ease;
    }

    .brand-text {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .brand-title {
      font-weight: 700;
      font-size: 1.1rem;
      color: rgba(223, 158, 17, 0.815);
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .brand-subtitle {
      font-size: 0.65rem;
      color: rgba(231, 137, 13, 0.8);
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    /* Toolbar Container */
    .toolbar-container {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 16px;
      flex-wrap: wrap;
      flex: 1;
      padding: 0 20px;
    }

    /* Tool Sections */
    .tool-section {
      display: flex;
      align-items: center;
      gap: 4px;
      background: rgba(255, 255, 255, 0.08);
      padding: 5px;
      border-radius: 14px;
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.1);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .tool-section:hover {
      background: rgba(255, 255, 255, 0.12);
      transform: translateY(-1px);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }

    /* Tool Dividers */
    .tool-divider {
      width: 1px;
      height: 24px;
      background: rgba(255, 255, 255, 0.2);
      margin: 0 4px;
    }

    /* Base Tool Button */
    .tool-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
      min-width: 34px;
      height: 34px;
      border: none;
      border-radius: 10px;
      font-size: 0.75rem;
      font-weight: 600;
      text-decoration: none;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
      overflow: hidden;
    }

    .tool-btn:focus {
      outline: none;
      box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    }

    .tool-btn i {
      font-size: 0.9rem;
      transition: all 0.3s ease;
    }

    .tool-text {
      font-size: 0.7rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      white-space: nowrap;
    }

    /* Tool Button Hover Effects */
    .tool-btn:hover {
      transform: translateY(-2px) scale(1.15);
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
      background: rgba(255, 255, 255, 0.25) !important;
      backdrop-filter: blur(15px);
      border: 1px solid rgba(255, 255, 255, 0.4) !important;
    }

    .tool-btn:hover i {
      font-size: 1.2rem;
      transform: scale(1.1);
      color: white !important;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .tool-btn:hover .tool-text {
      color: white !important;
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
      font-weight: 700;
    }

    .tool-btn:active {
      transform: translateY(0) scale(0.98);
    }

    /* Specific Tool Colors */
    .draw-tool {
      background: rgba(59, 130, 246, 0.15);
      color: #60a5fa;
      border: 1px solid rgba(59, 130, 246, 0.2);
    }

    .draw-tool:hover {
      background: rgba(59, 130, 246, 0.4) !important;
      color: white !important;
      border: 1px solid rgba(59, 130, 246, 0.6) !important;
    }

    .edit-tool {
      background: rgba(245, 158, 11, 0.15);
      color: #fbbf24;
      border: 1px solid rgba(245, 158, 11, 0.2);
    }

    .edit-tool:hover {
      background: rgba(245, 158, 11, 0.4) !important;
      color: white !important;
      border: 1px solid rgba(245, 158, 11, 0.6) !important;
    }

    .cut-tool {
      background: rgba(239, 68, 68, 0.15);
      color: #f87171;
      border: 1px solid rgba(239, 68, 68, 0.2);
    }

    .cut-tool:hover {
      background: rgba(239, 68, 68, 0.4) !important;
      color: white !important;
      border: 1px solid rgba(239, 68, 68, 0.6) !important;
    }

    .action-tool {
      background: rgba(34, 197, 94, 0.15);
      color: #4ade80;
      border: 1px solid rgba(34, 197, 94, 0.2);
    }

    .action-tool:hover {
      background: rgba(34, 197, 94, 0.25);
      color: #86efac;
    }

    .save-tool {
      background: rgba(245, 158, 11, 0.15);
      color: #fbbf24;
      border: 1px solid rgba(245, 158, 11, 0.2);
    }

    .save-tool:hover {
      background: rgba(245, 158, 11, 0.4) !important;
      color: white !important;
      border: 1px solid rgba(245, 158, 11, 0.6) !important;
    }

    .load-tool {
      background: rgba(34, 197, 94, 0.15);
      color: #4ade80;
      border: 1px solid rgba(34, 197, 94, 0.2);
    }

    .load-tool:hover {
      background: rgba(34, 197, 94, 0.4) !important;
      color: white !important;
      border: 1px solid rgba(34, 197, 94, 0.6) !important;
    }

    .undo-tool, .redo-tool {
      background: rgba(168, 85, 247, 0.15);
      color: #a855f7;
      border: 1px solid rgba(168, 85, 247, 0.2);
    }

    .undo-tool:hover, .redo-tool:hover {
      background: rgba(168, 85, 247, 0.4) !important;
      color: white !important;
      border: 1px solid rgba(168, 85, 247, 0.6) !important;
    }


    /* Green Update Tool */
    .update-tool {
      background: rgba(34, 197, 94, 0.15);
      color: #4ade80;
      border: 1px solid rgba(34, 197, 94, 0.2);
    }

    .update-tool:hover {
      background: rgba(34, 197, 94, 0.4) !important;
      color: white !important;
      border: 1px solid rgba(34, 197, 94, 0.6) !important;
    }

    /* Dynamic Undo/Redo States */
    .undo-tool.disabled, .redo-tool.disabled {
      background: rgba(148, 163, 184, 0.08);
      color: #9ca3af;
      border: 1px solid rgba(148, 163, 184, 0.1);
      cursor: not-allowed;
      opacity: 0.5;
    }

    .undo-tool.available {
      background: rgba(34, 197, 94, 0.15);
      color: #4ade80;
      border: 1px solid rgba(34, 197, 94, 0.2);
    }

    .undo-tool.available:hover {
      background: rgba(34, 197, 94, 0.25);
      color: #86efac;
    }

    .redo-tool.available {
      background: rgba(34, 197, 94, 0.15);
      color: #4ade80;
      border: 1px solid rgba(34, 197, 94, 0.2);
    }

    .redo-tool.available:hover {
      background: rgba(34, 197, 94, 0.25);
      color: #86efac;
    }

    .route-tool {
      background: rgba(249, 115, 22, 0.15);
      color: #fb923c;
      border: 1px solid rgba(249, 115, 22, 0.2);
    }

    .route-tool:hover {
      background: rgba(249, 115, 22, 0.4) !important;
      color: white !important;
      border: 1px solid rgba(249, 115, 22, 0.6) !important;
    }

    .route-tool.route-active {
      background: rgba(249, 115, 22, 0.4);
      color: white;
      box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
      transform: scale(1.05);
    }

    .region-list-tool {
      background: rgba(168, 85, 247, 0.15);
      color: #c084fc;
      border: 1px solid rgba(168, 85, 247, 0.2);
    }

    .region-list-tool:hover {
      background: rgba(168, 85, 247, 0.4) !important;
      color: white !important;
      border: 1px solid rgba(168, 85, 247, 0.6) !important;
    }

    .panel-tool {
      background: rgba(59, 130, 246, 0.15);
      color: #60a5fa;
      border: 1px solid rgba(59, 130, 246, 0.2);
    }

    .panel-tool:hover {
      background: rgba(59, 130, 246, 0.4) !important;
      color: white !important;
      border: 1px solid rgba(59, 130, 246, 0.6) !important;
    }

    .config-tool {
      background: rgba(147, 51, 234, 0.15);
      color: #a855f7;
      border: 1px solid rgba(147, 51, 234, 0.2);
    }

    .config-tool:hover {
      background: rgba(147, 51, 234, 0.4) !important;
      color: white !important;
      border: 1px solid rgba(147, 51, 234, 0.6) !important;
    }


    .danger-tool {
      background: rgba(239, 68, 68, 0.15);
      color: #f87171;
      border: 1px solid rgba(239, 68, 68, 0.2);
    }

    .danger-tool:hover {
      background: rgba(239, 68, 68, 0.4) !important;
      color: white !important;
      border: 1px solid rgba(239, 68, 68, 0.6) !important;
      box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
    }

    /* Active States */
    .tool-btn.active {
      transform: scale(1.05);
      box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    }

    .tool-btn.active::after {
      content: '';
      position: absolute;
      bottom: 2px;
      left: 50%;
      transform: translateX(-50%);
      width: 16px;
      height: 2px;
      background: currentColor;
      border-radius: 1px;
      opacity: 0.8;
    }

    /* Status Bar Enhancement */
    .status-bar {
      animation: statusSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      border-radius: 24px;
      background: rgba(0, 0, 0, 0.85);
      backdrop-filter: blur(16px);
      border: 1px solid rgba(255, 255, 255, 0.1);
    }

    @keyframes statusSlideIn {
      from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px) scale(0.9);
      }
      to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
      }
    }

    /* Responsive Design */
    @media (max-width: 1200px) {
      .tool-text {
        display: none;
      }
      .tool-btn {
        min-width: 32px;
        height: 32px;
      }
    }

    @media (max-width: 768px) {
      .toolbar-container {
        gap: 8px;
      }
      .tool-section {
        gap: 2px;
        padding: 4px;
      }
      .tool-btn {
        min-width: 28px;
        height: 28px;
      }
      .tool-btn i {
        font-size: 0.9rem;
      }
      .brand-title {
        font-size: 1rem;
      }
      .brand-subtitle {
        font-size: 0.6rem;
      }
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      background: #f8f9fa;
    }

    /* Navbar Styling */
    .navbar {
      background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
      border-bottom: 1px solid #e9ecef;
      box-shadow: var(--shadow-light);
      height: var(--navbar-height);
      backdrop-filter: blur(10px);
    }

    .navbar-brand img {
      filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    }

    /* Button Styling */
    .btn {
      border-radius: var(--border-radius);
      font-weight: 500;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
    }

    .btn::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
      transition: left 0.5s;
    }

    .btn:hover::before {
      left: 100%;
    }

    /* Enhanced Button Styles for Panels */
    .btn-primary {
      background: linear-gradient(135deg, 
        rgba(99, 125, 255, 0.9) 0%, 
        rgba(114, 107, 249, 0.9) 100%);
      border: none;
      border-radius: 12px;
      box-shadow: 0 4px 15px rgba(99, 125, 255, 0.3);
      font-weight: 600;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(99, 125, 255, 0.4);
      background: linear-gradient(135deg, 
        rgba(99, 125, 255, 1) 0%, 
        rgba(114, 107, 249, 1) 100%);
    }

    .btn-success {
      background: linear-gradient(135deg, var(--success-color), #157347);
      border: none;
      border-radius: 12px;
      box-shadow: 0 4px 15px rgba(25, 135, 84, 0.3);
      font-weight: 600;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .btn-success:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(25, 135, 84, 0.4);
    }

    .btn-outline-primary {
      border: 2px solid rgba(99, 125, 255, 0.6);
      color: rgba(99, 125, 255, 0.9);
      background: rgba(99, 125, 255, 0.05);
      border-radius: 12px;
      font-weight: 600;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .btn-outline-primary:hover {
      background: rgba(99, 125, 255, 0.9);
      color: white;
      transform: translateY(-1px);
      box-shadow: 0 4px 15px rgba(99, 125, 255, 0.3);
    }

    /* Map Styling */
    #map {
      position: absolute;
      top: 70px;
      right: 0;
      bottom: 0;
      left: 0;
      border-radius: 0;
      box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    }


    /* Enhanced Offcanvas Styling */
    .offcanvas {
      background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
      border: none;
      box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
      backdrop-filter: blur(20px);
    }

    .offcanvas-header {
      background: linear-gradient(135deg, 
        rgba(99, 125, 255, 0.95) 0%, 
        rgba(114, 107, 249, 0.95) 50%, 
        rgba(142, 84, 233, 0.95) 100%);
      color: white;
      border-radius: 0;
      margin: 0;
      padding: 1.5rem;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .offcanvas-title {
      font-weight: 700;
      font-size: 1.1rem;
      display: flex;
      align-items: center;
      gap: 10px;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .offcanvas-title i {
      font-size: 1.2rem;
      opacity: 0.9;
    }

    .offcanvas-body {
      padding: 1.5rem;
      background: rgba(255, 255, 255, 0.7);
      backdrop-filter: blur(10px);
    }

    /* Form Styling */
    .form-control, .form-select {
      border-radius: var(--border-radius);
      border: 2px solid #e9ecef;
      transition: all 0.3s ease;
    }

    .form-control:focus, .form-select:focus {
      border-color: var(--primary-color);
      box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    }

    /* Enhanced Card Styling */
    .config-card {
      background: rgba(255, 255, 255, 0.95);
      border-radius: 16px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.2);
      margin-bottom: 1.5rem;
      overflow: hidden;
      backdrop-filter: blur(10px);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .config-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    }

    .config-card-header {
      background: linear-gradient(135deg, 
        rgba(99, 125, 255, 0.1) 0%, 
        rgba(142, 84, 233, 0.1) 100%);
      border-bottom: 1px solid rgba(99, 125, 255, 0.2);
      padding: 1rem 1.25rem;
      font-weight: 700;
      color: #4c51bf;
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.9rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .config-card-header i {
      font-size: 1rem;
      opacity: 0.8;
    }

    .config-card-body {
      padding: 1.25rem;
      background: rgba(255, 255, 255, 0.6);
    }

    /* Simplified Drag & Drop Zone */
    .drop-zone {
      border: 2px dashed #007bff;
      border-radius: 8px;
      background: #f8f9fa;
      padding: 1.5rem;
      text-align: center;
      transition: all 0.2s ease;
      cursor: pointer;
      position: relative;
    }

    .drop-zone:hover {
      border-color: #0056b3;
      background: #e7f3ff;
    }

    .drop-zone.drag-over {
      border-color: #28a745;
      background: #d4edda;
      border-style: solid;
    }

    .drop-zone-icon {
      font-size: 2rem;
      color: #007bff;
      margin-bottom: 0.5rem;
    }

    .drop-zone:hover .drop-zone-icon {
      color: #0056b3;
    }

    .drop-zone.drag-over .drop-zone-icon {
      color: #28a745;
    }

    .drop-zone-title {
      color: #495057;
      font-weight: 600;
      margin-bottom: 0.25rem;
      font-size: 1rem;
    }

    .drop-zone-text {
      color: #6c757d;
      margin-bottom: 0;
      font-size: 0.9rem;
    }

    .drop-zone-loading {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(255, 255, 255, 0.9);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      border-radius: 8px;
    }

    /* Excel File Info */
    .excel-file-info {
      background: rgba(34, 197, 94, 0.1);
      border: 1px solid rgba(34, 197, 94, 0.2);
      border-radius: 12px;
      padding: 1rem;
    }

    /* Column Mapping */
    .column-mapping {
      background: rgba(99, 125, 255, 0.05);
      border-radius: 12px;
      padding: 1.25rem;
      border: 1px solid rgba(99, 125, 255, 0.1);
    }

    /* Excel Preview Table */
    .excel-preview {
      background: white;
      border-radius: 12px;
      padding: 1rem;
      border: 1px solid rgba(0, 0, 0, 0.1);
    }

    .excel-preview .table {
      margin-bottom: 0;
      font-size: 0.85rem;
    }

    .excel-preview .table th {
      background: rgba(99, 125, 255, 0.8) !important;
      color: white;
      font-weight: 600;
      border: none;
      padding: 0.5rem 0.75rem;
    }

    .excel-preview .table td {
      padding: 0.5rem 0.75rem;
      border-color: rgba(0, 0, 0, 0.1);
    }

    /* Region List Styling */
    .region-item {
      background: white;
      border-radius: var(--border-radius);
      box-shadow: var(--shadow-light);
      margin-bottom: 0.5rem;
      padding: 0.75rem;
      border-left: 4px solid var(--primary-color);
      transition: all 0.3s ease;
    }

    .region-item:hover {
      transform: translateX(5px);
      box-shadow: var(--shadow-medium);
    }

    /* Filter Chips */
    .filter-chip {
      display: inline-block;
      background: var(--primary-color);
      color: white;
      padding: 0.25rem 0.75rem;
      border-radius: 20px;
      font-size: 0.85rem;
      margin: 0.25rem;
      transition: all 0.3s ease;
    }

    .filter-chip:hover {
      background: #0b5ed7;
      transform: scale(1.05);
    }

    /* Modal Styling */
    .modal-content {
      border-radius: var(--border-radius);
      border: none;
      box-shadow: var(--shadow-medium);
    }

    /* Hide Leaflet Default Controls */
    .leaflet-control-zoom,
    .leaflet-control-attribution,
    .leaflet-draw-toolbar,
    .leaflet-draw-edit-toolbar {
      display: none !important;
    }

    /* Hide leaflet-bar but keep layer control */
    .leaflet-bar:not(.leaflet-control-layers) {
      display: none !important;
    }

    /* Allow layer control to remain visible and functional */
    .leaflet-control-layers {
      display: block !important;
      pointer-events: auto !important;
    }

    /* Active States for Tool Buttons */
    .tool-btn.active {
      transform: scale(1.05);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
      color: white !important;
    }

    .tool-btn.active i,
    .tool-btn.active .tool-text {
      color: white !important;
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }

    /* Specific active states for different tool types */
    .edit-tool.active {
      background: rgba(245, 158, 11, 0.5) !important;
      border: 1px solid rgba(245, 158, 11, 0.8) !important;
    }

    .cut-tool.active {
      background: rgba(239, 68, 68, 0.5) !important;
      border: 1px solid rgba(239, 68, 68, 0.8) !important;
    }

    .draw-tool.active {
      background: rgba(59, 130, 246, 0.5) !important;
      border: 1px solid rgba(59, 130, 246, 0.8) !important;
    }

    .modal-header {
      background: linear-gradient(135deg, var(--primary-color), #0b5ed7);
      color: white;
      border-radius: var(--border-radius) var(--border-radius) 0 0;
    }

    /* =====================================================
       REGIO MANAGER MODAL STYLING
       ===================================================== */

    .regio-manager-modal {
      border: none;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
      border-radius: 20px;
      overflow: hidden;
      backdrop-filter: blur(20px);
    }

    .regio-manager-modal .modal-header {
      background: linear-gradient(135deg, 
        rgba(147, 51, 234, 0.95) 0%, 
        rgba(168, 85, 247, 0.95) 50%, 
        rgba(192, 132, 252, 0.95) 100%);
      border: none;
      padding: 1.5rem 2rem;
    }

    .regio-manager-modal .modal-body {
      padding: 2rem;
      background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    }

    .regio-manager-modal .modal-footer {
      background: rgba(248, 249, 250, 0.8);
      border: none;
      padding: 1rem 2rem 1.5rem;
    }

    /* Statistics Cards */
    .stat-card {
      background: rgba(255, 255, 255, 0.8);
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 16px;
      padding: 1.5rem;
      backdrop-filter: blur(10px);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

    .stat-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
      background: rgba(255, 255, 255, 0.9);
    }

    .stat-number {
      font-size: 2rem;
      font-weight: 700;
      color: var(--primary-color);
      display: block;
      margin-top: 0.5rem;
    }

    /* Compact Statistics Cards - 50% smaller */
    .stat-card-compact {
      background: rgba(255, 255, 255, 0.8);
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 12px;
      padding: 0.75rem;
      backdrop-filter: blur(10px);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    }

    .stat-card-compact:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
      background: rgba(255, 255, 255, 0.9);
    }

    .stat-card-compact h6 {
      font-size: 0.75rem;
      margin-top: 0.25rem;
    }

    .stat-card-compact i {
      font-size: 1.5rem;
    }

    .stat-number-compact {
      font-size: 1rem;
      font-weight: 700;
      color: var(--primary-color);
      display: block;
      margin-top: 0.25rem;
    }

    /* Section Titles */
    .section-title {
      color: #495057;
      font-weight: 600;
      font-size: 1rem;
      margin-bottom: 1rem;
      padding-bottom: 0.5rem;
      border-bottom: 2px solid rgba(147, 51, 234, 0.1);
    }

    /* Configuration Items */
    .configs-list {
      max-height: 300px;
      overflow-y: auto;
      scrollbar-width: thin;
      scrollbar-color: rgba(147, 51, 234, 0.3) transparent;
    }

    .configs-list::-webkit-scrollbar {
      width: 6px;
    }

    .configs-list::-webkit-scrollbar-track {
      background: transparent;
    }

    .configs-list::-webkit-scrollbar-thumb {
      background: rgba(147, 51, 234, 0.3);
      border-radius: 3px;
    }

    .config-item {
      background: rgba(255, 255, 255, 0.6);
      border: 1px solid rgba(255, 255, 255, 0.3);
      border-radius: 12px;
      margin-bottom: 0.75rem;
      padding: 1rem;
      backdrop-filter: blur(8px);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .config-item:hover {
      background: rgba(255, 255, 255, 0.8);
      border-color: rgba(147, 51, 234, 0.2);
      transform: translateX(4px);
      box-shadow: 0 4px 20px rgba(147, 51, 234, 0.1);
    }

    .config-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .config-info {
      flex: 1;
    }

    .config-name {
      color: #2d3748;
      font-weight: 600;
      margin-bottom: 0.25rem;
    }

    .config-actions {
      display: flex;
      gap: 0.25rem;
      opacity: 0.7;
      transition: opacity 0.3s ease;
    }

    .config-item:hover .config-actions {
      opacity: 1;
    }

    .config-actions .btn {
      border-radius: 8px;
      padding: 0.25rem 0.5rem;
      transition: all 0.3s ease;
    }

    .config-actions .btn:hover {
      transform: scale(1.1);
    }

    /* Quick Actions Buttons */
    .btn-group .btn {
      border-radius: 12px !important;
      font-weight: 600;
      padding: 0.75rem 1rem;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      border: 2px solid transparent;
    }

    .btn-group .btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }

    .btn-group .btn-outline-success:hover {
      background: linear-gradient(135deg, #22c55e, #16a34a);
      border-color: #22c55e;
    }

    .btn-group .btn-outline-warning:hover {
      background: linear-gradient(135deg, #f59e0b, #d97706);
      border-color: #f59e0b;
    }

    .btn-group .btn-outline-info:hover {
      background: linear-gradient(135deg, #0ea5e9, #0284c7);
      border-color: #0ea5e9;
    }

    /* Input Group Styling */
    .regio-manager-modal .input-group .form-control {
      border-radius: 12px 0 0 12px;
      border: 2px solid rgba(147, 51, 234, 0.2);
      padding: 0.75rem 1rem;
      font-size: 0.95rem;
      transition: all 0.3s ease;
    }

    .regio-manager-modal .input-group .form-control:focus {
      border-color: rgba(147, 51, 234, 0.6);
      box-shadow: 0 0 0 0.2rem rgba(147, 51, 234, 0.1);
    }

    .regio-manager-modal .input-group .btn {
      border-radius: 0 12px 12px 0;
      padding: 0.75rem 1.5rem;
      font-weight: 600;
    }

    /* Empty State */
    .configs-list .text-muted {
      padding: 3rem 1rem;
    }

    .configs-list .display-1 {
      font-size: 4rem;
      opacity: 0.3;
    }

    /* Badge Styling */
    .badge {
      font-size: 0.75rem;
      padding: 0.35rem 0.65rem;
      border-radius: 8px;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
      .regio-manager-modal .modal-body {
        padding: 1rem;
      }
      
      .stat-card {
        padding: 1rem;
        margin-bottom: 1rem;
      }
      
      .stat-number {
        font-size: 1.5rem;
      }
      
      .config-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
      }
      
      .config-actions {
        opacity: 1;
      }
      
      .btn-group {
        flex-direction: column;
      }
      
      .btn-group .btn {
        margin-bottom: 0.5rem;
        border-radius: 12px !important;
      }
    }

    /* Responsive Design */
    @media (max-width: 768px) {
      .quick-access {
        left: 10px;
        min-width: 160px;
      }
      
      .navbar .d-flex {
        gap: 0.5rem !important;
      }
      
      .btn {
        padding: 0.375rem 0.5rem;
      }
    }

    /* Loading Animation */
    .loading {
      position: relative;
    }

    .loading::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 20px;
      height: 20px;
      margin: -10px 0 0 -10px;
      border: 2px solid #f3f3f3;
      border-top: 2px solid var(--primary-color);
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }

    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    /* Leaflet Custom Styling */
    .leaflet-tile {
      border: none !important;
      image-rendering: auto;
    }

    .leaflet-container {
      background: #f1f3f4;
    }

    .leaflet-popup-content-wrapper {
      border-radius: var(--border-radius);
      box-shadow: var(--shadow-medium);
    }
    
    /* Region Summary Styles */
    .region-summary {
      background-color: rgba(51, 136, 255, 0.9);
      color: white;
      border: 3px solid white;
      border-radius: 50%;
      padding: 10px;
      text-align: center;
      min-width: 70px;
      min-height: 70px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      box-shadow: 0 4px 12px rgba(0,0,0,0.3);
      font-weight: 600;
      line-height: 1.2;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .region-summary.cut-region {
      animation: pulse-cut 2s infinite;
      border-color: #ff6b6b;
      border-width: 4px;
    }
    
    @keyframes pulse-cut {
      0% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7); }
      70% { box-shadow: 0 0 0 10px rgba(255, 107, 107, 0); }
      100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0); }
    }
    
    /* Hover effect for region summaries */
    .region-summary:hover {
      transform: scale(1.1);
      box-shadow: 0 6px 20px rgba(0,0,0,0.4);
      cursor: pointer;
    }