/* Reset some basic elements */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  /* Use a solid black background; the animated canvas will sit on top */
  background-color: #000;
  color: #f5f5f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

header {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 1rem 2rem;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 2px;
  /* Purple colour for Ryvel branding */
  color: #9720f9;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #f5f5f5;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #9720f9;
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem;
}

.container {
  width: 100%;
  max-width: 800px;
  /* Slightly purple‑tinted container background */
  background-color: rgba(36, 10, 58, 0.85);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.page-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

/* Flash messages */
.flash-messages {
  margin-bottom: 1rem;
}

.flash-message {
  /* Use a subtle purple tint and border to draw attention */
  background-color: rgba(36, 10, 58, 0.8);
  border-left: 4px solid #9720f9;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* Form styles */
.form-card {
  /* Dark purple panels for forms and status cards */
  background-color: rgba(36, 10, 58, 0.95);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 4px;
  border: none;
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: #f5f5f5;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.2);
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s;
}

.btn-primary {
  /* Primary buttons: use purple base */
  background-color: #9720f9;
  color: #0a192f;
}

.btn-primary:hover {
  background-color: #8641ce;
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid #9720f9;
  color: #9720f9;
}

.btn-secondary:hover {
  background-color: rgba(151, 32, 249, 0.1);
}

/* Status page */
.status-card {
  background-color: rgba(11, 35, 71, 0.95);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.status-card p {
  margin-bottom: 0.75rem;
}

.status-label {
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-transform: capitalize;
}

.status-pending {
  background-color: #f7c548;
  color: #0a192f;
}

.status-approved {
  background-color: #32cd32;
  color: #0a192f;
}

.status-denied {
  background-color: #e74c3c;
  color: #f5f5f5;
}

/* Table styles */
.table-container {
  overflow-x: auto;
}

.requests-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.requests-table th,
.requests-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.requests-table th {
  /* Use purple tinted header background and purple text */
  background-color: rgba(36, 10, 58, 0.9);
  text-align: left;
  color: #9720f9;
  font-weight: 600;
}

.requests-table tr:nth-child(even) {
  background-color: rgba(11, 35, 71, 0.6);
}

.requests-table tr:nth-child(odd) {
  background-color: rgba(11, 35, 71, 0.4);
}

.requests-table td {
  color: #f5f5f5;
  vertical-align: top;
}

/* Highlight row based on status */
.requests-table tr.status-approved {
  border-left: 4px solid #32cd32;
}
.requests-table tr.status-denied {
  border-left: 4px solid #e74c3c;
}
.requests-table tr.status-pending {
  border-left: 4px solid #f7c548;
}

.action-link {
  margin-right: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  color: #0a192f;
}

.action-link.approve {
  background-color: #32cd32;
}

.action-link.deny {
  background-color: #e74c3c;
  color: #f5f5f5;
}

.action-link:hover {
  opacity: 0.8;
}

.action-complete {
  color: #888;
  font-size: 0.85rem;
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.6);
  font-size: 0.8rem;
  color: #aaa;
}

/* Canvas for animated background */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}