/* PDF Viewer Styles */

.pdf-container {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  background-color: #f8f9fa;
  position: relative;
}

.pdf-viewer {
  display: block;
  border-radius: 4px;
  background-color: #fff;
}

.pdf-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background-color: #f1f1f1;
  border-bottom: 1px solid #ddd;
}

.pdf-controls .btn-group {
  display: flex;
  gap: 5px;
}

.pdf-controls .zoom-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pdf-controls .zoom-level {
  min-width: 60px;
  text-align: center;
}

/* Print button loading states */
#print-pdf-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#print-pdf-button:disabled:hover {
  opacity: 0.6;
}

.pdf-error {
  padding: 20px;
  text-align: center;
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
}

/* Print-specific styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  .pdf-container {
    border: none;
    box-shadow: none;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
  }
  
  .pdf-viewer {
    width: 100%;
    height: 100%;
  }
  
  body {
    margin: 0;
    padding: 0;
  }
  
  .container {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .pdf-viewer {
    height: 600px;
  }
  
  .pdf-controls {
    flex-direction: column;
    gap: 10px;
  }
  
  .pdf-controls .btn-group {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .pdf-viewer {
    height: 500px;
  }
}