/*
 * WWC Admin reporting tool common styles
 *
 * This stylesheet is heavily inspired by the existing WWC Admin interface. It
 * embraces a dark theme with vibrant red accents to provide a cohesive
 * look and feel. Feel free to tweak colours if the live system evolves.
 */

/* Reset and base typography */
html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #0b0b0b;
  color: #eee;
  min-height: 100vh;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
}

/* Card component */
.card {
  background: #181818;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  margin-bottom: 20px;
}

/* Header / navbar */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: #101010;
  box-shadow: 0 2px 4px rgba(0,0,0,0.8);
  margin-bottom: 30px;
}
.header h1 {
  margin: 0;
  font-size: 24px;
  color: #fff;
}
.header nav a {
  color: #eee;
  margin-left: 20px;
  text-decoration: none;
  font-size: 14px;
  position: relative;
}
.header nav a:hover {
  color: #ff5252;
}

/* Buttons */
.btn {
  display: inline-block;
  background: #e53935;
  color: #fff;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover {
  background: #ff5252;
}
.btn-secondary {
  background: #444;
}
.btn-secondary:hover {
  background: #555;
}

/* Table styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
th, td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #333;
}
th {
  background: #111;
  color: #fff;
}
tr:hover {
  background: #222;
}

/* Form elements */
form label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}
form input[type="text"],
form input[type="date"],
form input[type="time"],
form input[type="number"],
form input[type="email"],
form textarea,
form select {
  width: 100%;
  background: #101010;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 12px;
  color: #eee;
  font-size: 14px;
  box-sizing: border-box;
}
form textarea {
  resize: vertical;
  min-height: 100px;
}

/* Field builder component */
.field-list {
  margin-top: 10px;
}
.field-item {
  background: #202020;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 10px;
  position: relative;
}
.field-item .remove-field {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #e53935;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 2px 6px;
  cursor: pointer;
  font-size: 12px;
}
.field-item .remove-field:hover {
  background: #ff5252;
}

.field-item .options-input {
  margin-top: 8px;
}

/* Modal (for confirm delete etc.) */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.3s;
}
.modal.active {
  visibility: visible;
  opacity: 1;
}
.modal-content {
  background: #181818;
  border-radius: 10px;
  padding: 20px;
  max-width: 400px;
  width: 100%;
  color: #eee;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}
.modal-content h3 {
  margin-top: 0;
  margin-bottom: 10px;
}
.modal-actions {
  text-align: right;
  margin-top: 20px;
}
.modal-actions button {
  margin-left: 10px;
}