/*
CHANGE LOG
File: /static/css/modern-controls.css
Document Type: CSS Stylesheet
Purpose: Uniform button sizing for professional appearance
Version History:
2025-07-09 v3.0 - Made all buttons same size as Start/Stop buttons
*/

/* Main controls container */
#modern-controls {
  position: fixed;
  bottom: 20px;
  left: 05px;
  right: 05px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 06px;
  z-index: 1000;
  pointer-events: none;
}

.control-group {
  position: relative;
  pointer-events: auto;
}

/* ALL BUTTONS - UNIFORM SIZE */
.location-hamburger,
.survey-group button,
.photo-group button,
.save-hamburger {
  border: none;
  border-radius: 50px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  font-weight: 600;
  min-width: 100px;
  height: 56px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Location button */
.location-hamburger {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  backdrop-filter: blur(10px);
}

.location-hamburger:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
}

.location-hamburger.active {
  background: #007AFF;
  color: white;
}

/* Survey buttons */
.survey-group {
  display: flex;
  gap: 04px;
}

.survey-group button {
  background: #007AFF;
  color: white;
  box-shadow: 0 4px 20px rgba(0, 122, 255, 0.3);
}

.survey-group button:hover:not(:disabled) {
  background: #0056CC;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 122, 255, 0.4);
}

.survey-group button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#btn-stop {
  background: #FF3B30;
  box-shadow: 0 4px 20px rgba(255, 59, 48, 0.3);
}

#btn-stop:hover:not(:disabled) {
  background: #D12B20;
  box-shadow: 0 6px 25px rgba(255, 59, 48, 0.4);
}

/* Photo button - same size as others */
.photo-group {
  display: flex;
  align-items: center;
}

.photo-group button {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  backdrop-filter: blur(10px);
}

.photo-group button svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.photo-group button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
}

.photo-group button:disabled {
  background: rgba(200, 200, 200, 0.7);
  cursor: not-allowed;
  transform: none;
  color: #999;
}

.photo-group button:disabled svg {
  stroke: #999;
}

/* Save button */
.save-hamburger {
  background: #007AFF;
  color: white;
  box-shadow: 0 4px 20px rgba(52, 199, 89, 0.3);
}

.save-hamburger:hover {
  background: #28A745;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(52, 199, 89, 0.4);
}

.save-hamburger.active {
  background: #007AFF;
}

/* Location menu */
.location-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.location-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 10px;
  min-width: 140px;
}

.location-menu.show {
  display: flex;
}

.location-menu button {
  background: none;
  border: none;
  padding: 12px 16px;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  transition: background 0.2s ease;
  min-width: auto;
  height: auto;
  box-shadow: none;
  font-weight: normal;
}

.location-menu button:hover {
  background: rgba(0, 122, 255, 0.1);
}

/* Save menu */
.save-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.save-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 10px;
  min-width: 160px;
}

.save-menu.show {
  display: flex;
}

.save-menu button {
  background: none;
  border: none;
  padding: 12px 16px;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  transition: background 0.2s ease;
  min-width: auto;
  height: auto;
  box-shadow: none;
  font-weight: normal;
}

.save-menu button:hover {
  background: rgba(0, 122, 255, 0.1);
}

/* Mobile responsive */
@media (max-width: 480px) {
  #modern-controls {
    bottom: 15px;
    left: 05px;
    right: 05px;
    gap: 04px;
  }
  
  .location-hamburger,
  .survey-group button,
  .photo-group button,
  .save-hamburger {
    padding: 10px 12px;
    font-size: 14px;
    min-width: 70px;
    height: 48px;
  }
  
  .photo-group button svg {
    width: 20px;
    height: 20px;
  }
  
  .location-menu,
  .save-menu {
    min-width: 120px;
  }
}
