/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Global Styles */
body {
  font-family: Arial, sans-serif;
  background-color: #fff;
  color: #333;
  margin: 0;
  padding: 0;
}

main {
  max-width: 800px;
  margin: 20px auto;
  padding: 0 20px;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
}

.alert {
  padding: 10px;
  background-color: #dff0d8;
  color: #3c763d;
  border: 1px solid #d6e9c6;
  border-radius: 4px;
  text-align: center;
  margin-bottom: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

table th,
table td {
  padding: 12px 8px;
  border: 1px solid #ddd;
}

table thead th {
  background-color: #f2f2f2;
}

table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

table tbody tr:hover {
  background-color: #eaeaea;
}

a {
  color: #0366d6;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.button {
  display: inline-block;
  padding: 10px 15px;
  background-color: #0366d6;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
}

.button:hover {
  background-color: #0256a2;
}

.box-image {
  margin: 10px;
  text-align: center;
}

header {
  background-color: #f2f2f2;
  padding: 10px 20px;
  border-bottom: 1px solid #ddd;
}

header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

header nav ul li {
  display: inline;
}

header nav ul li a {
  text-decoration: none;
  color: #0366d6;
  font-weight: bold;
}

header nav ul li a:hover {
  text-decoration: underline;
}

/* Form Styles */
form {
  max-width: 600px;
  margin: 0 auto;
}

form div {
  margin-bottom: 15px;
}

form label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

form input[type="text"],
form textarea,
form input[type="file"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

form textarea {
  min-height: 150px;
  resize: vertical;
}

form input[type="submit"] {
  padding: 10px 15px;
  background-color: #0366d6;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

form input[type="submit"]:hover {
  background-color: #0256a2;
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #121212;
    color: #e0e0e0;
  }

  table th,
  table td {
    border-color: #444;
  }

  table thead th {
    background-color: #333;
  }

  table tbody tr:nth-child(even) {
    background-color: #222;
  }

  table tbody tr:hover {
    background-color: #282828;
  }

  a {
    color: #66aaff;
  }

  .alert {
    background-color: #333;
    color: #eee;
    border-color: #555;
  }

  .button {
    background-color: #1a73e8;
  }

  .button:hover {
    background-color: #1669c1;
  }

  header {
    background-color: #1e1e1e;
    border-bottom: 1px solid #333;
  }

  header nav ul li a {
    color: #66aaff;
  }

  form input[type="text"],
  form textarea,
  form input[type="file"] {
    background-color: #2a2a2a;
    color: #e0e0e0;
    border-color: #444;
  }

  form input[type="submit"] {
    background-color: #1a73e8;
  }

  form input[type="submit"]:hover {
    background-color: #1669c1;
  }
}
