/* GeoMetaView - Professional Tool Design */
/* Force override all conflicting styles */

/* CRITICAL: Override Bootstrap CSS completely */
body .geo-tool-wrapper,
html .geo-tool-wrapper {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  background: linear-gradient(135deg, #0f0f0f 0%, #111827 50%, #0f0f0f 100%) !important;
  min-height: 100vh !important;
  color: #e5e7eb !important;
  line-height: 1.6 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Reset and Base Styles */
.geo-tool-wrapper * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.geo-tool-wrapper {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  background: linear-gradient(135deg, #0f0f0f 0%, #111827 50%, #0f0f0f 100%) !important;
  min-height: 100vh !important;
  color: #e5e7eb !important;
  line-height: 1.6 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 0 !important;
}

/* Override Bootstrap container */
.geo-tool-wrapper .container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 1rem !important;
}

/* Breadcrumb Navigation */
.geo-tool-wrapper .breadcrumb-nav {
  background: rgba(17, 24, 39, 0.8) !important;
  padding: 0.75rem 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  margin-top: 60px !important;
  position: relative !important;
  z-index: 999 !important;
}

.geo-tool-wrapper .breadcrumb {
  display: flex !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0.5rem !important;
  align-items: center !important;
}

.geo-tool-wrapper .breadcrumb-item {
  font-size: 0.875rem !important;
  color: #9ca3af !important;
}

.geo-tool-wrapper .breadcrumb-item a {
  color: #9ca3af !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

.geo-tool-wrapper .breadcrumb-item a:hover {
  color: #7c3aed !important;
}

.geo-tool-wrapper .breadcrumb-item.active {
  color: #ffffff !important;
  font-weight: 500 !important;
}

.geo-tool-wrapper .breadcrumb-item:not(:last-child)::after {
  content: '/' !important;
  margin-left: 0.5rem !important;
  color: #6b7280 !important;
}

/* Hero Header Section */
.geo-tool-wrapper .hero-header {
  background: linear-gradient(135deg, #0f0f0f 0%, #111827 50%, #0f0f0f 100%) !important;
  position: relative !important;
  overflow: hidden !important;
  padding: 60px 0 !important;
}

.geo-tool-wrapper .hero-header::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: 
    radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 86, 215, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(14, 165, 233, 0.1) 0%, transparent 50%) !important;
  animation: float 20s ease-in-out infinite !important;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(0.5deg); }
  66% { transform: translateY(5px) rotate(-0.5deg); }
}

.geo-tool-wrapper .hero-content {
  position: relative !important;
  z-index: 2 !important;
  text-align: center !important;
}

.geo-tool-wrapper .hero-title {
  font-size: 3rem !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  margin-bottom: 24px !important;
  color: #ffffff !important;
  letter-spacing: -0.025em !important;
}

.geo-tool-wrapper .gradient-text {
  background: linear-gradient(135deg, #7c3aed 0%, #f59e0b 50%, #ef4444 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  animation: gradient-shift 3s ease-in-out infinite !important;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.geo-tool-wrapper .hero-description {
  font-size: 1.125rem !important;
  color: #9ca3af !important;
  margin-bottom: 0 !important;
  max-width: 600px !important;
  margin: 0 auto !important;
  line-height: 1.6 !important;
}

/* Main Content */
.geo-tool-wrapper main {
  padding: 3rem 0 !important;
}

/* Upload Section */
.geo-tool-wrapper .upload-section {
  margin-bottom: 4rem !important;
}

.geo-tool-wrapper #dropzone {
  background: rgba(31, 41, 55, 0.4) !important;
  border: 2px dashed rgba(255, 255, 255, 0.2) !important;
  border-radius: 16px !important;
  padding: 2rem 1.5rem !important;
  text-align: center !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  margin-bottom: 1.5rem !important;
  position: relative !important;
  overflow: hidden !important;
}

.geo-tool-wrapper #dropzone::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: radial-gradient(circle at center, rgba(124, 58, 237, 0.1) 0%, transparent 70%) !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
}

.geo-tool-wrapper #dropzone:hover::before,
.geo-tool-wrapper #dropzone.dragover::before {
  opacity: 1 !important;
}

.geo-tool-wrapper #dropzone:hover, 
.geo-tool-wrapper #dropzone.dragover {
  border-color: #7c3aed !important;
  background: rgba(124, 58, 237, 0.1) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.2) !important;
}

.geo-tool-wrapper #dropzone svg {
  color: #7c3aed !important;
  margin-bottom: 1.5rem !important;
  filter: drop-shadow(0 4px 8px rgba(124, 58, 237, 0.3)) !important;
}

.geo-tool-wrapper #dropzone h3 {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.75rem !important;
  color: #ffffff !important;
}

.geo-tool-wrapper #dropzone p {
  color: #9ca3af !important;
  margin-bottom: 1rem !important;
  font-size: 1rem !important;
}

.geo-tool-wrapper .small-text {
  font-size: 0.875rem !important;
  color: #6b7280 !important;
  margin-top: 1.5rem !important;
}

/* Button Styles */
.geo-tool-wrapper .button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  font-size: 0.875rem !important;
  position: relative !important;
  overflow: hidden !important;
  z-index: 10 !important;
}

.geo-tool-wrapper .button.primary {
  background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
  color: white !important;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4) !important;
}

.geo-tool-wrapper .button.primary::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
  transition: left 0.5s ease !important;
}

.geo-tool-wrapper .button.primary:hover::before {
  left: 100% !important;
}

.geo-tool-wrapper .button.primary:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.5) !important;
}

.geo-tool-wrapper .button.secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #e5e7eb !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.geo-tool-wrapper .button.secondary:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
}

.geo-tool-wrapper .button.small {
  padding: 0.5rem 1rem !important;
  font-size: 0.8125rem !important;
}

.geo-tool-wrapper .button:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* Batch Controls */
.geo-tool-wrapper .batch-controls {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 1rem 1.5rem !important;
  background: rgba(31, 41, 55, 0.6) !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px) !important;
}

.geo-tool-wrapper .files-count {
  color: #9ca3af !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
}

/* Results Section */
.geo-tool-wrapper #results-section {
  background: rgba(31, 41, 55, 0.6) !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  overflow: hidden !important;
  margin-bottom: 4rem !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(15px) !important;
}

.geo-tool-wrapper #results-section.hidden {
  display: none !important;
}

/* Tabs */
.geo-tool-wrapper .tabs {
  display: flex !important;
  background: rgba(17, 24, 39, 0.8) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.geo-tool-wrapper .tab-button {
  flex: 1 !important;
  padding: 1.5rem 2rem !important;
  background: none !important;
  border: none !important;
  color: #9ca3af !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  border-bottom: 3px solid transparent !important;
  position: relative !important;
}

.geo-tool-wrapper .tab-button::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(124, 58, 237, 0.1) !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
}

.geo-tool-wrapper .tab-button:hover::before,
.geo-tool-wrapper .tab-button.active::before {
  opacity: 1 !important;
}

.geo-tool-wrapper .tab-button.active, 
.geo-tool-wrapper .tab-button:hover {
  color: #ffffff !important;
  border-bottom-color: #7c3aed !important;
}

/* Tab Content */
.geo-tool-wrapper .tab-content {
  display: none !important;
  padding: 3rem !important;
}

.geo-tool-wrapper .tab-content.active {
  display: block !important;
}

/* Map Container */
.geo-tool-wrapper #map-container {
  display: flex !important;
  gap: 2rem !important;
  margin-bottom: 2rem !important;
}

.geo-tool-wrapper #map {
  flex: 2 !important;
  height: 600px !important;
  border-radius: 16px !important;
  border: 2px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3) !important;
}

.geo-tool-wrapper .map-sidebar {
  flex: 1 !important;
  background: rgba(17, 24, 39, 0.6) !important;
  border-radius: 16px !important;
  padding: 2rem !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px) !important;
}

.geo-tool-wrapper .map-sidebar h3 {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  margin-bottom: 1.5rem !important;
  color: #ffffff !important;
}

.geo-tool-wrapper #location-list {
  max-height: 500px !important;
  overflow-y: auto !important;
}

/* Table Styles */
.geo-tool-wrapper .table-container {
  overflow-x: auto !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
}

.geo-tool-wrapper #metadata-table {
  width: 100% !important;
  background: rgba(17, 24, 39, 0.8) !important;
  border-collapse: collapse !important;
}

.geo-tool-wrapper #metadata-table th {
  background: rgba(31, 41, 55, 0.9) !important;
  padding: 1.5rem !important;
  text-align: left !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  border-bottom: 2px solid rgba(124, 58, 237, 0.3) !important;
  font-size: 0.875rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.geo-tool-wrapper #metadata-table td {
  padding: 1.5rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #e5e7eb !important;
  font-size: 0.9375rem !important;
}

.geo-tool-wrapper #metadata-table tr:hover {
  background: rgba(124, 58, 237, 0.1) !important;
}

/* Export Section */
.geo-tool-wrapper .export-section {
  background: rgba(31, 41, 55, 0.6) !important;
  border-radius: 20px !important;
  padding: 3rem !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  text-align: center !important;
  backdrop-filter: blur(15px) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
}

.geo-tool-wrapper .export-controls h3 {
  font-size: 2rem !important;
  font-weight: 800 !important;
  margin-bottom: 2rem !important;
  color: #ffffff !important;
}

.geo-tool-wrapper .buttons-group {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 1.5rem !important;
  justify-content: center !important;
}

/* Modal Styles */
.geo-tool-wrapper .modal {
  display: none !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.8) !important;
  z-index: 2000 !important;
  backdrop-filter: blur(15px) !important;
}

.geo-tool-wrapper .modal-content {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  background: #1f2937 !important;
  border-radius: 20px !important;
  max-width: 700px !important;
  width: 90% !important;
  max-height: 85vh !important;
  overflow-y: auto !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5) !important;
}

.geo-tool-wrapper .modal-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 2rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.geo-tool-wrapper .modal-header h2 {
  margin: 0 !important;
  color: #ffffff !important;
  font-size: 1.75rem !important;
  font-weight: 800 !important;
}

.geo-tool-wrapper .close-modal {
  background: none !important;
  border: none !important;
  font-size: 2rem !important;
  color: #9ca3af !important;
  cursor: pointer !important;
  padding: 0.5rem !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
  width: 48px !important;
  height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.geo-tool-wrapper .close-modal:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.geo-tool-wrapper .modal-body {
  padding: 2rem !important;
}

.geo-tool-wrapper .modal-body h3 {
  color: #ffffff !important;
  margin-top: 2rem !important;
  margin-bottom: 1rem !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
}

.geo-tool-wrapper .modal-body h3:first-child {
  margin-top: 0 !important;
}

.geo-tool-wrapper .modal-body p {
  color: #9ca3af !important;
  margin-bottom: 1.5rem !important;
  line-height: 1.7 !important;
}

.geo-tool-wrapper .modal-body ul, 
.geo-tool-wrapper .modal-body ol {
  color: #9ca3af !important;
  margin-left: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

.geo-tool-wrapper .modal-body li {
  margin-bottom: 0.75rem !important;
  line-height: 1.6 !important;
}

.geo-tool-wrapper .modal-body strong {
  color: #ffffff !important;
  font-weight: 600 !important;
}

.geo-tool-wrapper .modal-body a {
  color: #7c3aed !important;
  text-decoration: none !important;
  font-weight: 500 !important;
}

.geo-tool-wrapper .modal-body a:hover {
  text-decoration: underline !important;
  color: #8b5cf6 !important;
}

/* Loading Overlay */
.geo-tool-wrapper #loading-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.9) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 3000 !important;
  backdrop-filter: blur(20px) !important;
}

.geo-tool-wrapper #loading-overlay.hidden {
  display: none !important;
}

.geo-tool-wrapper .spinner {
  width: 60px !important;
  height: 60px !important;
  border: 4px solid rgba(255, 255, 255, 0.1) !important;
  border-top: 4px solid #7c3aed !important;
  border-radius: 50% !important;
  animation: spin 1s linear infinite !important;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.geo-tool-wrapper #loading-text {
  color: #ffffff !important;
  margin-top: 2rem !important;
  font-size: 1.25rem !important;
  font-weight: 500 !important;
}

/* EXIF Data Display */
.geo-tool-wrapper .exif-group {
  margin-bottom: 2rem !important;
  background: rgba(17, 24, 39, 0.6) !important;
  border-radius: 12px !important;
  padding: 1.5rem !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px) !important;
}

.geo-tool-wrapper .exif-group h4 {
  color: #ffffff !important;
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  margin-bottom: 1rem !important;
  padding-bottom: 0.5rem !important;
  border-bottom: 1px solid rgba(124, 58, 237, 0.3) !important;
}

.geo-tool-wrapper .exif-item {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  padding: 0.75rem 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.geo-tool-wrapper .exif-item:last-child {
  border-bottom: none !important;
}

.geo-tool-wrapper .exif-label {
  color: #d1d5db !important;
  font-weight: 600 !important;
  font-size: 0.9375rem !important;
  min-width: 140px !important;
  flex-shrink: 0 !important;
}

.geo-tool-wrapper .exif-value {
  color: #ffffff !important;
  font-size: 0.9375rem !important;
  text-align: right !important;
  word-break: break-word !important;
  max-width: 60% !important;
}

.geo-tool-wrapper .exif-value.no-data {
  color: #9ca3af !important;
  font-style: italic !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .geo-tool-wrapper .container {
    padding: 0 1rem !important;
  }
  
  .geo-tool-wrapper .hero-header {
    padding: 40px 0 !important;
  }
  
  .geo-tool-wrapper .hero-title {
    font-size: 2.25rem !important;
  }
  
  .geo-tool-wrapper .hero-description {
    font-size: 1rem !important;
  }
  
  .geo-tool-wrapper #dropzone {
    padding: 1.5rem 1rem !important;
  }
  
  .geo-tool-wrapper .batch-controls {
    padding: 0.75rem 1rem !important;
    flex-direction: column !important;
    gap: 1rem !important;
    text-align: center !important;
  }
  
  .geo-tool-wrapper .tabs {
    flex-direction: column !important;
  }
  
  .geo-tool-wrapper .tab-button {
    padding: 1rem 1.5rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-right: none !important;
  }
  
  .geo-tool-wrapper .tab-button.active, 
  .geo-tool-wrapper .tab-button:hover {
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
    border-left: 3px solid #7c3aed !important;
  }
  
  .geo-tool-wrapper #map-container {
    flex-direction: column !important;
  }
  
  .geo-tool-wrapper #map {
    height: 400px !important;
  }
  
  .geo-tool-wrapper .buttons-group {
    flex-direction: column !important;
    align-items: center !important;
  }
  
  .geo-tool-wrapper .logo h1 {
    font-size: 1.5rem !important;
  }
  
  .geo-tool-wrapper nav {
    gap: 0.75rem !important;
  }
  
  .geo-tool-wrapper .tab-content {
    padding: 2rem !important;
  }
  
  .geo-tool-wrapper .exif-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
  }
  
  .geo-tool-wrapper .exif-label {
    min-width: auto !important;
  }
  
  .geo-tool-wrapper .exif-value {
    text-align: left !important;
    max-width: 100% !important;
  }
}

@media (max-width: 480px) {
  .geo-tool-wrapper .modal-content {
    width: 95% !important;
  }
  
  .geo-tool-wrapper .modal-header, 
  .geo-tool-wrapper .modal-body {
    padding: 1.5rem !important;
  }
  
  .geo-tool-wrapper .intro {
    padding: 2rem 1.5rem !important;
  }
  
  .geo-tool-wrapper .export-section {
    padding: 2rem !important;
  }
}