body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
}
h2 {
    color: #333;
}
form {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
input[type="text"], input[type="password"], input[type="email"] {
    width: 50%;
    padding: 10px;
    margin: 0 auto 15px auto;
    border: 1px solid #ccc;
    border-radius: 10px;
    display: block;
}
.btn-search {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}
.btn-download {
    background-color: #007bff;
    color: white;
    border: none;
    margin-top: 20px;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}
/* ===== Library Table Styling ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

th {
  background-color: #007bff;
  color: white;
  text-align: left;
  padding: 12px;
}

td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
}

tr:hover {
  background-color: #f5f8ff;
}

/* ===== Buttons ===== */
.btn-download {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-download:hover {
  background-color: #0056b3;
}


/* Individual Subject Colors */
.subject-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
}

.subject-btn {
  flex: 1 1 120px;
  color: white;
  text-decoration: none;
  text-align: center;
  padding: 12px 16px;
  border-radius: 10px;
  border: 2px solid black;
  cursor: pointer;
  font-weight: 500;
  text-transform: capitalize;   
  transition: 0.3s;
}

.subject-btn:hover {
  transform: scale(1.05);
}

/* Subject colors */
.subject-btn.all { background-color: #6c757d; }
.subject-btn.chi { background-color: #c5000a; }
.subject-btn.bio { background-color: #2600ff; }
.subject-btn.math { background-color: #007bff; }
.subject-btn.eng { background-color: #400077; }
.subject-btn.agri { background-color: #106001; }
.subject-btn.ss { background-color: #fd7e14; }
.subject-btn.bk { background-color: #20c997; }
.subject-btn.bus { background-color: #6610f2; }
.subject-btn.phy { background-color: #00226b; }
.subject-btn.chem { background-color: #fd7e14; }
.subject-btn.hist { background-color: #e61c30; }
.subject-btn.geo { background-color: #20c997; }


/* ===== Responsive Table ===== */
@media (max-width: 768px) {
    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    thead {
        display: none;
    }

    tr {
        background: #fff;
        border: 1px solid #ddd;
        margin-bottom: 15px;
        border-radius: 10px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    }

    td {
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        position: relative;
    }

    td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #007bff;
    }
}
