body {
  font-family: Arial, sans-serif;
  background: #f5f6fa;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}
/* Loader */
#loader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
#loader img {
  width: 120px;
  margin-bottom: 20px;
}
#loader p {
  font-size: 1.1rem;
  color: #007bff;
}

/* Layout chính */
body { font-family: Arial, sans-serif; background: #f4f6f9; margin: 0; }
header { padding: 10px 30px; background: #fff; border-bottom: 1px solid #ddd; display:flex; justify-content:space-between; align-items:center; }
.header-title { font-size: 1.5rem; font-weight: bold; color: #333; }
.header-clock { font-size: 1rem; color:#007bff; }
footer { margin-top: 40px; padding: 15px; background: #f5f5f5; text-align: center; color: #666; }
.flex-container { display: flex; gap: 30px; padding:20px; }
.container { flex: 1; }
.map-container { flex: 1; }
#map { height: 400px; width: 100%; margin-top: 20px; display: none; border: 1px solid #ccc; border-radius: 8px; }

/* Confirm box */
#confirmBox { display: none; margin-top: 15px; padding: 15px; border: 1px solid #ddd; border-radius: 8px; background: #fafafa; }
#confirmBox button { margin-right: 10px; padding: 8px 16px; border: none; border-radius: 5px; cursor: pointer; }
#confirmBtn { background: #28a745; color: white; }
#cancelBtn { background: #dc3545; color: white; }
#captureBtn { background: #007bff; color: white; }
#retakeBtn { background: orange; color: white; display:none; }

/* Camera */
video, img { margin-top: 10px; border: 1px solid #ccc; border-radius: 5px; max-width:320px; }
#preview { display:none; margin-top: 10px; }

.btn-row { margin-top: 10px; }
.project-info, .task-list, .other-task { margin-top: 10px; }

/* Bố cục chung */
.flex-container {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

/* Form container */
.container {
  background: #fff;
  padding: 32px 24px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  flex: 1;
  max-width: 400px;
}

h2 {
  text-align: center;
  color: #273c75;
  margin-bottom: 24px;
}

label {
  font-weight: 500;
  color: #353b48;
  display: block;
  margin-top: 10px;
}

input[type="text"] {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #dcdde1;
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
}

button {
  width: 100%;
  padding: 12px;
  background: #0097e6;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.2s;
}

button:hover {
  background: #40739e;
}

/* Map container */
.map-container {
  flex: 1;
  max-width: 600px;
}

#map {
  height: 400px;
  width: 100%;
  display: none;
  border-radius: 8px;
  overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
  .flex-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .container, .map-container {
    width: 100%;
    max-width: 500px;
  }
  #map {
    height: 300px;
  }
}

@media (max-width: 500px) {
  .container {
    padding: 18px 14px;
  }
  h2 {
    font-size: 20px;
  }
  input, button {
    font-size: 15px;
  }
}
/* Loader */
#loader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
#loader img {
  width: 120px;
  margin-bottom: 20px;
}
#loader p {
  font-size: 1.1rem;
  color: #007bff;
}

/* Layout chính */
body { font-family: Arial, sans-serif; background: #f4f6f9; margin: 0; }
header { padding: 10px 30px; background: #fff; border-bottom: 1px solid #ddd; display:flex; justify-content:space-between; align-items:center; }
.header-title { font-size: 1.5rem; font-weight: bold; color: #333; }
.header-clock { font-size: 1rem; color:#007bff; }
footer { margin-top: 40px; padding: 15px; background: #f5f5f5; text-align: center; color: #666; }
.flex-container { display: flex; gap: 30px; padding:20px; }
.container { flex: 1; }
.map-container { flex: 1; }
#map { height: 400px; width: 100%; margin-top: 20px; display: none; border: 1px solid #ccc; border-radius: 8px; }

/* Confirm box */
#confirmBox { display: none; margin-top: 15px; padding: 15px; border: 1px solid #ddd; border-radius: 8px; background: #fafafa; }
#confirmBox button { margin-right: 10px; padding: 8px 16px; border: none; border-radius: 5px; cursor: pointer; }
#confirmBtn { background: #28a745; color: white; }
#cancelBtn { background: #dc3545; color: white; }
#captureBtn { background: #007bff; color: white; }
#retakeBtn { background: orange; color: white; display:none; }

/* Camera */
video, img { margin-top: 10px; border: 1px solid #ccc; border-radius: 5px; max-width:320px; }
#preview { display:none; margin-top: 10px; }

.btn-row { margin-top: 10px; }
.project-info, .task-list, .other-task { margin-top: 10px; }
