/* /admin/assets/styles.css */

body {
  background: #1e293b;
  color: white;
  font-family: Arial, sans-serif;
  padding: 2rem;
  margin: 0;
}

h1 {
  text-align: left;
  margin-bottom: 1rem;
}

h2 {
  margin-bottom: 1rem;
}

.centered {
  text-align: center;
}

.left-align {
  text-align: left;
}

/* Buttons */
.btn {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  background: #3b82f6;
  text-decoration: none;
  color: white;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn.red {
  background: #ef4444;
  color: white;
}

.btn.green {
  background: #10b981;
  color: white;
}

.btn.small {
  padding: 4px 10px;
  font-size: 0.85rem;
  white-space: nowrap;
  min-width: 100px;
}

.btn:hover {
  opacity: 0.9;
}

/* Top Bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.top-bar h1 {
  margin: 0;
  font-size: 1.5em;
}

.top-buttons {
  display: flex;
  gap: 10px;
}

/* Table */
table {
  width: 100%;
  background: #334155;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

th, td {
  padding: 0.75rem;
  border-bottom: 1px solid #475569;
  text-align: left;
}

.green { color: #4ade80; }
.yellow { color: #facc15; }
.red-text { color: #f87171; }

.api-section {
  background: #334155;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.api-section h2 {
  font-size: 1rem;
  margin: 0;
  flex-shrink: 0;
}

.api-section input[type="text"] {
  width: 150px;
  padding: 6px;
  font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"] {
  width: 100%;
  padding: 10px;
  background: #ffffff;
  color: black;
  border: 1px solid #475569;
  border-radius: 6px;
  margin-top: 0.25rem;
}

input[type="checkbox"] {
  margin-right: 0.5rem;
}

label {
  display: block;
  margin-top: 1rem;
}

.message {
  color: #a3e635;
  margin-top: 1rem;
  text-align: center;
}

.table-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
}

.pagination {
  text-align: center;
  margin-top: 1rem;
}

.pagination a {
  margin: 0 5px;
  text-decoration: none;
  color: #93c5fd;
}

.pagination strong {
  text-decoration: underline;
  font-weight: bold;
  margin: 0 5px;
  color: white;
}

.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 10px;
}

.controls select {
  width: 60px;
}

.controls form {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Form containers */
.form-box {
  background: #334155;
  padding: 2rem;
  border-radius: 12px;
  width: 350px;
  margin: 0 auto;
}

.back-link {
  text-align: center;
  margin-bottom: 1rem;
}

.back-link a {
  color: #93c5fd;
  text-decoration: none;
}

.flex-row {
  display: flex;
  gap: 1rem;
}

.flex-row > div {
  flex: 1;
}

.login-box {
  background: #334155;
  padding: 2rem;
  border-radius: 10px;
  width: 450px; /* slightly wider for breathing room */
  text-align: center;
  margin: 50px auto;
  box-sizing: border-box;
}

.login-box input,
.login-box button {
  box-sizing: border-box;
}

.login-box h2 {
  margin-bottom: 1rem;
}

.login-box input[type="text"],
.login-box input[type="password"] {
  width: 100%;
  padding: 10px;
  margin: 0.5rem 0;
  border: none;
  border-radius: 5px;
  background: white;
  color: black;
}

.login-box button {
  width: 100%;
  padding: 10px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 0.5rem;
}

.error {
  color: #f87171;
  margin-top: 1rem;
}

.forgot-password {
  margin-top: 1rem;
  font-size: 0.85rem;
}

.forgot-password a {
  color: #93c5fd;
  text-decoration: none;
}