.modo {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  min-height: 100vh;
  color: #1a202c;
}

.panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  width: 100%;
  max-width: 450px;
  height: auto;
  min-height: 600px;
  margin: 0 auto;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  position: relative;
}

.panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px 12px 0 0;
}

.mesa {
  color: white;
  font-size: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  width: 133px;
  height: 133px;
  box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: none;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.mesa:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.mesa::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 20%;
  width: 25%;
  height: 25%;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  filter: blur(6px);
}

.libre {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.ocupada {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.tecla {
  width: 75px;
  height: 75px;
  font-size: 56px;
  margin: 4px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  color: #374151;
  font-weight: 500;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.tecla:hover {
  background: #667eea;
  color: white;
  border-color: #667eea;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px 0 rgba(102, 126, 234, 0.25);
}

.tecla:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.modificador {
  width: 25px;
  height: 25px;
  font-size: 16px;
  font-weight: 600;
  margin: 3px;
  background: #6366f1;
  border: none;
  border-radius: 6px;
  color: white;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.15s ease;
}

.modificador:hover {
  background: #4f46e5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px 0 rgba(99, 102, 241, 0.25);
}

#frmControles > select {
  font-size: 16px;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  color: #374151;
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  transition: all 0.15s ease;
}

#frmControles > select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  font-size: 13px;
  margin-top: 16px;
}

thead th:nth-child(1) { width: 20%; }
thead th:nth-child(2) { width: 12%; }
thead th:nth-child(3) { width: 12%; }
thead th:nth-child(4) { width: 44%; }
thead th:nth-child(5) { width: 12%; }

td, th {
  border: 1px solid #f1f5f9;
  padding: 12px 8px;
  text-align: center;
  vertical-align: middle;
  word-wrap: break-word;
}

th {
  background: #64748b;
  color: #ffffff;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 8px;
  line-height: 1.2;
}

td {
  background: #ffffff;
  color: #374151;
  font-size: 12px;
  line-height: 1.4;
}

tr:nth-child(even) td {
  background: #f8fafc;
}

tr:hover td {
  background: #f1f5f9;
}

/* Botones */
.boton {
  background: #667eea;
  border: none;
  border-radius: 6px;
  color: white;
  font-weight: 500;
  margin-bottom: 8px;
  padding: 10px 20px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
}

.boton:hover {
  background: #5a67d8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px 0 rgba(102, 126, 234, 0.25);
}

.boton:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

@media (max-width: 1199px) {
  .panel {
    max-width: 400px;
    min-height: 550px;
    padding: 20px;
  }
  
  .mesa {
    width: 110px;
    height: 110px;
    font-size: 58px;
  }
  
  table {
    font-size: 12px;
  }
  
  td, th {
    padding: 10px 6px;
  }
}

@media (max-width: 767px) {
  .panel {
    max-width: 100%;
    min-height: 500px;
    margin: 10px;
    padding: 16px;
  }
  
  .mesa {
    width: 90px;
    height: 90px;
    font-size: 44px;
  }
  
  .tecla {
    width: 60px;
    height: 60px;
    font-size: 42px;
  }
  
  #frmControles > select {
    font-size: 14px;
    padding: 10px 12px;
  }
  
  table {
    font-size: 11px;
  }
  
  td, th {
    padding: 8px 4px;
  }
  
  th {
    font-size: 10px;
    padding: 10px 4px;
  }
  
  thead th:nth-child(1) { width: 18%; }
  thead th:nth-child(2) { width: 10%; }
  thead th:nth-child(3) { width: 10%; }
  thead th:nth-child(4) { width: 50%; }
  thead th:nth-child(5) { width: 12%; }
}
