/* === Your existing styles === */

body {
    background-image: url('library-interior-interior-design-books-wallpaper-preview.jpg'); /* Set background image */
    background-size: cover; /* Ensure the image covers the entire background */
    background-position: center; /* Center the background image */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Index page background */
body.index-background {
    background-image: url('library-interior-interior-design-books-wallpaper-preview.jpg');
    background-size: cover;
    background-position: center;
}

/* Dashboard page background */
body.dashboard-background {
    background-color: khaki; /* Set background color to khaki */
}

.container {
    text-align: center;
    background-color: rgba(207, 174, 111, 0.993);
    padding: 20px;
    border-radius: 10px;
}

.container.transparent {
    background-color: transparent; /* Make background transparent */
}

h1 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

h1.white-text {
    color: white; /* Set font color to white */
}

h1.large-text {
    font-size: 2.5em; /* Make text larger */
}

p.tagline.white-text {
    color: white; /* Set font color to white */
}

.login-button, .register-button {
    background-color: red;
    color: white;
    padding: 5px 10px; /* Make button smaller */
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.links {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.links a {
    color: red;
    text-decoration: none;
}

.links a.lost-password {
    color: black; /* Set color to black */
    font-size: 0.8em; /* Make font smaller */
}

.create-account {
    text-align: right; /* Align to the right */
    margin-top: 10px;
}

input[type="text"], input[type="password"], input[type="email"], input[type="tel"], textarea {
    border: 1px solid red; /* Super thin red border */
    padding: 10px;
    border-radius: 5px;
    width: calc(100% - 22px); /* Adjust width to account for padding and border */
    margin-bottom: 10px;
}

.name-fields {
    display: flex;
    gap: 10px;
}

.name-fields input {
    width: calc(50% - 11px); /* Adjust width to account for padding and border */
}

.header {
    position: absolute;
    top: 10px;
    right: 10px;
}

.header a {
    color: red;
    margin: 0 10px;
    text-decoration: none;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.buttons a {
    padding: 10px 20px;
    border: 2px solid red;
    border-radius: 5px;
    text-decoration: none;
    color: red;
    font-weight: bold;
}

.buttons a.student {
    background-color: red;
    color: white;
}

.buttons a.teacher {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: red;
}

/* === Added Browse Books Styles === */

/* Use CSS variables for colors to keep things consistent */
:root {
  --bg-color: rgba(245, 245, 245, 0.9); /* Light, slightly transparent bg for containers */
  --text-color: #333333;
  --btn-primary: #b30000;
  --btn-primary-hover: #990000;
  --available-color: #007700;
  --unavailable-color: #cc0000;
  --star-color: #FFD700;
  --input-bg: #fff;
  --input-border: #ccc;
  --box-shadow: rgba(0, 0, 0, 0.1);
}

.container.browse-books {
  background-color: var(--bg-color);
  padding: 40px;
  max-width: 1200px;
  margin: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--box-shadow);
  color: var(--text-color);
}

h1.browse-title {
  text-align: center;
  margin-bottom: 30px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 2.5em;
  color: var(--text-color);
}

form.filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

input[type="text"], select {
  padding: 10px 14px;
  font-size: 16px;
  border-radius: 6px;
  border: 1.5px solid var(--input-border);
  background-color: var(--input-bg);
  transition: border-color 0.3s ease;
}

input[type="text"]:focus, select:focus {
  outline: none;
  border-color: var(--btn-primary);
  box-shadow: 0 0 6px var(--btn-primary);
}

button[type="submit"] {
  background-color: var(--btn-primary);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: var(--btn-primary-hover);
}

.books {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
}

.book {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--box-shadow);
  width: 220px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px var(--box-shadow);
}

.book img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.book h3 {
  font-size: 20px;
  margin: 10px 0 8px;
  color: var(--text-color);
}

.rating {
  color: var(--star-color);
  font-size: 18px;
  margin-bottom: 8px;
  user-select: none;
}

.availability {
  font-size: 14px;
  margin-bottom: 14px;
  color: var(--available-color);
  font-weight: 600;
}

.availability.unavailable {
  color: var(--unavailable-color);
}

.borrow-button {
  background-color: var(--btn-primary);
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
}

.borrow-button:hover:not(:disabled) {
  background-color: var(--btn-primary-hover);
}

.borrow-button:disabled {
  background-color: #999;
  cursor: not-allowed;
}
table a {
  text-decoration: none;
  font-weight: bold;
  color: #3498db; /* Optional: Add color to match accent theme */
}

table a:hover {
  text-decoration: underline;
}
<table>
    <thead>
        <tr>
            <th>User</th>
            <th>Book Title</th>
            <th>Status</th>
            <th>Borrow Date</th>
            <th>Actions</th>
        </tr>
    </thead>
    <tbody>
        <?php while ($row = $recent_borrows->fetch_assoc()): ?>
            <tr>
                <td><?php echo htmlspecialchars($row['first_name'] . ' ' . $row['last_name']); ?></td>
                <td><?php echo htmlspecialchars($row['title']); ?></td>
                <td><?php echo ucfirst(htmlspecialchars($row['status'])); ?></td>
                <td><?php echo date('M d, Y', strtotime($row['borrow_date'])); ?></td>
                <td>
                    <a href="edit_borrow.php?id=<?php echo $row['id']; ?>" class="btn edit-btn">Edit</a>
                    <a href="delete_borrow.php?id=<?php echo $row['id']; ?>" class="btn delete-btn" onclick="return confirm('Are you sure you want to delete this record?');">Delete</a>
                </td>
            </tr>
        <?php endwhile; ?>
    </tbody>
</table>
