/* style.css */
body {
  font-family: Arial, sans-serif;
  background-color: #f2f2f2;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 700px;
  margin: 40px auto;
  padding: 30px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.logo {
  width: 100px;
  margin-bottom: 20px;
}

h1 {
  margin-bottom: 10px;
  color: #4e3ad8;
}

.subtitle {
  color: #666;
  margin-bottom: 30px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
}

label {
  font-weight: bold;
  color: #333;
}

input, select, button {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button {
  background-color: #4e3ad8;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #372db3;
}

.output {
  margin-top: 30px;
  text-align: left;
  font-size: 15px;
  white-space: pre-wrap;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  border: 1px dashed #ccc;
}


.subnet-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 15px;
}

.subnet-table th {
  background-color: #4e3ad8;
  color: white;
  padding: 10px;
  text-align: left;
}

.subnet-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #ddd;
}

.subnet-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.success-message {
  margin-top: 15px;
  color: #2e7d32;
  font-weight: bold;
  background-color: #e6f4ea;
  border-left: 5px solid #2e7d32;
  padding: 10px;
  border-radius: 4px;
}


.theme-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: 2px solid #4e3ad8;
  color: #4e3ad8;
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background-color: #4e3ad8;
  color: white;
}

/* DARK MODE */
body.dark {
  background-color: #0c0c0c;
  color: #f2f2f2;
}

body.dark .container {
  background-color: #1e1e1e;
  color: #f2f2f2;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
}

body.dark input,
body.dark select,
body.dark button {
  background-color: #2e2e2e;
  color: #f2f2f2;
  border-color: #555;
}

body.dark .subnet-table th {
  background-color: #333;
}

body.dark .subnet-table tr:nth-child(even) {
  background-color: #2b2b2b;
}

body.dark .success-message {
  background-color: #1f3a1f;
  border-left-color: #4caf50;
  color: #a5d6a7;
}


/* Ajustes de contraste no modo escuro */
body.dark label,
body.dark .subtitle,
body.dark h1 {
  color: #f2f2f2;
}

body.dark .subnet-table td {
  color: #f2f2f2;
}

body.dark .subnet-table th {
  color: #ffffff;
  background-color: #4e3ad8;
}

body.dark .subnet-table tr:nth-child(even) {
  background-color: #2d2d2d;
}

body.dark .subnet-table tr:nth-child(odd) {
  background-color: #1f1f1f;
}

body.dark input::placeholder,
body.dark select,
body.dark option {
  color: #e0e0e0;
}

.theme-toggle {
  z-index: 100;
}


body.dark button {
  background-color: #4e3ad8 !important;
  color: white;
  font-weight: bold;
}

body.dark button:hover {
  background-color: #372db3 !important;
}
