/* style.css */

/* Global Reset */
* { box-sizing: border-box; }

/* Topbar Styles */
header {
  background: #1d1d1d;
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
header nav a {
  color: #fff;
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: bold;
}
header nav a:hover {
  text-decoration: underline;
}

/* Body */
body {
  font-family: sans-serif;
  background: #f8f8f8;
  margin: 0;
  padding: 0 1rem 2rem;
}

/* Panel Header */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.topbar a {
  text-decoration: none;
  color: #007BFF;
  font-weight: bold;
}

/* Message Styles */
.mensaje {
  text-align: center;
  color: green;
  margin: 1rem 0;
}

/* Primary Button */
.btn, .btn-nueva, form button {
  display: inline-block;
  background: #007BFF;
  color: white;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover, .btn-nueva:hover, form button:hover {
  background: #0056b3;
}

.btn-attended {
  background: #17a2b8;   /* turquesa */
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}
.btn-attended:hover {
  background: #138496;
}

.delete-btn {
  background: #dc3545;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}

.delete-btn:hover {
  background: #c82333;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: white;
}
th, td {
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  text-align: left;
}
th {
  background: #007BFF;
  color: white;
}

/* Links in table */
table a {
  color: #007BFF;
  text-decoration: none;
  margin-right: 0.5rem;
}
table a:hover {
  text-decoration: underline;
}

/* Inline forms in table cells */
form.inline {
  display: inline;
}

/* Form Styles */
form {
  max-width: 600px;
  margin: auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
form label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
}
form input[type="text"],
form input[type="datetime-local"],
form input[type="number"],
form select {
  width: 100%;
  padding: 0.8rem;
  margin-top: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
