/* style.css - Design Minimalista Profissional (Branco, Cinza e Toques de Lilás) */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f8f9fa;
  color: #333;
  line-height: 1.6;
  padding: 20px;
}

.container {
  max-width: 1000px;
  margin: 40px auto;
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
}

h1 {
  text-align: center;
  font-size: 2.2em;
  color: #444;
  margin-bottom: 8px;
  font-weight: 600;
}

h1 + p {
  text-align: center;
  color: #666;
  font-size: 1.05em;
  margin-bottom: 40px;
}

h2 {
  font-size: 1.4em;
  color: #9333ea; /* Lilás médio para títulos */
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8e0ff;
  font-weight: 500;
}

section {
  margin-bottom: 45px;
  padding: 25px;
  background: #fcfcff;
  border-radius: 10px;
  border: 1px solid #eee;
}

/* Uploads - Alinhados e limpos */
.upload-group {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.upload-group label {
  min-width: 180px;
  color: #444;
  font-weight: 500;
}

input[type="file"],
input[type="number"],
input[type="email"] {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  flex: 1;
  min-width: 250px;
}

input:focus {
  outline: none;
  border-color: #a78bfa;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
}

/* Botões padronizados - Bonitos e discretos */
button {
  padding: 11px 24px;
  background: #9333ea; /* Lilás principal */
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 500;
  transition: all 0.2s ease;
  min-width: 160px;
}

button:hover {
  background: #7c2ae0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.2);
}

button:active {
  transform: translateY(0);
}

/* Botão grande de iniciar envio */
button[onclick="startSending()"] {
  padding: 14px 32px;
  font-size: 1.1em;
  font-weight: 600;
  background: #6b21cc;
}

button[onclick="startSending()"]:hover {
  background: #5a1ab3;
}

/* Progress bars */
progress {
  width: 100%;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  background: #eee;
  margin: 20px 0;
}

progress::-webkit-progress-value {
  background: #a78bfa; /* Lilás suave */
  transition: width 0.4s ease;
}

progress::-moz-progress-bar {
  background: #a78bfa;
}

/* Status Cards - Minimalistas e elegantes */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.stat-card {
  background: #f5f0ff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #e8e0ff;
}

.stat-card h3 {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 10px;
  font-weight: 500;
}

.stat-card span {
  font-size: 2em;
  font-weight: 700;
  color: #9333ea; /* Lilás nos números */
}

/* Contagem regressiva */
#countdown {
  text-align: center;
  font-size: 1.6em;
  font-weight: 600;
  color: #9333ea;
  margin: 30px 0;
  padding: 15px;
  background: #f0e8ff;
  border-radius: 8px;
}

/* Tabela de logs */
.table-container {
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: white;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background: #f5f0ff;
  color: #444;
  font-weight: 600;
  padding: 14px 12px;
  text-align: left;
  position: sticky;
  top: 0;
  border-bottom: 2px solid #e8e0ff;
}

td {
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
}

tr:hover {
  background: #f8f5ff;
}

.progress-text {
  text-align: center;
  color: #666;
  font-size: 1.05em;
  margin-top: 10px;
}

.hidden { display: none; }

/* Responsividade */
@media (max-width: 768px) {
  .upload-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  input[type="file"], input[type="number"], input[type="email"] {
    min-width: auto;
  }
  
  button {
    width: 100%;
  }
}