* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
/*    background: #FFFFCC;*/
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #444;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #2a5298;
}

.login-button {
    width: 100%;
    padding: 12px;
    background: #2a5298;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-button:hover {
    background: #1e3c72;
}

.forgot-password {
    text-align: center;
    margin-top: 15px;
}

.forgot-password a {
    color: #2a5298;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password a:hover {
    text-decoration: underline;
}


/* Sidebar Styles */
.sidebar {
    width: 250px;
    background: #2a5298;
    height: 100vh;
    position: fixed;
    padding: 20px;
    color: white;
}

.sidebar-header {
    margin-bottom: 40px;
    text-align: center;
}

.sidebar-header h2 {
    font-size: 24px;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin: 20px 0;
}

.sidebar-menu a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255, 255, 255, 0.2);
}

/* Main Content Styles */
.main-content {
    margin-left: 250px;
    flex: 1;
    padding: 30px;
}

.dashboard-header {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.dashboard-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.dashboard-header p {
    color: #666;
}

/* Book Listing Styles */
.book-listing {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.book-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.book-table th,
.book-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.book-table th {
    background: #f8f9fd;
    color: #2a5298;
}

.book-table tr:hover {
    background: #f8f9fd;
}

.action-buttons button {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 5px;
}

.edit-btn {
    background: #2a5298;
    color: white;
}

.delete-btn {
    background: #dc3545;
    color: white;
}

div#errorMessage {
    padding: 10px;
    text-align: center;
    color: red;
    font-size: 14px;
    /* font-weight: bold; */
}

/* Full-screen overlay */
.loader-wrapperFull{
    display: none;
} 
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Ensures it's above everything */
}

/* Spinner */
.loader {
  width: 60px;
  height: 60px;
  border: 5px solid #ddd;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Hide loader when the page is loaded */
/*body.loaded .loader-wrapper {
  display: none;
}*/

@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    .main-content {
        margin-left: 200px;
    }
}