/* COMMON CSS */
body, html {
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
    background: #F6F6F6;
    font-family: 'Open Sans', sans-serif;
}

a,
a:hover,
a:focus{
    text-decoration: none;
    outline: none;
}
ul{
    margin:0;
    padding:0;
    list-style:none;
}

/* HEADER */
/* #header{
    top:0;
    background: #F6F6F6;
    position: fixed;
    z-index: 1000;
    width:100%;
} */

.dropdown{
    text-align: right;
    padding: 0px 0;
}
.dropdown button{
    background: #A00000;
    border: none;
    opacity: 0.9;
}
.dropdown button:hover{
    background: #A00000;
    opacity: 0.9;
}
.btn-secondary:not(:disabled):not(.disabled):active:focus, .btn-secondary:not(:disabled):not(.disabled).active:focus, .show > .btn-secondary.dropdown-toggle:focus{
    box-shadow: none;
}
.btn-secondary:not(:disabled):not(.disabled):active, .btn-secondary:not(:disabled):not(.disabled).active, .show > .btn-secondary.dropdown-toggle{
    background: #A00000;
    opacity: 0.9;
}
.btn-secondary:focus, .btn-secondary.focus{
    border: none;
    background: #A00000;
    box-shadow: none;
    opacity: 0.9;
}

.navbar-nav li{
    display: inline-block;
}
.navbar-nav li a{
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 13px;
    display: block;
    transition: all 0.3s;
}
.navbar-nav .dropdown-item{
    color: #070000;
    font-size: 14px;
    font-weight: 400;
}
.navbar-nav li a:hover{
    background: #ca4d4d;
    color: #090909;
}

/* Footer Styling */
#footer{
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 4px 0;
    opacity: 0.9;
    position: fixed;
    bottom: 0;
    width:100%;
    z-index: 1000;
    font-size: 13px;
}
#footer span,
#footer a{
    color: #fff;
}

/* ADMIN CONTENT */
#admin-content{
    min-height: 80vh;
    padding: 20px 0 40px;
    margin-bottom: 25px;
    max-width: 100%;
    overflow-x: hidden;
}

#admin-content .admin-heading{
    color: #0E0E0E;
    font-size: 30px;
    font-weight: 600;
    margin: 0 0 40px;
    position: relative;
}
#admin-content .admin-heading:after{
    background: #A00000;
    width: 100%;
    height: 3px;
    opacity: 0.9;
    position: absolute;
    left: 0;
    bottom: -10px;
}
#admin-content .add-new{
    background: #A00000;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    border: 2px solid transparent;
    padding: 7px 15px;
    display: block;
    opacity: 0.9;
    transition: all 0.3s;
}
#admin-content .add-new:hover{
    background: #fff;
    color: #A00000;
    border: 2px solid #A00000;
    opacity: 0.9;
}
#admin-content .content-table{
    width: 100%;
    margin: 0 0 20px;
}
#admin-content .content-table thead{
    background: #444;
    color: #fff;
}
#admin-content .content-table th{
    text-align: center;
    text-transform: uppercase;
    border: 1px solid #000;
    padding: 10px;
}
#admin-content .content-table tbody tr:nth-child(odd){
    background: #e7e7e7;
}
#admin-content .content-table tbody tr:nth-child(even){
    background: transparent;
}
#admin-content .content-table tbody td{
    text-align: center;
    border: 1px solid #000;
    padding: 10px;
}
#admin-content .content-table tbody td:nth-child(2),
#admin-content .content-table tbody td:nth-child(5){
    text-align: left;
}
.pagination{
    text-align: center;
    display: block;
}
.pagination li{
    display: inline-block;
    margin-right: 8px;
}
.pagination li a{
    background: #A00000;
    color: #fff;
    font-size: 14px;
    padding: 6px 12px;
    opacity: 0.9;
}
.pagination li.active > a{
    background: #A00000;
    opacity: 0.7;
}
.form-container {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-animated {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-animated::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: left 0.3s ease;
}

.btn-animated:hover::after {
    left: 0;
}

/* Style for overdue books */
.overdue {
    background-color: rgba(255, 0, 0, 0.2);
}

/* Custom CSS for gradient table header and animated buttons */
.table-gradient thead {
    background: linear-gradient(45deg, #4e54c8, #8f94fb);
    color: #fff;
}

.form-group label{
    color: #0E0E0E;
    font-weight: 600;
}
.form-group .form-control{
    font-size: 14px;
}

/* ADD CATEGORY */
.radio{
    padding: 3px 0;
}
.radio input[type="radio"]{
    margin-right: 8px;
}

/* ADMIN LOGIN */
#wrapper-admin{
    padding: 100px 0 0;
}
.border.border-danger{
    border: 5px solid #A00000 !important;
    opacity: 0.9;
    margin: 0 0 20px;
}
.heading{
    font-size: 20px;
    margin: 0 0 20px;
    display: inline-block;
    position: relative;
}
.heading:after{
    content: "";
    background: #A00000;
    width: 100%;
    height: 2px;
    position: absolute;
    left: 0;
    bottom: -10px;
}

/* MODAL BOX */
#modal{
  background: rgba(0,0,0,0.7);
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  display: none;
}
#modal-form{
  background: #fff;
  width: 90%; /* Adjust width for mobile */
  max-width: 100%;
  left: 5%;
  position: relative;
  top: 20%;
  padding: 15px;
  border-radius: 4px;
}
#modal-form h2{
  margin: 0 0 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #000;
  display: block;
}
#close-btn{
  background: red;
  color: #fff;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  position: absolute;
  top: -15px;
  right: -15px;
  cursor: pointer;
}

.card-body{
  background: #A00000;
  opacity: 0.9;
  padding: 40px 20px;
}

.card-body .card-text{
  color: #fff;
  font-size: 40px;
  font-weight: 600;
  line-height: 40px;
  margin: 0 0 10px;
}
.card-body .card-title{
  color: #fff;
}

#modal-form table tr{
  border-bottom: 1px solid grey;
}

.bg-secondary{
    color:white !important;
}
