:root {
  --primary-color: #4361ee;
  --primary-hover: #3a56d4;
  --danger-color: #ef476f;
  --bg-light: #f8f9fa;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: "Outfit", sans-serif;
  background-color: var(--bg-light);
  color: #2b2d42;
}

.hero-section {
  background: linear-gradient(135deg, #ffffff 0%, #f1f4ff 100%);
}

.pdf-card {
  transition: var(--transition-smooth);
  border-radius: 20px;
  overflow: hidden;
}

.pdf-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(67, 97, 238, 0.1) !important;
}

.pdf-icon-wrapper {
  position: relative;
  display: inline-block;
}

.lock-overlay {
  position: absolute;
  bottom: -5px;
  right: -5px;
  background: var(--primary-color);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  border: 3px solid white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.view-btn {
  transition: var(--transition-smooth);
}

.view-btn:hover {
  background-color: var(--primary-hover);
}

/* Modal Styling */
.modal-content {
  border-radius: 24px;
}

.modal-icon {
  background: #eef2ff;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

/* Viewer Styling */
.viewer-top-bar {
  height: 60px;
  background: #fff;
  border-bottom: 1px solid #eee;
  z-index: 1000;
}

#viewer-container {
  height: calc(100vh - 60px);
  background-color: #525659;
  overflow: auto;
  position: relative;
}

.pdf-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-8px);
  }
  50% {
    transform: translateX(8px);
  }
  75% {
    transform: translateX(-8px);
  }
}

.shake {
  animation: shake 0.4s ease-in-out;
}

#pdf-grid .col-md-6 {
  animation: fadeIn 0.6s ease-out forwards;
}

#pdf-grid .col-md-6:nth-child(2) {
  animation-delay: 0.1s;
}
#pdf-grid .col-md-6:nth-child(3) {
  animation-delay: 0.2s;
}

/* Protection Styles */
body.no-select {
  user-select: none;
  -webkit-user-select: none;
}

@media print {
  body {
    display: none !important;
  }
}
