.file-library-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.file-library-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.file-library-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.media-editing-choose-from-file-library {
  margin-left: 10px;
}

.upload-btn {
  background: #007cba;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.upload-btn:hover {
  background: #005a87;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  padding: 15px;
}

.file-item {
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  background: white;
}

.file-item.selected {
  border-color: #28a745;
  background: #f0fff4;
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.3);
}

.file-item:hover {
  border-color: #007cba;
  box-shadow: 0 4px 8px rgba(0,124,186,0.3);
  transform: translateY(-2px);
}

.file-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.file-name {
  font-weight: bold;
  margin-bottom: 5px;
  word-break: break-word;
  font-size: 14px;
}

.file-date {
  font-size: 12px;
  color: #666;
}

.selected-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #28a745;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.file-menu-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #6c757d;
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.file-menu-btn:hover {
  background: #5a6268;
}

.file-menu-dropdown {
  position: absolute;
  top: 32px;
  right: 5px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 100;
  min-width: 120px;
}

.file-menu-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  transition: background 0.2s;
}

.file-menu-item:hover {
  background: #f8f9fa;
  color: #dc3545;
}

.library-header {
  padding: 15px;
  background: #f8f9fa;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: flex-start;
  gap: 10px;
}

.upload-section {
  padding: 15px;
  background: #f8f9fa;
  border: 1px solid #ddd;
  margin: 10px 0;
  border-radius: 4px;
}

.no-files {
  text-align: center;
  padding: 40px;
  color: #666;
  font-size: 16px;
}

.pdf-preview-container {
  position: relative;
  width: 100%;
  height: 800px;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.pdf-preview-frame {
  width: 100%;
  height: 100%;
  border: none;
}

.pdf-expand-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #007cba;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdf-expand-icon:hover {
  background: #005a87;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.pdf-link-holder {
  padding: 10px;
  text-align: center;
  background: #f8f9fa;
  border-top: 1px solid #ddd;
}

.notes-pdf {
  margin: 15px 0;
}
