body {
  font-family: Arial, sans-serif;
  background-color: #f0f2f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  margin: 20px;
  position: relative;
}

#run-app-btn {
  padding: 15px 30px;
  font-size: 18px;
  background-color: #4285F4;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#run-app-btn:hover {
  background-color: #357ae8;
}

#app-container {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 800px;
}

#timer {
  font-size: 48px;
  margin: 20px 0;
}

.controls {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.controls button, .controls .dropdown > button {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: sans-serif;
}

#start-btn { background-color: #28a745; color: white; }
#start-btn:hover { background-color: #218838; }

/* Dropdown Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown > button {
  background-color: #ffc107;
  color: white;
  display: flex;
  align-items: center;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: white;
  min-width: 120px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 4px;
  overflow: hidden;
}

.dropdown-content button {
  width: 100%;
  padding: 8px 12px;
  background-color: white;
  color: black;
  border: none;
  text-align: left;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.modal-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

#modal-yes, #modal-no {
  padding: 8px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: white;
}

#modal-yes { background-color: #28a745; }
#modal-yes:hover { background-color: #218838; }

#modal-no { background-color: #dc3545; }
#modal-no:hover { background-color: #c82333; }

/* PIP Bubbles */
.pip-bubble {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: white;
  margin: 5px;
  cursor: pointer;
}

/* Team Status Table */
#team-status {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

#team-status th, #team-status td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

#team-status th {
  background-color: #f8f9fa;
  font-weight: bold;
}

.status-cell {
  padding: 6px 12px;
  border-radius: 4px;
  display: inline-block;
}

/* Canvas for PIP */
#pip-canvas {
  display: none;
}
