/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #f5f5f5;
  color: #333;
}

a {
  text-decoration: none;
  color: #007bff;
}

ul {
  list-style: none;
}

.btn {
  display: inline-block;
  background-color: #007bff;
  color: #fff;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #0069d9;
}

.danger-btn {
  background-color: #dc3545;
}

.danger-btn:hover {
  background-color: #c82333;
}

/* Header */
header {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 4%;
}

header .logo {
  font-size: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
}

header .logo a {
  color: #333;
  display: flex;
  align-items: center;
}

header .logo span {
  color: #007bff;
}

/* Logo styling */
.logo img,
.logo-image {
  height: 30px;
  width: auto;
  margin-right: 5px;
  vertical-align: middle;
}

.footer-logo img {
  height: 24px;
  width: auto;
  margin-right: 5px;
  vertical-align: middle;
}

header nav ul {
  display: flex;
  align-items: center;
}

header nav ul li {
  margin-right: 15px;
}

header nav ul li a {
  color: #666;
  transition: color 0.3s;
}

header nav ul li a:hover {
  color: #007bff;
}

header nav ul li a.active {
  color: #007bff;
  font-weight: 600;
}

.cart-link {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #f44336;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 11px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-btn,
.signup-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  display: flex;
  align-items: center;
  font-size: 14px;
  transition: color 0.3s;
  padding: 0;
}

.login-btn:hover,
.signup-btn:hover {
  color: #007bff;
}

.login-btn i,
.signup-btn i {
  margin-right: 5px;
}

/* Main Content */
main {
  padding: 20px 5%;
  min-height: calc(100vh - 70px - 300px);
}

/* Note Cards */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.note-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.note-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.note-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.note-card-content {
  padding: 15px;
}

.note-card-content h3 {
  margin-bottom: 10px;
  font-size: 18px;
  color: #333;
}

.note-card-subject {
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
}

.note-card-description {
  color: #777;
  font-size: 14px;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.note-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.note-card-price {
  font-weight: bold;
  color: #000;
  font-size: 18px;
}

.note-card-pages {
  color: #666;
  font-size: 14px;
}

.note-actions {
  display: flex;
  gap: 8px;
}

.note-expiry {
  color: #ff9800;
  font-size: 13px;
  margin-bottom: 10px;
  font-weight: 500;
}

/* Purchase and expiry date styling */
.note-purchase-date,
.note-expiry {
  font-size: 0.85rem;
  margin: 5px 0;
  color: #666;
}

.note-expiry.warning {
  color: #dc3545;
  font-weight: bold;
}

/* Filter Styles */
.filter-section {
  margin-bottom: 20px;
  background-color: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-options {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-option {
  flex: 1;
  min-width: 200px;
}

.filter-option label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #555;
}

.filter-option select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
}

/* Cart Styles - Flipkart-inspired */
.cart-section {
  margin-bottom: 40px;
}

.cart-container.flipkart-style {
  background-color: #f1f3f6;
  padding: 20px 0;
  border-radius: 0;
  box-shadow: none;
}

.cart-header {
  background-color: #fff;
  padding: 15px 20px;
  border-radius: 2px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cart-header h2 {
  font-size: 18px;
  color: #212121;
  font-weight: 500;
}

.cart-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

.cart-items-container {
  background-color: #fff;
  border-radius: 2px;
  padding: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cart-items {
  padding: 20px;
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 1px solid #f0f0f0;
  margin-right: 15px;
}

.cart-item-details {
  flex: 1;
  padding-right: 10px;
}

.cart-item-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 5px;
  color: #212121;
}

.cart-item-subject,
.cart-item-pages {
  color: #878787;
  font-size: 14px;
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 16px;
  font-weight: 500;
  margin: 0 15px;
}

.cart-item-actions {
  margin-left: auto;
}

.remove-from-cart {
  background: none;
  border: none;
  color: #2874f0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.price-details {
  background-color: #fff;
  border-radius: 2px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.price-header {
  font-size: 16px;
  font-weight: 500;
  color: #878787;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  color: #212121;
}

.discount-amount {
  color: #388e3c;
}

.free {
  color: #388e3c;
}

.price-row.total {
  font-weight: 500;
  font-size: 18px;
  border-top: 1px dashed #e0e0e0;
  padding-top: 15px;
  margin-top: 10px;
}

.savings-row {
  color: #388e3c;
  font-size: 14px;
  padding: 10px 0;
}

.place-order-btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 500;
  background-color: #fb641b;
  border-radius: 2px;
  margin-top: 10px;
}

.place-order-btn:hover {
  background-color: #e05a18;
}

.coupon-container {
  padding: 15px;
  border-top: 1px solid #f0f0f0;
}

.available-coupons h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
  color: #212121;
}

.available-coupons h3 i {
  color: #ff9f00;
  margin-right: 5px;
}

.available-coupons ul {
  padding-left: 25px;
  margin-bottom: 15px;
}

.available-coupons ul li {
  font-size: 13px;
  color: #212121;
  margin-bottom: 5px;
  position: relative;
  list-style: disc;
}

.apply-coupon {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.apply-coupon input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* Empty Cart */
.empty-cart {
  text-align: center;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.empty-cart img {
  width: 200px;
  margin-bottom: 20px;
}

.empty-cart h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
}

.empty-cart p {
  color: #878787;
  font-size: 14px;
  margin-bottom: 20px;
}

/* Success Message */
.success-message {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #4caf50;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  border-radius: 4px;
  transform: translateX(120%);
  transition: transform 0.3s ease-out;
  z-index: 1000;
}

.success-message.show {
  transform: translateX(0);
}

.success-message i {
  color: #4caf50;
  font-size: 20px;
  margin-right: 10px;
}

/* Payment Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 15px;
}

.close:hover {
  color: black;
}

.payment-methods {
  margin: 20px 0;
}

.payment-option {
  margin-bottom: 15px;
}

.payment-option label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  color: #333;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: border-color 0.3s;
}

.payment-option input {
  margin-right: 10px;
}

.payment-option label:hover {
  border-color: #2874f0;
}

.payment-option input:checked + label {
  border-color: #2874f0;
  background-color: rgba(40, 116, 240, 0.05);
}

.payment-option label i {
  margin-right: 10px;
  font-size: 18px;
  color: #2874f0;
}

.payment-details {
  display: none;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 4px;
  margin-top: 10px;
}

.payment-details input {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.card-expiry {
  display: flex;
  gap: 10px;
}

.card-expiry input {
  flex: 1;
}

.bank-options,
.wallet-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bank-option,
.wallet-option {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px;
  cursor: pointer;
  flex: 0 0 calc(33.333% - 10px);
  display: flex;
  align-items: center;
}

.bank-option input,
.wallet-option input {
  margin-right: 5px;
}

.payment-summary {
  border-top: 1px solid #eee;
  padding-top: 15px;
  margin-top: 20px;
}

.payment-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 15px;
}

.pay-now-btn {
  width: 100%;
  padding: 12px;
  background-color: #fb641b;
  color: white;
}

.pay-now-btn:hover {
  background-color: #e05a18;
}

/* UPI Details */
.upi-apps {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.upi-app-btn {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: border-color 0.3s;
}

.upi-app-btn img {
  height: 24px;
  margin-right: 5px;
}

.upi-app-btn:hover {
  border-color: #2874f0;
}

.upi-input {
  display: flex;
  gap: 10px;
}

.upi-input input {
  flex: 1;
}

.verify-btn {
  padding: 8px 15px;
  background-color: #2874f0;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* Card Images */
.card-images {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.card-images img {
  height: 30px;
}

/* Bank Images */
.bank-option label {
  display: flex;
  align-items: center;
}

.bank-option label img {
  height: 24px;
  margin-right: 8px;
}

/* Razorpay */
.razorpay-logo {
  height: 24px;
  margin-left: 10px;
}

.razorpay-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.razorpay-features div {
  background-color: #f0f8ff;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  display: flex;
  align-items: center;
}

.razorpay-features div i {
  margin-right: 5px;
  color: #2874f0;
}

/* My Notes Section */
.my-notes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.search-bar {
  display: flex;
  max-width: 400px;
  width: 100%;
}

.search-bar input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-right: none;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.search-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 0 15px;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  cursor: pointer;
}

.tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
  overflow-x: auto;
}

.tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-weight: 500;
  color: #666;
  transition: all 0.3s;
}

.tab-btn:hover {
  color: #007bff;
}

.tab-btn.active {
  color: #007bff;
  border-bottom-color: #007bff;
}

.empty-notes-message {
  text-align: center;
  padding: 40px 20px;
}

.empty-notes-message i {
  font-size: 40px;
  color: #ccc;
  margin-bottom: 15px;
}

.downloads-manager {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 15px;
}

#download-list {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 15px;
}

.download-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.download-item:last-child {
  border-bottom: none;
}

.download-info {
  flex: 1;
}

.download-title {
  font-weight: 500;
}

.download-date {
  font-size: 12px;
  color: #777;
}

.download-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 15px;
}

.empty-downloads {
  text-align: center;
  padding: 20px;
  color: #777;
}

/* Note Viewer */
.note-viewer-section {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.note-viewer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.back-btn {
  display: flex;
  align-items: center;
  color: #333;
}

.back-btn i {
  margin-right: 5px;
}

.note-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.subscription-info {
  display: flex;
  align-items: center;
  color: #666;
  font-size: 14px;
}

.subscription-info i {
  margin-right: 5px;
  color: #ffa000;
}

.zoom-controls {
  display: flex;
  align-items: center;
}

.zoom-controls button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  color: #555;
}

.zoom-controls span {
  margin: 0 10px;
  color: #555;
  font-size: 14px;
}

.note-content {
  position: relative;
}

.page-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 15px 0;
}

.nav-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #555;
  padding: 5px 10px;
}

.page-indicator {
  margin: 0 15px;
  font-size: 14px;
  color: #555;
}

.pdf-container {
  margin: 0 auto;
  width: 90%;
  max-width: 800px;
  height: 70vh;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow-y: auto;
  padding: 20px;
  position: relative;
}

.pdf-placeholder {
  padding: 20px;
  text-align: center;
}

.pdf-page {
  margin: 20px auto;
  padding: 30px;
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  max-width: 700px;
}

.pdf-page h3 {
  margin-bottom: 15px;
}

.pdf-page p {
  margin-bottom: 10px;
  line-height: 1.5;
}

.anti-screenshot-warning {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.watermark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.1;
  z-index: 1;
  pointer-events: none;
  transform: rotate(-45deg);
}

.watermark-content {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  white-space: nowrap;
}

.screenshot-alert {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background-color: #f44336;
  color: white;
  padding: 15px 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: transform 0.3s;
  z-index: 1000;
}

.screenshot-alert.show {
  transform: translateX(-50%) translateY(0);
}

.screenshot-alert i {
  margin-right: 10px;
  font-size: 20px;
}

.protected-content {
  position: relative;
  overflow: hidden;
}

.protected-content::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  pointer-events: none;
}

.protected-content.screenshot-detected::after {
  background-color: rgba(0, 0, 0, 0.8);
  content: "Screenshot Detected!";
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
}

/* Footer */
footer {
  background-color: #333;
  color: #fff;
  padding: 40px 5% 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 30px;
}

.footer-logo {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.footer-logo span {
  color: #007bff;
}

.footer-links,
.footer-contact {
  margin-bottom: 20px;
}

.footer-links h3,
.footer-contact h3 {
  margin-bottom: 15px;
  color: #ddd;
  font-size: 18px;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #bbb;
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: #fff;
}

.footer-contact p {
  margin-bottom: 10px;
  color: #bbb;
}

.footer-contact p i {
  margin-right: 10px;
  color: #007bff;
}

.social-icons {
  display: flex;
  margin-top: 15px;
}

.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background-color: #444;
  color: #fff;
  border-radius: 50%;
  margin-right: 10px;
  transition: background-color 0.3s;
}

.social-icons a:hover {
  background-color: #007bff;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  color: #999;
  font-size: 14px;
}

/* Form Styles */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #555;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.form-switch {
  margin-top: 15px;
  text-align: center;
  font-size: 14px;
  color: #666;
}

.form-switch a {
  color: #007bff;
  text-decoration: underline;
}

/* Hero Section */
.hero-section {
  background-color: #f8f9fa;
  padding: 60px 0;
  text-align: center;
  margin-bottom: 40px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #333;
}

.hero-content p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.hero-buttons .btn {
  padding: 12px 24px;
  font-size: 1rem;
}

.hero-image {
  max-width: 100%;
  height: auto;
  margin-top: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Offers Section */
.offers-section {
  background-color: #f1f8ff;
  padding: 40px 0;
  margin-bottom: 40px;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 15px;
}

.section-title p {
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.offers-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.offer-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  width: 300px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #007bff;
  transition: transform 0.3s;
}

.offer-card:hover {
  transform: translateY(-5px);
}

.offer-card h3 {
  color: #007bff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.offer-card h3 i {
  margin-right: 10px;
}

.offer-card p {
  color: #666;
  margin-bottom: 15px;
}

.offer-code {
  background-color: #f8f9fa;
  padding: 8px;
  border-radius: 4px;
  font-family: monospace;
  font-weight: bold;
  color: #333;
  display: inline-block;
}

/* Delete download button styling */
.delete-download-btn {
  background-color: #dc3545;
}

.delete-download-btn:hover {
  background-color: #c82333;
}

/* Payment method images */
.payment-method-img {
  height: 30px;
  margin-right: 10px;
}

/* Order History Styles */
.orders-section {
  margin-bottom: 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-header h1 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 10px;
}

.section-header p {
  color: #666;
}

.orders-container {
  max-width: 1000px;
  margin: 0 auto;
}

.order-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  overflow: hidden;
}

.order-header {
  background-color: #f8f9fa;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.order-id {
  font-weight: 500;
  color: #333;
}

.order-date {
  color: #666;
  font-size: 14px;
}

.order-items {
  padding: 0 20px;
}

.order-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.order-item:last-child {
  border-bottom: none;
}

.order-item-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 1px solid #eee;
  margin-right: 15px;
}

.order-item-details {
  flex: 1;
}

.order-item-title {
  font-weight: 500;
  margin-bottom: 5px;
}

.order-item-subject {
  color: #666;
  font-size: 14px;
}

.order-item-price {
  font-weight: 500;
  margin-left: 15px;
}

.order-footer {
  background-color: #f8f9fa;
  padding: 15px 20px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.order-payment {
  font-size: 14px;
  color: #666;
}

.payment-method {
  margin-bottom: 5px;
}

.payment-id {
  font-size: 12px;
  color: #888;
}

.order-summary {
  text-align: right;
}

.order-subtotal,
.order-discount,
.order-gst {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.order-total {
  font-weight: 500;
  color: #333;
  font-size: 16px;
}

/* Upload Notes Section */
.upload-notes-section {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 30px;
}

.upload-notes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.upload-notes-header h2 {
  font-size: 1.5rem;
  color: #333;
}

.upload-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.upload-form .form-group:last-child {
  grid-column: span 2;
}

.file-upload {
  border: 2px dashed #ddd;
  padding: 30px;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.3s;
}

.file-upload:hover {
  border-color: #007bff;
}

.file-upload i {
  font-size: 40px;
  color: #007bff;
  margin-bottom: 10px;
}

.file-upload p {
  color: #666;
  margin-bottom: 10px;
}

.file-upload .btn {
  display: inline-block;
}

.file-upload input[type="file"] {
  display: none;
}

.upload-preview {
  margin-top: 20px;
  display: none;
}

.upload-preview.show {
  display: block;
}

.preview-item {
  display: flex;
  align-items: center;
  background-color: #f8f9fa;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.preview-item i {
  font-size: 24px;
  color: #007bff;
  margin-right: 10px;
}

.preview-item-details {
  flex: 1;
}

.preview-item-name {
  font-weight: 500;
  margin-bottom: 5px;
}

.preview-item-size {
  font-size: 12px;
  color: #666;
}

.preview-item-remove {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  font-size: 16px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .cart-content {
    grid-template-columns: 1fr;
  }

  .note-viewer-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .note-controls {
    margin-top: 10px;
    flex-wrap: wrap;
  }

  .modal-content {
    width: 95%;
  }

  .bank-option,
  .wallet-option {
    flex: 0 0 calc(50% - 10px);
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  .upload-form {
    grid-template-columns: 1fr;
  }

  .upload-form .form-group:last-child {
    grid-column: span 1;
  }

  .order-header,
  .order-footer {
    flex-direction: column;
  }

  .order-date,
  .order-summary {
    margin-top: 10px;
    text-align: left;
  }
}

@media (max-width: 576px) {
  header nav ul li {
    margin-right: 10px;
  }

  .cart-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-item-image {
    margin-bottom: 10px;
  }

  .cart-item-actions {
    margin-left: 0;
    margin-top: 10px;
  }

  .bank-option,
  .wallet-option {
    flex: 0 0 100%;
  }
}

/* Enhanced Flipkart-style Cart */
.flipkart-style-cart .cart-item {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  background-color: #fff;
}

.flipkart-style-cart .cart-item:hover {
  background-color: #f9f9f9;
}

.cart-item-left {
  display: flex;
  flex: 2;
}

.cart-item-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  flex: 1;
}

.cart-item-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  margin-right: 20px;
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 5px;
  color: #212121;
}

.cart-item-subject,
.cart-item-pages {
  color: #878787;
  font-size: 14px;
  margin-bottom: 4px;
}

.cart-item-delivery {
  margin-top: 10px;
  font-size: 14px;
}

.delivery-date {
  color: #212121;
}

.delivery-free {
  color: #388e3c;
  margin-left: 10px;
  font-weight: 500;
}

.cart-item-price {
  font-size: 18px;
  font-weight: 600;
  color: #212121;
  margin-bottom: 15px;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.save-for-later,
.remove-from-cart {
  background: none;
  border: none;
  color: #2874f0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-align: right;
}

.save-for-later:hover,
.remove-from-cart:hover {
  text-decoration: underline;
}

/* Enhanced User Menu */
.user-menu {
  position: absolute;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  width: 300px;
  z-index: 1000;
  overflow: hidden;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-menu-header {
  display: flex;
  align-items: center;
  padding: 15px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.user-avatar {
  font-size: 36px;
  color: #2874f0;
  margin-right: 15px;
}

.user-info {
  flex: 1;
}

.user-name {
  font-weight: 600;
  font-size: 16px;
  color: #212121;
}

.user-email {
  font-size: 14px;
  color: #878787;
}

.user-menu-items {
  max-height: 500px;
  overflow-y: auto;
}

.menu-section {
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.menu-section:last-child {
  border-bottom: none;
}

.menu-section h4 {
  font-size: 14px;
  color: #878787;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.menu-section a {
  display: flex;
  align-items: center;
  padding: 8px 0;
  color: #212121;
  font-size: 14px;
  transition: color 0.2s;
}

.menu-section a:hover {
  color: #2874f0;
}

.menu-section a i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
  color: #2874f0;
}

.language-selector {
  display: flex;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
  color: #212121;
}

.language-selector i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
  color: #2874f0;
}

.language-selector select {
  margin-left: 10px;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
}

/* Account section in header */
.account-section {
  position: relative;
}

.account-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #212121;
  font-size: 14px;
}

.account-link i {
  font-size: 18px;
  margin-bottom: 4px;
}

/* Enhanced Highlighter */
.highlighter-active {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23ffff00" stroke="%23000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9.3 9.6L21 21.3M10.1 5.5a5 5 0 0 1 7.1 7.1L9.3 20.5 4 22l1.5-5.3 7.9-7.9Z"/></svg>')
    0 20, auto !important;
}

.text-highlight {
  position: relative;
  border-radius: 2px;
  cursor: pointer;
}

.text-highlight:hover::after {
  content: "×";
  position: absolute;
  top: -10px;
  right: -10px;
  width: 20px;
  height: 20px;
  background-color: #dc3545;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  cursor: pointer;
}

/* Downloads Section */
.downloads-section {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 30px;
}

.downloads-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.download-card {
  background-color: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.download-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.download-card-header {
  padding: 15px;
  background-color: #2874f0;
  color: white;
}

.download-card-content {
  padding: 15px;
}

.download-card-footer {
  display: flex;
  justify-content: space-between;
  padding: 10px 15px;
  background-color: #f0f0f0;
  font-size: 14px;
  color: #666;
}

.download-progress {
  height: 6px;
  background-color: #eee;
  border-radius: 3px;
  overflow: hidden;
  margin: 10px 0;
}

.download-progress-bar {
  height: 100%;
  background-color: #2874f0;
  width: 100%;
}

.download-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.download-btn {
  background-color: #2874f0;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.download-btn i {
  margin-right: 5px;
}

.delete-btn {
  background-color: #ff6161;
}

/* Responsive styles for the enhanced UI */
@media (max-width: 768px) {
  .cart-item {
    flex-direction: column;
  }

  .cart-item-right {
    margin-top: 15px;
    align-items: flex-start;
  }

  .cart-item-actions {
    flex-direction: row;
    margin-top: 10px;
  }

  .user-menu {
    width: 90%;
    max-width: 300px;
  }

  .downloads-grid {
    grid-template-columns: 1fr;
  }
}

/* Global Search Bar */
.global-search-section {
  padding: 20px 5%;
  background-color: #f5f5f5;
  margin-bottom: 40px;
}

.global-search-container {
  max-width: 1200px;
  margin: 0 auto;
}

.global-search-form {
  display: flex;
  margin-bottom: 15px;
}

.global-search-form input {
  flex: 1;
  padding: 15px;
  border: 1px solid #ddd;
  border-right: none;
  border-radius: 4px 0 0 4px;
  font-size: 16px;
}

.global-search-form .search-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 0 25px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 18px;
}

.global-search-form .search-btn:hover {
  background-color: #0069d9;
}

.search-filters {
  display: flex;
  gap: 15px;
}

.search-filters select {
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  flex: 1;
  cursor: pointer;
}

@media (max-width: 768px) {
  .search-filters {
    flex-direction: column;
  }
}
