:root {
  /* 🎨 Colors */
  --primary-color: #fd6060;
  --secondary-color: #4f46e5;
  --dark-color: #02347e;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --text-light: #444;
  --bg-light: #e0e7ff;
  --bg-white: #ffffff;

  /* 📐 Sizing */
  --sidebar-width: 18.75rem; /* 300px */
  --icon-size: 1.875rem;     /* 30px */
  --font-xs: 0.75rem;        /* 12px */
  --font-sm: 0.875rem;       /* 14px */
  --font-md: 1rem;           /* 16px */
  --font-lg: 1.2rem;         
  --font-xl: 1.5rem;

  /* 🌟 Effects */
  --shadow-sm: rgba(0, 0, 0, 0.2) 0 1.125rem 3.125rem -0.625rem;
  --shadow-md: rgba(0, 0, 0, 0.35) 0 0.3125rem 0.9375rem;
  --radius: 0.375rem;
}

/* Basic Layout */
body {
  overflow: hidden; /* Kept as it affects overall page layout */
}

.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed ;
  top: 0;
  left: 0;
  background-color: var(--bg-white);
  color: #000;
  padding-top: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease-in-out;
  z-index: 1050;
}

/* Hamburger Button */
.sidebar-toggle {
  display: none;
  background: var(--primary-color);
  color: #fff;
  border: none;
  position: absolute;
  right: 1rem;
  font-size: 1.5rem;
  padding: 6px 10px;
  border-radius: 4px;
  z-index: 1100;
  cursor: pointer;
}
/* Sidebar Links */
.sidebar a {
  color: #000;
  text-decoration: none;
  margin: 0.3125rem 0;
}

.sidebar a:hover {
  background-color: var(--primary-color);
  color: #fff;
  border-radius: var(--radius);
}
.top-nav{
  height: auto;
  width: 100%;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--bg-light);
  padding: 20px 0px;
  display: none;
  position: sticky;
  top: 0;
  left: 0;
 
}
.content {
  margin-left: var(--sidebar-width);
  height: 100vh;
  overflow-y: auto;
  padding: 1.25rem;
  transition: margin-left 0.3s ease-in-out;
}

.menu-link {
  padding: 0.625rem 0.75rem;
  display: flex;
  align-items: center;
  color: #000;
  text-decoration: none;
  transition: 0.2s;
}

.menu-link:hover,
.menu-link.active {
  background-color: var(--primary-color);
  color: #fff !important;
  border-radius: var(--radius);
}

.menu-link i {
  width: 1.25rem;
  margin-right: 0.625rem;
  text-align: center;
}

/* Styles for dropdown arrow icon */
.rotate-icon {
  transition: transform 0.3s;
}
.rotate-icon.rotate {
  transform: rotate(90deg);
}

/* Page Heading */
.page-main-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-top: 10px;
}

.page-main-heading i {
  font-size: 1.75rem;
  color: var(--primary-color);
  margin-top: 0.1875rem;
}

.main-heading{
  margin: 0;
  font-size: 1.125rem;
  font-weight: bold;
  color: var(--dark-color);
}

.heading-para, .page-main-heading p{
  margin: 0.125rem 0 0 0;
  font-size: var(--font-sm);
  color: var(--text-muted);
  font-weight: 500;
}

/* Details Card */
.details-card {
  margin-top: 1.5rem;
  padding: 1rem !important;
  border-radius: 0.5rem !important;
  box-shadow: var(--shadow-md);
}

.details-card-heading {
  font-weight: 600;
  font-size: var(--font-lg);
  padding: 0.3125rem;
  display: inline;
  color: var(--secondary-color);
}

.details-card-heading i {
  background: var(--bg-light);
  height: var(--icon-size);
  width: var(--icon-size);
  text-align: center;
  color: var(--secondary-color);
  padding-top: 0.25rem;
}

.details-card-body {
  padding: 0.625rem;
  margin-top: 0.625rem;
}

.details-card-body h6,
.details-card-body th {
  color: var(--text-muted);
  font-size: var(--font-xs);
}

.details-card-body span,
.details-card-body td {
  font-size: var(--font-sm);
  color: var(--text-dark);
  font-weight: 500;
}

.details-card input {
  border: 1px solid rgba(255, 58, 3, 0.5);
}


/* Books */
 
 
  .book-card {
    position: relative;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.book-card.unlocked:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.book-icon {
    font-size: 4rem;
    color: #0d6efd; /* Bootstrap primary color */
}

/* Styles for locked books */
.book-card.locked {
    filter: grayscale(80%);
    background-color: #f8f9fa; /* A light grey background */
}

.book-card.locked .book-icon {
    color: #6c757d; /* Muted grey color */
}

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #343a40;
    z-index: 10;
    border-radius: var(--bs-card-border-radius); /* Match card's border-radius */
}

/* Modal iframe styling */
#pdfFrame {
    width: 100%;
    height: 80vh; /* 80% of the viewport height */
    border: none;
}
    /* Invoices */
          .loader {
            display: none;
            border: 4px solid #f3f3f3;
            border-top: 4px solid #3498db;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 20px auto;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        .student-info {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
        }

        .custom-table{
            border-radius: 7px;
          }
          .custom-table>thead>tr>th{
            background-color: var(--secondary-color) !important;
            color: #fff;
          }

          .all-table{
            box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
          }

          @media (max-width: 991px) {
            .content {
              margin-left: 0;
              padding: 0;
            }
             .sidebar {
              transform: translateX(-100%);
            }
            .sidebar-toggle {
              display: block;
            }
            .top-nav{
              display: block;
            }
            .sidebar.active {
                transform: translateX(0); /* This will show the sidebar */
            }
            }

            @media print {
    /* Hide the entire modal when printing */
    #pdfModal .modal-content {
        display: none !important;
    }

    /* You can also hide the main body and show a message */
    body * {
        visibility: hidden;
    }
    .print-message, .print-message * {
        visibility: visible;
    }
    .print-message {
        position: absolute;
        left: 0;
        top: 0;
    }
}



