/* ========================================
   MODERN 2025 STYLES - UPLOADER BUTTONS
   ======================================== */
#aoi-uploader button,
#anomaly-uploader button,
#deck-uploader button,
#element-uploader button {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
  color: #ffffff;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
}

#aoi-uploader button:hover:not([disabled]),
#anomaly-uploader button:hover:not([disabled]),
#deck-uploader button:hover:not([disabled]),
#element-uploader button:hover:not([disabled]) {
  background: linear-gradient(135deg, #475569 0%, #334155 100%);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

#aoi-uploader button:active:not([disabled]),
#anomaly-uploader button:active:not([disabled]),
#deck-uploader button:active:not([disabled]),
#element-uploader button:active:not([disabled]) {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

#aoi-uploader button[disabled],
#anomaly-uploader button[disabled],
#deck-uploader button[disabled],
#element-uploader button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========================================
   BASE STYLES
   ======================================== */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Roboto', sans-serif;
  color: #1f2937;
  background: #f9fafb;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   HEADER & FOOTER
   ======================================== */
header {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #ffffff;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(8px);
}

footer {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #cbd5e1;
  text-align: center;
  padding: 12px 24px;
  position: fixed;
  bottom: 0;
  width: 100%;
  font-size: 13px;
  font-weight: 400;
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* ========================================
   LAYOUT
   ======================================== */
.layout {
  display: flex;
  height: calc(100vh - 103px);
  margin-bottom: -50px;
  gap: 0;
}

/* ========================================
   SIDEBAR
   ======================================== */
.sidebar {
  background: #ffffff;
  width: 320px;
  padding: 24px;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.04);
  overflow-y: auto;
  border-right: 1px solid #e5e7eb;
}

.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-track {
  background: #f3f4f6;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.sidebar h2 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.3px;
}

.sidebar button,
.sidebar select {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
}

.sidebar button:hover {
  background: linear-gradient(135deg, #475569 0%, #334155 100%);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.sidebar button:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.sidebar select {
  background: #ffffff;
  color: #374151;
  border: 1.5px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sidebar select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ========================================
   STATISTICS
   ======================================== */
.statistics {
  margin: 16px 0;
  padding: 16px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.statistics h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 0;
  margin-bottom: 12px;
}

.statistics p {
  font-size: 14px;
  margin: 8px 0;
  color: #475569;
  line-height: 1.6;
}

/* ========================================
   job CONTAINER
   ======================================== */
.request_status{
    color:white;
}
.job-status{
    padding: 10px
}


/* ========================================
   MAP CONTAINER
   ======================================== */
.map-container {
  flex-grow: 1;
  position: relative;
  background: #f8fafc;
}

#map {
  height: 100%;
  width: 100%;
}

/* ========================================
   CONTROL PANEL
   ======================================== */
.control-panel {
  position: absolute;
  top: 16px;
  left: calc(100% - 440px);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 0;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04);
  z-index: 1000;
  cursor: move;
  width: 420px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  overflow: hidden;
}

.control-panel h4 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

/* ========================================
   CHART PANEL (CAROUSEL)
   ======================================== */
.chart-panel {
  position: absolute;
  bottom: 20px;
  left: calc(100% - 528px);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 0;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04);
  z-index: 1000;
  cursor: move;
  width: 506px;
  height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(226, 232, 240, 0.8);
  overflow: hidden;
}

/* ========================================
   CAROUSEL
   ======================================== */
.carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 100%;
  
}

.carousel img {
  max-width: 100%;
  max-height: calc(100% - 60px);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  cursor: pointer;
  transition: transform 0.2s ease;
}



.carousel-button {
  background-color: rgba(255, 255, 255, 0.9);
  color: #1e293b;
  border: 1.5px solid #e5e7eb;
  border-radius: 50%;
  cursor: pointer;
  padding: 8px;
  font-size: 1.8rem;
  line-height: 1;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-button.left {
  left: 12px;
      z-index: 1;
}

.carousel-button.right {
  right: 12px;
      z-index: 1;
}

.carousel-button:hover {
  background-color: #ffffff;
  border-color: #3b82f6;
  color: #3b82f6;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* ========================================
   PANEL HEADER
   ======================================== */
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  padding: 12px 16px;
  cursor: move;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  margin-bottom: 0;
  width: calc(100% - 32px);
}

.panel-header h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.panel-controls {
  display: flex;
  gap: 8px;
}

.panel-controls button {
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.panel-controls button:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

/* ========================================
   INPUT CONTAINER & INFO ICON
   ======================================== */
.input-container {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  position: relative;
}

.info-icon {
  margin-left: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #3b82f6;
  font-weight: 600;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #dbeafe;
  border: 1.5px solid #bfdbfe;
  transition: all 0.2s ease;
}

.info-icon:hover {
  background-color: #3b82f6;
  color: #ffffff;
  border-color: #2563eb;
  transform: scale(1.1);
}

.tooltip {
  display: none;
  position: absolute;
  background-color: #1f2937;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 250px;
}

.info-icon:hover + .tooltip {
  display: block;
  opacity: 1;
}

/* ========================================
   TABS
   ======================================== */
.tab-bar {
  display: flex;
  background-color: #f8fafc;
  border-bottom: 2px solid #e5e7eb;
  gap: 4px;
  padding: 0 8px;
}

.tab-button {
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  background-color: transparent;
  border: none;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  color: #64748b;
  border-radius: 8px 8px 0 0;
}

.tab-button:hover {
  background-color: #f1f5f9;
  color: #475569;
}

.tab-button.active {
  
  background-color: #ffffff;
  color: #1e293b;
  font-weight: 600;
  background: #d0d7e3;
}

.tab-content {
  display: none;
}

.tab {
  width: 224px;
  border-top-right-radius: 16px;
  border-top-left-radius: 16px;
  border: 1.5px solid #e5e7eb;
  margin-top: 12px;
  background: #ffffff;
  transition: all 0.2s ease;
}

.tab:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* ========================================
   CARDS
   ======================================== */
.card {
  width: 36vw;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.card-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 85px);
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.smooth-transition {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus styles for accessibility */
*:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

/* Improved selection colors */
::selection {
  background-color: #93c5fd;
  color: #1e293b;
}



.custom-file-btn {
  display: block;
  width: 93px;
  margin-bottom: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.custom-file-btn:hover {
  background: linear-gradient(135deg, #475569 0%, #334155 100%);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.custom-file-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}


/* ========================================
   RESET BUTTON
   ======================================== */
.reset-button {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  background: #ffffff;
  color: #334155;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.reset-button:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.reset-button:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  background: #f1f5f9;
}
