/* Reset styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Global styles */
body {
  font-family: Arial, sans-serif;
  background-color: #e9f5ff;
  color: #333;
  line-height: 1.6;
}

/* Header */
header {
  background: rgb(51, 0, 255);
  color: #fff;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  color: inherit;
  text-decoration: none;
}

.logo-link:visited {
  color: inherit;
}


header .logo {
  font-size: 24px;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #d0eaff;
}

/* index */
.index-page::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("/static/jb.jpg") no-repeat center center;
  background-size: cover;
  opacity: 0.5; /* Adjust this value for more or less transparency */
  z-index: -1;  /* Ensure it's behind your other content */
}

.hero {
  text-align: center;
  padding: 100px 20px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 40px;
}

.hero button {
  background: rgb(51, 0, 255);
  color: #fff;
  border: none;
  padding: 15px 30px;
  font-size: 18px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.hero button:hover {
  background-color: #0056b3;
}

/* Container (for forms, error messages, etc.) */
.auth-page::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("/static/jb.jpg") no-repeat center center;
  background-size: cover;
  opacity: 0.5; /* Adjust as needed */
  z-index: -1;  /* Place the image behind all other content */
}

.container {
  max-width: 400px;
  margin: 100px auto;
  padding: 30px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Form and input styles */
h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

label {
  display: block;
  margin-bottom: 5px;
  color: #555;
}

/* Updated input rule: increased font-size for better readability */
input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

input[type="submit"] {
  width: 100%;
  padding: 10px;
  background: rgb(51, 0, 255);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}

input[type="submit"]:hover {
  background: rgb(0, 136, 255);
}

input[type="button"] {
  width: 100%;
  padding: 10px;
  background: #45b768;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
}

input[type="button"]:hover {
  background: #3a9e60;
}

/* Footer */
footer {
  background: rgb(22, 0, 108);
  color: #fff;
  text-align: center;
  padding: 10px;
  position: fixed;
  bottom: 0;
  width: 100%;
}

/* --- Additions for manage_favorites.php --- */

/* Basic Table Styling */
.fav-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    margin-bottom: 15px;
    font-size: 15px; /* Slightly smaller text in tables */
}
.fav-table th,
.fav-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    vertical-align: middle;
}
.fav-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}
.fav-table td.actions form {
    margin-bottom: 0; /* Prevent extra space below buttons in cells */
}

/* Smaller Buttons within Tables */
.fav-table input[type="submit"].button {
    padding: 5px 10px;
    font-size: 14px;
    width: auto; /* Allow button to size to content */
    margin-top: 0;
    margin-right: 5px;
    display: inline-block; /* Align forms/buttons horizontally if needed */
    cursor: pointer;
}

/* Specific Button Colors (if using classes) */
.button.remove-fav { background-color: #dc3545; border-color: #dc3545; }
.button.remove-fav:hover { background-color: #c82333; border-color: #bd2130;}
.button.add-fav { background-color: #28a745; border-color: #28a745; }
.button.add-fav:hover { background-color: #218838; border-color: #1e7e34;}

/* Feedback Message Styling */
.feedback {
     padding: 10px 15px;
     margin-top: 15px; /* Space above feedback */
     margin-bottom: 20px; /* Space below feedback */
     border: 1px solid transparent;
     border-radius: 4px;
     font-size: 15px;
     word-wrap: break-word;
}
.feedback.success {
     color: #155724;
     background-color: #d4edda;
     border-color: #c3e6cb;
}
.feedback.error {
     color: #721c24;
     background-color: #f8d7da;
     border-color: #f5c6cb;
}

