

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Bahnschrift, sans-serif;
}

body {
    background-color: #f7f7f7;
    color: #333;
}

/* main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px;
    display: flex;
    flex-direction: column;
    position: relative; 
}



/* Previous Button Container */
.prev-container {
    position: absolute;
    top: 30px;
    left: 200px;
}

/* Next Button Container */
.next-container {
    position: absolute;
    top: 30px;
    right: 200px; 
}



/* Header */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
	margin-bottom:1rem;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 20px;
    font-size: 1rem;
    color: #555;
}


/* ---------------map ------------------*/


/* Map container */
.map {
    height: 500px;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
	margin-top: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ---------------messages ------------------*/


.success-message, .message.error {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
}

.success-message {
    background-color: #28a745;
    color: white;
}

.message.error {
    background-color: #dc3545;
    color: white;
}

/* ---------------Table ------------------


/* Table styles */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.table th, .table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #f1f1f1;
}

.table th {
    background-color: #034ea2;
    color: white;
}

.table tbody tr:hover {
    background-color: #f1f9ff;
}

.table td {
    color: #555;
}



/* ---------------buttons ------------------

/* Wrap the whole page in a flex row */
.page-wrapper {
  display: flex;
  flex-direction: row;
  width: 100%;
  min-height: 100vh;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  box-sizing: border-box;
}

/* Side column for Home, Clear, Export buttons stacked vertically */
.side-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px 5px;
  align-items: center;
  background-color: #f0f0f0; /* optional */
  /* fix width to keep layout consistent */
  width: 70px;
}

/* Remove all absolute positioning from these containers */
.home-button-container,
.clear-button-container,
.export-button-container,
.prev-container,
.next-container {
  position: static; /* override previous absolute */
}

/* Style the buttons inside side column as usual */
.home-button, .clear-button, .export-button {
  width: 50px;
  height: 50px;
  border-radius: 10%;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
}

.home-button img, .clear-button img, .export-button img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.home-button:hover, .clear-button:hover, .export-button:hover {
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.25);
  transform: translateY(-3px);
}

/* Navigation Buttons style (prev, next) */
.prev-container, .next-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
}

.prev-button, .next-button {
  width: 60px;
  height: 60px;
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.prev-button img, .next-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.prev-button:hover, .next-button:hover {
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.25);
  transform: translateY(-3px);
}

/* Main container grows and resizes with the page */
.container {
  flex: 1;
  max-width: 1200px;
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
}




.button_level1 {
    background-color: #034ea2;
    color: white;
    padding: 5px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.button_level1:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.button_level1:hover:enabled {
    background-color: #007bff;
    cursor: pointer;
}


/*  Buttons level 1 (sections) */
.button_level2 {
    background-color: #034ea2;
    color: white;
    padding: 10px;
    font-size: 0.9 rem;
    border: none;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.button_level2:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.button_level2:hover:enabled {
    background-color: #007bff;
	cursor: pointer;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 1rem; /* optional: adds space between the buttons */
  margin-top: 1rem; /* optional: adds spacing from elements above */
}



@keyframes breathing {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.4); /* Bigger than before */
  }
  100% {
    transform: scale(1);
  }
}

.breathing {
  animation: breathing 1.5s ease-in-out infinite;
}

#statusMessage {
  font-size: 1.5rem;
  color: #007bff;
  padding: 5px;
  background-color: #f0f8ff;
  text-align: center;
}

#errorMessage {
  color: red;
  font-weight: bold;
  font-size: 16px;
  background: none;
  
  transition: opacity 1.5s ease;
  margin: 10px 0;
  text-align: left;
  
  display: none;
  opacity: 0;
  pointer-events: none; /* so it doesn't block clicks when invisible */
  margin-bottom : 20px;
}

/* Container for the progress bar */
#uploadProgressContainer {
width: 100%;
background-color: #eee;
border-radius: 8px;
overflow: hidden;
margin: 20px 0;
height: 30px;
display: none; /* hidden by default */
}

/* The progress bar itself */
#uploadProgressBar {
height: 100%;
width: 0%;
background: linear-gradient(90deg, #4caf50, #81c784);
text-align: center;
line-height: 30px; /* center text vertically */
color: white;
font-weight: bold;
transition: width 0.3s ease, background 0.3s ease;
}



