/* Reset e fontes modernas */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background-color: #0f172a;
  color: #f1f5f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
}

/* Navegação */
header {
  width: 100%;
  background-color: #1e293b;
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.main-nav .tabs {
  display: flex;
  justify-content: center;
  gap: 2rem;
}
.tab {
  color: #cbd5e1;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: background 0.3s;
}
.tab:hover {
  background-color: #334155;
}
.tab.active {
  background-color: #7c3aed;
  color: #fff;
}

/* Container da TV */
.tv-container {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tv-screen {
  width: 500px;
  height: 280px;
  background-color: #1e293b;
  border: 6px solid #94a3b8;
  border-radius: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: inset 0 0 20px #9333ea;
  transition: all 0.5s ease;
}

/* Botões */
.control-button,
.save-button {
  padding: 0.75rem 1.5rem;
  margin: 0.5rem;
  background-color: #9333ea;
  border: none;
  color: white;
  font-weight: bold;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.3s ease;
}
.control-button:hover,
.save-button:hover {
  background-color: #7e22ce;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background-color: #1e293b;
  padding: 2rem;
  border-radius: 1rem;
  width: 90%;
  max-width: 500px;
  color: #f8fafc;
  box-shadow: 0 0 20px #9333ea;
}
.close-button {
  float: right;
  font-size: 1.5rem;
  cursor: pointer;
  color: #f87171;
}
.form-group {
  margin-bottom: 1rem;
}
input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #94a3b8;
  border-radius: 0.5rem;
  background-color: #0f172a;
  color: #f1f5f9;
}
